<?php
/*
Theme Designed By: Meysam Hosseinkhani
Email: Meysam98@Gmail.com
Author Website: Hosseinkhani.ir
*/
/*
 * Template Name: صفحه اصلی
 */

   // Exit if accessed directly
   if ( ! defined( 'ABSPATH' ) ) exit;
 get_header(); ?>

<div class="container-fluid main-con">
    <main class="container">

    <?php azin_bread(); ?>
        
      <div class="row main<?php side_type(); ?>" id="main" <?php if ($az_data['site_schema']) { ?>itemscope itemtype="https://schema.org/Blog" <?php } ?>>

<article class="<?php echo p_sidebar(get_the_ID()); if ($az_data['sticky_side']) { echo ' pcol'; } ?> home-page">
    <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
    <div role="main" class="scon" id="post-<?php the_ID(); ?>">
                <?php the_content(); edd_az(); ?>
    </div>
    <?php endwhile;?>
    <?php endif; ?>
</article>
<?php if((rwmb_meta( 'file_wside' ) != 1) && (rwmb_meta( 'file_wside' ) != 'noside')) { ?>
<aside class="col-lg-3 side-bar<?php if (!$az_data['show_side_mobile']) {echo ' hidden-sm hidden-xs';} if ($az_data['sticky_side']) { echo ' side-sticky'; }?>">
    <?php get_template_part('right-sidebar'); ?>
</aside>
<?php } ?>

</div>
</main>
</div>

<?php get_footer(); ?>