PATH:
home
/
letacommog
/
newrdv1
/
wp-content
/
plugins1
/
kingcomposer
/
shortcodes
<?php $output = $thumb_data = $speed = $items_tablet = $mobile = ''; $img_size = 'full'; $onclick = 'none'; $wrp_class = apply_filters( 'kc-el-class', $atts ); extract( $atts ); $items_number = ( !empty( $items_number ) ) ? $items_number : 4; $tablet = ( !empty( $tablet ) ) ? $tablet : 2; $mobile = ( !empty( $mobile ) ) ? $mobile : 1; if( !empty( $images ) ) $images = explode( ',', $images ); if ( is_array( $images ) && !empty( $images ) ) { foreach( $images as $image_id ){ $attachment_data[] = wp_get_attachment_image_src( $image_id, $img_size ); $attachment_data_full[] = wp_get_attachment_image_src( $image_id, 'full' ); } }else{ echo '<div class="kc-carousel_images align-center" style="border:1px dashed #ccc;"><br /><h3>Carousel Images: '.__( 'No images upload', 'kingcomposer' ).'</h3></div>'; return; } $element_attribute = array(); $el_classes = array( 'kc-carousel-images', 'owl-carousel-images', 'kc-sync1', $wrap_class ); if( isset($atts['nav_style']) && $nav_style !='' ){ $el_classes[] = 'owl-nav-' . $nav_style; } $owl_option = array( 'items' => $items_number, 'tablet' => $tablet, 'mobile' => $mobile, 'speed' => $speed, 'navigation' => $navigation, 'pagination' => $pagination, 'autoheight' => $auto_height, 'progressbar' => $progress_bar, 'delay' => $delay, 'autoplay' => $auto_play, 'showthumb' => $show_thumb, 'num_thumb' => $num_thumb, ); $owl_option = json_encode( $owl_option ); $element_attribute[] = 'class="'. esc_attr( implode( ' ', $el_classes ) ) .'"'; $element_attribute[] = "data-owl-i-options='$owl_option'"; if( 'custom_link' === $onclick && !empty( $custom_links ) ){ $custom_links = preg_replace( '/\n$/', '', preg_replace('/^\n/','',preg_replace('/[\r\n]+/',"\n", $custom_links)) ); $custom_links_arr = explode("\n", $custom_links ); } kc_js_callback( 'kc_front.owl_slider' ); ?> <div class="<?php echo implode( ' ', $wrp_class );?>"> <div class="kc-carousel_images <?php echo implode( ' ', $wrp_class );?>"> <div <?php echo implode( ' ', $element_attribute ); ?>> <?php $i = 0; foreach( $attachment_data as $i => $image ): $alttext = ''; if( $alt_text == 'yes') $alttext = get_post_meta( $images[$i], '_wp_attachment_image_alt', true); ?> <div class="item"> <?php if( 'none' === $onclick ){ ?> <img src="<?php echo $image[0]; ?>" alt="<?php echo esc_attr( $alttext );?>"/> <?php } else { switch( $onclick ){ case 'lightbox': echo '<a class="kc-image-link kc-pretty-photo" data-lightbox="kc-lightbox" rel="prettyPhoto['. $atts['_id'] .']" href="'. esc_attr( esc_attr( $attachment_data_full[$i][0] ) ) .'">' .'<img src="'. esc_attr( $image[0] ) .'" alt="'. $alttext .'" /></a>'; break; case 'custom_link': if( isset( $custom_links_arr[$i] ) ){ echo '<a href="'. esc_attr( strip_tags( $custom_links_arr[$i] ) ) .'" target="'. esc_attr( $custom_links_target ) .'">' .'<img src="'. esc_attr( $image[0] ) .'" alt="'. esc_attr( $alttext ) .'" /></a>'; }else{ echo '<img src="'. esc_attr( $image[0] ) .'" alt="'. esc_attr( $alttext ) .'" />'; } break; } } ?> </div> <?php $i++; endforeach; ?> </div> <?php if( !empty( $show_thumb ) && 'yes' === $show_thumb ){ ?> <div class="kc-sync2 owl-carousel"> <?php foreach( $attachment_data as $image ): ?> <div class="item"> <img src="<?php echo $image[0]; ?>" alt="" /> </div> <?php endforeach; ?> </div> <?php } //end if show thumb ?> </div> </div>
[+]
..
[-] 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]