<?php if ( !in_array( get_theme_mod( 'theme_layout' ), array( '1c' ) )  ) : // If not a one-column layout. ?>
		
	<?php if ( true === losatom_display_on_front() || is_page_template( 'templates/template-blog.php' ) ) : // Check if it should be displayed. ?>
	
		<aside <?php hybrid_attr( 'sidebar', 'primary' ); ?>>
			
			<?php if ( is_active_sidebar( 'primary' ) ) : // If the sidebar has widgets. ?>

				<?php dynamic_sidebar( 'primary' ); // Displays the primary sidebar. ?>

			<?php endif; // End widgets check. ?>
				
		</aside><!-- #sidebar-primary -->

	<?php endif; // End front page display check. ?>

<?php endif; // End layout check. ?>