<?php  
   $count = 1;
   $query_args = array('post_type' => 'bunch_testimonials' , 'showposts' => $num , 'order_by' => $sort , 'order' => $order);
   if( $cat ) $query_args['testimonials_category'] = $cat;
   $query = new WP_Query($query_args) ; 
   ?> 
<?php if($query->have_posts()):  ?>   

<!--Default Section-->
<section class="default-section">
    <div class="auto-container">
        <div class="row clearfix">
            
            <!--Testimonial Column-->
            <div class="testimonial-column col-md-6 col-sm-12 col-xs-12">
            
                <div class="sec-title">
                    <h2><?php echo wp_kses_post($title); ?></h2>
                </div>
                
                <div class="single-item-carousel owl-carousel owl-theme">
					<?php while($query->have_posts()): $query->the_post();
						global $post ; 
						$testimonial_meta = _WSH()->get_meta();
					?>
                    <!--Testimonial Block-->
                    <div class="testimonial-block">
                        <div class="inner-box">
                            <div class="upper-box">
                                <div class="text"><?php echo wp_kses_post(manufacto_trim(get_the_content(), $text_limit)); ?></div>
                                <div class="quote-icon">
                                    <span class="icon fa fa-quote-right"></span>
                                </div>
                            </div>
                            <div class="lower-box">
                                <div class="inner">
                                    <div class="image">
                                        <?php the_post_thumbnail('manufacto_101x101'); ?>
                                    </div>
                                    <h3><?php the_title(); ?></h3>
                                    <div class="designation"><?php echo wp_kses_post(manufacto_set($testimonial_meta, 'designation')); ?></div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <?php $count++; endwhile;?>
                </div>
            </div>
            
            <!--Facts Column-->
            <div class="facts-column col-md-6 col-sm-12 col-xs-12">
                <div class="inner-column">
                    <div class="sec-title">
                        <h2><?php echo wp_kses_post($title1); ?></h2>
                    </div>
                    <div class="text"><?php echo wp_kses_post($text); ?></div>
                    <div class="row clearfix">
                        <!--Fact Counter-->
                        <div class="fact-counter">
                            <div class="row clearfix">
                            	<?php foreach( $atts['funfact'] as $key => $item ): ?>
                                <!--Column-->
                                <div class="column counter-column col-md-6 col-sm-6 col-xs-12">
                                    <div class="inner">
                                        <h4 class="counter-title"><?php echo wp_kses_post($item->title2); ?></h4>
                                        <div class="count-outer count-box">
                                            <span class="count-text" data-speed="4000" data-stop="<?php echo wp_kses_post($item->counter_stop); ?>"><?php echo wp_kses_post($item->counter_start); ?></span><?php if($item->percent_sign): ?><span class="plus-icon"><?php echo wp_kses_post($item->percent_sign); ?></span><?php endif; ?>
                                        </div>
                                    </div>
                                </div>
                        		<?php endforeach;?>
                            </div>
                        </div>
                        
                    </div>
                </div>
            </div>
            
        </div>
    </div>
</section>
<!--End Default Section-->

<?php endif; wp_reset_postdata(); ?>