PATH:
home
/
letacommog
/
newrdv1
/
wp-content
/
plugins1
/
kingcomposer
/
shortcodes
<?php $video_upload = ''; $video_height = '250'; $check_video = 'true'; $video_mute = 'no'; extract( $atts ); $video_classes = apply_filters( 'kc-el-class', $atts ); if( !empty( $video_width ) ) $video_height = intval( $video_width ) / 1.77; if( isset( $_GET['kc_action'] ) && $_GET['kc_action'] === 'live-editor' ) $is_live = true; else $is_live = false; $video_link = ( !empty( $video_link ) ) ? $video_link : 'https://www.youtube.com/watch?v=iNJdPyoqt8U'; //default video //Check youtube video url $pattern = '~ ^(?:https?://)? # Optional protocol (?:www\.)? # Optional subdomain (?:youtube\.com|youtu\.be) # Mandatory domain name /watch\?v=([^&]+) # URI with video id as capture group 1 ~x'; $has_match = preg_match( $pattern, $video_link, $matches ); $video_attributes = array(); $video_classes = array_merge( $video_classes, array( 'kc_shortcode', 'kc_video_play', 'kc_video_wrapper' ) ); if ( !empty( $wrap_class ) ) $video_classes[] = $wrap_class; if ( !empty( $atts['css'] ) ) $video_classes[] = $atts['css']; $video_attributes[] = 'class="'. esc_attr( implode(' ', $video_classes ) ) .'"'; if( !$is_live && empty( $video_upload ) ){ $video_attributes[] = 'data-video="'. esc_attr( $video_link ) .'"'; $video_attributes[] = 'data-width="'. esc_attr( $video_width ) .'"'; $video_attributes[] = 'data-height="'. esc_attr( $video_height ) .'"'; $video_attributes[] = 'data-fullwidth="'. esc_attr( $full_width ) .'"'; $video_attributes[] = 'data-autoplay="'. esc_attr( $auto_play ) .'"'; $video_attributes[] = 'data-loop="'. esc_attr( $loop ) .'"'; $video_attributes[] = 'data-control="'. esc_attr( $control ) .'"'; $video_attributes[] = 'data-related="'. esc_attr( $related ) .'"'; $video_attributes[] = 'data-showinfo="'. esc_attr( $showinfo ) .'"'; $video_attributes[] = 'data-kc-video-mute="' . esc_attr( $video_mute ) . '"'; } if( $check_video === 'true' ) { ?> <div <?php echo implode(' ', $video_attributes ); ?>> <?php if ( $is_live ): ?> <div style="height:<?php echo esc_attr( $video_height ); ?>px; width:<?php echo esc_attr( $video_width ); ?>" class="disable-view-element"> <h3><?php echo esc_html__( 'For best perfomance, the video map has been disabled in this editing mode.', 'kingcomposer' ); ?></h3> </div> <?php elseif ( !empty( $video_upload ) ): ?> <?php $autoplay = ''; if( $auto_play == 'yes' ) $autoplay = ' autoplay'; ?> <video width="<?php echo esc_attr( $video_width ); ?>" height="<?php echo esc_attr( $video_height ); ?>" controls<?php echo esc_attr( $autoplay ); ?>> <source src="<?php echo esc_url( $video_upload ); ?>" type="video/mp4"> <?php echo esc_html__( 'Your browser does not support the video tag.', 'kingcomposer' ); ?> </video> <?php endif ?> </div> <?php } else { echo esc_html__('KingComposer error: Video format url incorrect', 'kingcomposer'); }
[+]
..
[-] kc_video_play.php
[edit]
[-] kc_spacing.php
[edit]
[-] kc_feature_box.php
[edit]
[-] kc_column_text.php
[edit]
[-] kc_button.php
[edit]
[-] kc_accordion_tab.php
[edit]
[-] kc_image_fadein.php
[edit]
[-] kc_image_gallery.php
[edit]
[-] kc_tooltip.php
[edit]
[-] kc_counter_box.php
[edit]
[+]
live_editor
[-] kc_single_image.php
[edit]
[-] kc_divider.php
[edit]
[-] kc_raw_code.php
[edit]
[-] kc_wp_widget.php
[edit]
[-] .shortcodes.php
[edit]
[-] kc_google_maps.php
[edit]
[-] kc_tabs.php
[edit]
[-] kc_box_alert.php
[edit]
[-] kc_carousel_post.php
[edit]
[-] kc_column_inner.php
[edit]
[-] kc_creative_button.php
[edit]
[-] kc_contact_form7.php
[edit]
[-] kc_revslider.php
[edit]
[-] kc_column.php
[edit]
[-] kc_title.php
[edit]
[-] kc_nested.php
[edit]
[-] kc_tab.php
[edit]
[-] kc_fb_recent_post.php
[edit]
[-] kc_coundown_timer.php
[edit]
[-] kc_post_type_list.php
[edit]
[-] kc_row.php
[edit]
[-] kc_instagram_feed.php
[edit]
[-] kc_blog_posts.php
[edit]
[-] kc_raw_cos.php
[edit]
[-] kc_multi_icons.php
[edit]
[-] kc_accordion.php
[edit]
[-] kc_dropcaps.php
[edit]
[-] kc_call_to_action.php
[edit]
[-] kc_wp_sidebar.php
[edit]
[-] kc_box.php
[edit]
[-] kc_twitter_feed.php
[edit]
[-] kc_testimonial.php
[edit]
[-] kc_team.php
[edit]
[-] kc_pricing.php
[edit]
[-] kc_icon.php
[edit]
[-] _value.php
[edit]
[-] kc_carousel_images.php
[edit]
[-] kc_flip_box.php
[edit]
[-] kc_progress_bars.php
[edit]
[-] kc_pie_chart.php
[edit]
[-] kc_row_inner.php
[edit]
[-] kc_image_hover_effects.php
[edit]