<?php
/*
Theme designed by daynaweb
Buy this theme only from https://www.zhaket.com/web/gajcommerce-wordpress-theme
Author: https://daynaweb.ir
*/
if (!defined('ABSPATH')) {
    exit;
}
?>
<?php if ( ot_get_option( 'mainsideonoff' ) === 'withsidebargc' ) {
    $gc_content_layout_class = 'col-12 col-md-9 order-md-2';
    $gc_product_layout_class = 'col-12 col-sm-6 col-md-4';
  } elseif ( ot_get_option( 'mainsideonoff' ) === 'leftsidebar' ) {
    $gc_content_layout_class = 'col-12 col-md-9';
    $gc_product_layout_class = 'col-12 col-sm-6 col-md-4';
  } else {
    $gc_content_layout_class = 'col-12';
    $gc_product_layout_class = 'col-12 col-sm-6 col-md-4 col-lg-3';
  }
?>
<?php get_header(); ?>
  <div class="container">
    <div class="row">
      <div class="mainareastickstick <?php echo $gc_content_layout_class; ?>">
<div class="row">
  <div class="col-12">
    <div class="breadcrumbb">
      <a href="<?php echo get_home_url(); ?>">صفحه اصلی</a> / دسته‌بندی: "<?php single_cat_title(); ?>" <?php echo '&nbsp;&nbsp;'; ?>
    </div>
  </div>
</div>
  <div class="row">
    <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
    <div class="<?php echo $gc_product_layout_class; ?>">
      <div class="singlearticlear">
        <a href="<?php the_permalink(); ?>">
          <figure>
            <?php the_post_thumbnail('main-thumb'); ?>
          </figure>
          <div class="pddata">
            <div class="pdname">
              <h3><?php the_title(); ?></h3>
            </div>
            <div class="datesinarticle"><?php the_time('j F Y'); ?></div>
          </div>
        </a>
      </div>
    </div>
  <?php endwhile; else : ?>
  	<p><?php esc_html_e( 'متاسفیم! محتوایی برای نمایش وجود ندارد.' ); ?></p>
  <?php endif; ?>
  </div>
<div class="pagenumbersar"><?php the_posts_pagination( array( 'mid_size' => 4 , 'screen_reader_text' => __( '&nbsp;' ) ) ); ?></div>
      </div>
      <?php get_sidebar(); ?>
    </div>
  </div>
<?php get_footer(); ?>
