<?php
/*
Theme Designed By: Meysam Hosseinkhani
Email: Meysam98@Gmail.com
Author Website: Hosseinkhani.ir
*/
// 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 } ?>>

<?php if (is_user_logged_in())
    {
?>
    <?php
    edd_az();
    if (have_posts()):
        while (have_posts()):
            the_post(); ?>
        <article role="main" class="col-12 woocommerce-account" id="post-<?php the_ID(); ?>">
            <div class="dashboard">
                <?php the_content(); ?>
            </div>
        </article>
        <?php
        endwhile;
    endif; ?>
<?php } else { ?>

<article class="col-12 wside login-page">
    <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
    <div role="main" class="col-12 scon" id="post-<?php the_ID(); ?>">
        <div class="s-product">
            <div class="post-row">
                <h1 class="post-title"><i aria-hidden="true" class="fas fa-pen-square"></i>
                    <?php the_title(); ?>
                </h1>
            </div>
            <div class="page-con login-con col-12">
                <?php the_content(); edd_az(); ?>
            </div>
        </div>
    </div>
    <?php endwhile; endif; ?>
</article>
<?php } ?>

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

<?php get_footer(); ?>