<?php 

/* Template Name: Right Sidebar Template */

get_header(); ?>

<div class="header-image-box text-center">
  <div class="container">
    <h1><?php the_title(); ?></h1>
    <div class="crumb-box mt-3">
      <?php editorial_news_agency_the_breadcrumb(); ?>
    </div>
  </div>
</div>

<div id="content" class="mt-5">
  <div class="container">
    <div class="row">
      <div class="col-lg-8 col-md-8">
        <?php
          while ( have_posts() ) :
            the_post();
            get_template_part( 'template-parts/content', 'page');

            wp_link_pages(
              array(
                'before' => '<div class="editorial-news-agency-pagination">',
                'after' => '</div>',
                'link_before' => '<span>',
                'link_after' => '</span>'
              )
            );
            comments_template();
          endwhile;
        ?>
      </div>
      <div class="col-lg-4 col-md-4">
        <div class="sidebar-area <?php if( get_theme_mod('editorial_news_agency_enable_sticky_sidebar', false) == 1) { ?> sidebar-sticky <?php } else { ?> close-sticky <?php } ?> 
          <?php echo esc_attr( get_theme_mod('editorial_news_agency_enable_sidebar_animation', true) ? 'zoomInRight wow' : '' ); ?>">
          <?php
            dynamic_sidebar('sidebar-2');
          ?>
        </div>
      </div>
    </div>
  </div>
</div>

<?php get_footer(); ?>
