| Server IP : 213.186.33.2 / Your IP : 216.73.216.39 Web Server : Apache System : Linux webm005.cluster102.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 : symetry ( 21728) PHP Version : 8.2.31 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/symetry/www/wp-content/themes/iigqrftq/inc/blog/templates/parts/post-format/ |
Upload File : |
<?php
$video_meta = get_post_meta( get_the_ID(), 'qodef_post_format_video_url', true );
if ( ! empty( $video_meta ) ) {
// Video player settings
$settings = apply_filters(
'qi_filter_video_post_format_settings',
array(
'width' => 1100, // Aspect ration is 16:9
'height' => round( 1100 * 9 / 16 ),
'loop' => true,
)
);
$oembed = wp_oembed_get( $video_meta );
?>
<div class="qodef-e-media-video">
<?php
if ( ! empty( $oembed ) ) {
echo wp_oembed_get( $video_meta, $settings ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
} else {
// Init video player
echo wp_video_shortcode( array_merge( array( 'src' => esc_url( $video_meta ) ), $settings ) ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
}
?>
</div>
<?php
} else {
// Include featured image
qi_template_part( 'blog', 'templates/parts/post-info/image' );
}
?>