| Server IP : 46.105.57.169 / Your IP : 216.73.216.67 Web Server : Apache System : Linux webm002.cluster120.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64 User : verseaumee ( 152031) PHP Version : 8.5.7 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/verseaumee/blueversion/wp-content/plugins/complianz-gdpr/integrations/plugins/ |
Upload File : |
<?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 );