HEX
Server: Apache
System: Linux pdx1-shared-a1-38 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: mmickelson (3396398)
PHP: 8.1.31
Disabled: NONE
Upload Files
File: /home/mmickelson/dragonexpert.com/wp-content/themes/coni/template-parts/section-video.php
<?php
$coni_enable_section = get_theme_mod( 'coni_video_enable', true );
if ( $coni_enable_section || is_customize_preview() ) :
?>
<div id="video-section" class="video-section" <?php if( false == $coni_enable_section ): echo 'style="display: none;"'; endif ?>>
    <div class="video-wrap wow fadeInLeft">
        <div class="responsive-wrap">
        	<?php
        	$video_url = esc_url( get_theme_mod( 'coni_video_url', 'https://vimeo.com/137643804' ) );
        	global $wp_embed;
			$post_embed = $wp_embed->run_shortcode('[embed]' . $video_url . '[/embed]');
			echo $post_embed;
        	?>
        </div>
        
    </div><div class="video-text-wrap wow fadeInRight" data-wow-delay="300ms">
    	<?php /* translators: Lorem ipsum text, It is not strictly necessary to translate. */ ?>
        <h3 class="video-text-title"><?php  echo esc_html( get_theme_mod( 'coni_video_title', __( 'Praesent commodo cursus magna, vel scelerisque nisl consectetur et', 'coni' ) ) ); ?></h3>
        <?php
        $wp_kses_args = array(
		    'a' => array(
		        'href' => array(),
		        'title' => array()
		    ),
		    'br' => array(),
		    'em' => array(),
		    'strong' => array(),
		    'span' => array(),
		);
		/* translators: Lorem ipsum text, It is not strictly necessary to translate. */
		$video_text = wp_kses( get_theme_mod( 'coni_video_text', __( 'Cras justo odio, dapibus ac facilisis in, egestas eget quam. Nullam quis risus eget urna mollis ornare vel eu leo. Cras justo odio, dapibus ac facilisis in, egestas eget quam. Praesent commodo cursus magna.', 'coni' ) ), $wp_kses_args );
        ?>
        <p><?php echo $video_text; ?></p>
        <?php $coni_video_link_title = get_theme_mod( 'coni_video_link_title', esc_html__( 'Learn More', 'coni' ) ); ?>
        <?php if ( !empty( $coni_video_link_title ) || is_customize_preview() ) { ?>
        <a href="<?php echo esc_url( get_theme_mod( 'coni_video_link_url', '#' ) ); ?>" class="btn-ql alternative"><?php echo esc_html( $coni_video_link_title ); ?></a>
        <?php } ?>

        
    </div>     
</div><!-- video-section -->
<?php endif ?>