Server : Apache System : Linux ls31.server.ly 3.10.0-962.3.2.lve1.5.68.el7.x86_64 #1 SMP Wed Apr 6 11:12:23 UTC 2022 x86_64 User : medchoco ( 2906) PHP Version : 8.3.16 Disable Function : mail Directory : /home/medchoco/public_html/wp-content/themes/puca/widgets/ |
Upload File : |
<?php extract( $args ); extract( $instance ); $title = apply_filters('widget_title', $instance['title']); if ( $title ) { echo trim($before_title) . trim( $title ) . trim($after_title); } $embed_code = wp_oembed_get( $instance['video_link'], array( 'width'=> $instance['video_width'] ) ); ?> <div class="widget-video-content widget-content"> <div class="widget-video-inner embed-responsive embed-responsive-16by9"> <?php if ( $embed_code ) { ?> <?php echo trim($embed_code); ?> <?php } else { ?> <span class="visual-video-error text-error"> <?php esc_html_e( 'Video error!', 'puca' ); ?> </span> <?php } ?> </div> <?php if ( $video_name ) { ?> <h6 class="widget-video-name"> <?php echo esc_html($instance['video_name']); ?> </h6> <?php } ?> </div>