<?php extract(shortcode_atts(array('title' => 'Testimonials', 'el_class' => '', 'skin' => 'skin-1'), $atts)); $el_class = $this->getExtraClass($el_class); $_id = pgl_make_id(); $_count = 0; $args = array('post_type' => 'testimonial', 'posts_per_page' => -1, 'post_status' => 'publish'); $query = new WP_Query($args); ?> <div class="box pgl-testimonial <?php echo esc_attr($el_class); ?> "> <?php if ($query->have_posts()) { ?> <div id="carousel-<?php echo esc_attr($_id); ?> " class="inner-content post-widget media-post-carousel carousel slide" data-ride="carousel"> <div class="carousel-inner testimonial-carousel"> <?php while ($query->have_posts()) { $query->the_post(); ?> <!-- Wrapper for slides --> <div class="item<?php echo $_count == 0 ? " active" : ""; ?> ">
$output = $title = $interval = $el_class = $collapsible = $active_tab = ''; global $pgl_accordion_item; $pgl_accordion_item = array(); // extract(shortcode_atts(array('title' => '', 'interval' => 0, 'el_class' => '', 'collapsible' => 'no', 'active_tab' => '1'), $atts)); $id = pgl_make_id(); wpb_js_remove_wpautop($content); // var_dump($pgl_accordion_item); ?> <div class="panel-group" id="accordion-<?php echo esc_attr($id); ?> "> <?php foreach ($pgl_accordion_item as $key => $acc) { $itemid = pgl_make_id(); ?> <div class="panel panel-default"> <div class="panel-heading" data-toggle="collapse" data-parent="#accordion-<?php echo esc_attr($id); ?> " href="#collapse-<?php echo esc_attr($itemid); ?> "> <h4 class="panel-title"> <?php echo $acc['title']; ?> </h4> </div>