<?php
/*
Theme Designed By: Meysam Hosseinkhani
Email: Meysam98@Gmail.com
Author Website: Hosseinkhani.ir
*/
   // Exit if accessed directly
   if ( ! defined( 'ABSPATH' ) ) exit; ?>
<?php if ( have_posts() ) : ?>
<div class="row">
   <?php while ( have_posts() ) : 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"><?php posticon(get_the_ID()); ?></span>
            </div>
            <?php p_img() ?>
             <?php 
                   if(rwmb_meta( 'file_special' )){ ?>
                <span class="special" aria-hidden="true"><?php echo $az_data['text_special']; ?></span>
                <?php } ?>
            <?php if(function_exists('edd_price')) { ?>
            <div class="prod-price price pt-price">
               <i class="fas fa-database price-icon"></i>
               <?php p_price(get_the_ID()); ?>
            </div>
            <?php } ?>
         </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 endwhile; ?>
   </div>
   <div class="col-12 pagination">
      <?php wp_pagination(); ?>
   </div>
   <?php else : ?>
      <div class="alert alert-warning alert-dismissible anote" role="alert">
         <strong><span class="fas fa-bell" aria-hidden="true">
         </span> <?php echo $az_data['text_not_found']; ?></strong>
      </div>
   <?php endif; ?>