<?php 
  get_header(); 
  global $syrus; 

  $show_sidebar = (int) get_theme_mod("show-sidebar-homepage", 1) ? true : false;
?>

  <div class="container main-container layout-<?php echo $syrus->get_current_layout() ?>" role="main" id="main-content">
      <div class="row mx-0 <?php echo wp_is_mobile() ? '' : 'mt-4' ;?>">
          <div class="col-12 <?php echo $show_sidebar ? 'col-md-9' : '' ?>">
            <?php
                if ( function_exists('yoast_breadcrumb') && !is_home()) {
                    yoast_breadcrumb( '<p id="breadcrumbs">','</p>' );
                }
            ?>
            <?php do_action('home-content'); ?>
          </div>
              
          <?php if($show_sidebar) : ?>
            <div class="d-none d-md-inline col-md-3">
              <?php get_sidebar(); ?>
            </div>
          <?php endif; ?>
      </div>
  </div>

  <?php do_action('syrus-whatsapp-chat'); ?>

<?php get_footer(); ?>
