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

<!--Property Info Section / Style Two-->
<section class="property-info-sec style-two">
    <div class="auto-container">
        <!--Section Title-->
        <div class="sec-title text-center">
            <div class="subtitle-text"><?php echo balanceTags($upper_title);?></div>
            <h2><strong><?php echo balanceTags($title1);?></strong> <?php echo balanceTags($title2);?></h2>
        </div>

        <!--Description Column-->
        <div class="desc-column">
           <!--Circular Boxes-->
           <div class="circular-boxes">
                <?php while($query->have_posts()): $query->the_post();
					global $post ; 
					$property_meta = _WSH()->get_meta();
				?>
                <!--Circular Info Box-->
                <div class="circular-info-box wow fadeInLeft" data-wow-duration="1500ms" data-wow-delay="0ms">
                    <figure class="image"><?php the_post_thumbnail('tycheproperty_235x235', array('class'=>'img-responsive'));?></figure>
                    <div class="overlay-box">
                        <div class="inner-content">
                            <div class="content">
                                <div class="icon-box"><span class="<?php echo str_replace("icon ", "", tycheproperty_set($property_meta, 'social_icon'));?>"></span></div>
                                <div class="info-title"><?php the_title();?></div>
                                <div class="info-count"><?php echo balanceTags(tycheproperty_set($property_meta, 'count'));?></div>
                            </div>
                        </div>
                    </div>
                </div>
                <?php endwhile;?>
                
           </div>
            
            <div class="documents"><strong><?php esc_html_e('DOCUMENTS', 'tycheproperty');?></strong> &ensp;-&ensp; <?php echo balanceTags($text1);?> <a href="<?php echo esc_url($pdf_link1);?>"><span class="fa fa-cloud-download"></span></a> &ensp;&ensp; <?php echo balanceTags($text1);?> <a href="<?php echo esc_url($pdf_link2);?>"><span class="fa fa-cloud-download"></span></a></div>
            <a href="<?php echo esc_url($btn_link1);?>" class="theme-btn btn-style-one"><?php echo balanceTags($btn_text1);?></a>
            <a href="<?php echo esc_url($btn_link2);?>" class="theme-btn btn-style-three"><?php echo balanceTags($btn_text2);?></a>
        </div>
    </div>
</section>
    
<?php endif; ?>
<?php 
	wp_reset_postdata();
   $output = ob_get_contents(); 
   ob_end_clean(); 
   return $output ; ?>