<?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 } ?>>

<article class="col-12 wside login-page register-con">
    <?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">
            <h1 class="post-title"><i aria-hidden="true" class="fas pen-square"></i>
                <?php the_title(); ?>
            </h1>
            <div class="row">
            <?php if(is_user_logged_in()) { ?>
                <div class="page-con login-con col-md-6 col-12">
                    <p>شما قبلا وارد شده اید!</p>
                </div>
            <?php } else { ?>
                <?php if (az_woo()) { ?>
                    <div class="page-con login-con col-md-6 col-12">
                        <?php echo do_shortcode('[woocommerce_my_account]'); edd_az(); ?>
                    </div>
                <?php } else { ?>
                    <div class="page-con login-con col-md-6 col-12">
                        <?php the_content(); ?>
                    </div>
            <?php }} ?>
            <div class=" col-md-6 hidden-xs">
                <img src="<?php echo $az_data['register_image']['url']; ?>" oncontextmenu="return false" onerror="this.onerror=null; this.src='<?php echo get_template_directory_uri(); ?>/images/register.png'" alt="ثبت نام" title="ثبت نام" class="login-img" />
            </div>
            </div>
        </div>
    </div>
    <?php endwhile; endif; ?>
</article>

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

<?php get_footer(); ?>