<?php
/* ------------------------------------------------------------------------------
* Template Name: Airin - No sidebar (full width)
* Template Post Type: post
* Author: web-zone.org
* @package Airin Blog
* Description: Template for creating posts in the maximum width
* ------------------------------------------------------------------------------ */

// Translation for comment - Template Name
esc_html__('No sidebar (full width)', 'airin-blog');

get_header(); ?>
<div class="airinblog-css-no-sidebar-full airinblog-css-template">

	<div id="primary" class="airinblog-css-content-area">
		<main id="main" class="airinblog-css-site-main">
			<?php
			while (have_posts()) : the_post();
				get_template_part('template-parts/content', 'single');
				if (is_singular('post')) {
					if (esc_attr(get_theme_mod('airinblog_cus_post_next', 0)) != 1) {
						do_action('airinblog_hook_before_post_next');
						get_template_part('template-parts/content-next-post');
					}
					if (esc_attr(get_theme_mod('airinblog_cus_post_related', 1)) == 1) {
						do_action('airinblog_hook_before_post_related');
						get_template_part('template-parts/content-related');
					}
				}
				if (get_theme_mod('airinblog_cus_post_comments_posts', 0) != 1) {
					do_action('airinblog_hook_before_post_comments');
					if (comments_open() || get_comments_number()) :
						comments_template();
					endif;
				}
			endwhile;
			do_action('airinblog_hook_after_post');
			?>
		</main>
	</div>

</div>
<?php
get_footer();