File: /home/alternativsm/alternativ-sm.org/wp-content/themes/benjamin/page.php
<?php
/**
* The template for displaying all single posts
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/#single-post
*
* @package Benjamin
*/
get_header();
/**
* get all the settings needed for the the template layout
*
* returns:
* $template
* $main_width
* $hide_content
* $sidebar_position
*
*/
extract( benjamin_template_settings() );
if( !$hide_content ):
?>
<section id="primary" class="usa-grid usa-section">
<?php
if($sidebar_position == 'left'):
benjamin_get_sidebar($template, $sidebar_position, $sidebar_size);
endif;
?>
<div class="main-content <?php echo esc_attr($main_width); ?>">
<?php
while ( have_posts() ) : the_post();
get_template_part( 'template-parts/singles/content', 'page' );
endwhile; // End of the loop.
?>
</div>
<?php
if($sidebar_position == 'right'):
benjamin_get_sidebar($template, $sidebar_position, $sidebar_size);
endif;
?>
</section>
<?php
endif;
get_footer();