<?php
/*
Theme Designed By: Meysam Hosseinkhani
Email: Meysam98@Gmail.com
Author Website: Hosseinkhani.ir
*/
   // Exit if accessed directly
   if ( ! defined( 'ABSPATH' ) ) exit; ?>
<?php if ( $products->have_posts() ) : $i = 1; ?>
   <?php while ( $products->have_posts() ) : $products->the_post(); ?>
   <div role="main" class="col-md-4 col-6 pcon" id="post-<?php the_ID(); ?>">
      <a href="<?php the_permalink() ?>" class="vi-img-res-box">
       <div class="product">
         <div class="post-img">
            <div class="post-icon">
               <span class="price"><i class="fas fa-file-alt"></i><?php echo $az_data['text_more_text']; ?></span>
            </div>
            <?php p_img() ?>
            <div class="prod-price price pt-price">
               <i class="fas fa-calendar price-icon"></i>
               <?php echo get_the_date('j F Y'); ?>
            </div>
         </div>
         <div class="col-12">
            <div class="col-10 prod-name pt-name">
               <h2 title="<?php the_title(); ?>"><?php the_title(); ?></h2>
            </div>
         </div>
         <?php if($az_data['show_excerpt']) { ?>
         <div class="col-12 pdesc">
            <?php the_excerpt(); ?>
         </div>
         <?php } ?>
      </div>
       </a>
   </div>
   <?php $i+=1; ?>
   <?php endwhile; ?>
   <div class="col-12 pagination">
      <?php wp_product_pagination(); ?>
   </div>
   <?php else : ?>
      <div class="alert alert-warning alert-dismissible anote"><strong><span class="fas fa-bell" aria-hidden="true">
         </span> <?php echo $az_data['text_not_found']; ?></strong>
      </div>
<?php endif; ?>