예제 #1
0
<?php

/**
 * Shortcode attributes
 * @var $atts
 * @var $slides
 * @var $image_size
 * Shortcode class
 * @var  WPBakeryShortCode_Slideshow
 */
$output = '';
$atts = vc_map_get_attributes($this->getShortcode(), $atts);
extract($atts);
$output = '<div class="slideshow wpb_content_element">';
$slides = explode(',', $slides);
$slides_ = array();
if (count($slides) > 0) {
    foreach ($slides as $s) {
        $slides_[] = array('attachment_id' => $s);
    }
    $slide = new codeless_slideshow(false, 'flexslider');
    $slide->slide_number = count($slides);
    $slide->img_size = $image_size;
    $slide->slides = $slides_;
    $output .= $slide->display();
}
$output .= '</div>';
echo $output;
예제 #2
0
    <?php 
        } elseif ($slider->options['slideshow_layout'] == 'fullwidth') {
            ?>


    <section id="slider-fullwidth"  class="slider <?php 
            echo esc_attr($extra_class);
            ?>
">
                                       
    <?php 
        }
        ?>

        <?php 
        echo $slider->display();
        if ($slider->options['slideshow_layout'] == 'boxed') {
            ?>


                </div>    
            </div>
        </div>
    </section>

     <?php 
        } else {
            ?>

    </section>