<?php get_header(); ?>

<?php
 
  //check 
  if( esc_html(get_theme_mod('show_sidebar_left'),'howcan') ){
  
  // Left: sidebar  
    get_template_part('template-parts/layout/left-sidebar-page');
  }else{
    // default right sidebar
   ?>
  <div class="container my-1">
    
        <div class="row">
          <div class="col-md-8">
            <hr>
                <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>

                 <article class="container pt-2" id="post-<?php the_ID(); ?>" <?php post_class(); ?> itemscope itemtype="https://schema.org/BlogPosting">
        
                    <!-- Title -->
                    <h1 style="border-left:3px solid black; padding-left:5px;font-size:30px;"  class="mb-3" itemprop="headline"><?php
         if(!is_home() && is_front_page()){
              esc_html_e( 'Please Desinge Using Elementor.', 'howcan' );         }else{
           the_title();
           
         }       
                    
                    ?></h1> 
                    
                    
                    <!-- Content -->
                    <div style="font-size:20px;text-align:justify;" class="post-content mb-4" itemprop="articleBody">
                        <?php the_content(); ?>
                    </div>
                </article>

            <?php endwhile; else : ?>
                <p><?php esc_html_e( 'Sorry, no posts found.', 'howcan' ); ?></p>
            <?php endif; ?>
            
          </div>
          <div class="col-md-4">
             <?php get_sidebar(); ?>
          </div>
        </div>
 
  </div>

      <?php
  }
    
?>

<?php get_footer(); ?>