2014-12-10 11:36:38 +00:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* The template for displaying all pages.
|
|
|
|
*
|
|
|
|
* This is the template that displays all pages by default.
|
|
|
|
* Please note that this is the WordPress construct of pages
|
|
|
|
* and that other 'pages' on your WordPress site will use a
|
|
|
|
* different template.
|
|
|
|
*
|
|
|
|
* @package understrap
|
|
|
|
*/
|
|
|
|
|
2016-11-19 11:05:37 +00:00
|
|
|
get_header();
|
2014-12-10 11:36:38 +00:00
|
|
|
|
2016-11-19 11:05:37 +00:00
|
|
|
$container = get_theme_mod( 'understrap_container_type' );
|
|
|
|
$sidebar_pos = get_theme_mod( 'understrap_sidebar_position' );
|
|
|
|
|
2016-11-05 12:40:04 +00:00
|
|
|
?>
|
|
|
|
|
2014-12-11 17:01:20 +00:00
|
|
|
<div class="wrapper" id="page-wrapper">
|
2016-11-01 15:25:21 +00:00
|
|
|
|
2017-06-08 14:54:29 +00:00
|
|
|
<div class="<?php echo esc_attr( $container ); ?>" id="content" tabindex="-1">
|
2016-11-01 15:25:21 +00:00
|
|
|
|
2016-11-19 11:05:37 +00:00
|
|
|
<div class="row">
|
2016-11-01 15:25:21 +00:00
|
|
|
|
2016-11-19 11:05:37 +00:00
|
|
|
<!-- Do the left sidebar check -->
|
2017-10-27 02:45:01 +00:00
|
|
|
<?php get_template_part( 'global-templates/left-sidebar-check' ); ?>
|
2016-11-01 15:25:21 +00:00
|
|
|
|
2016-11-19 11:05:37 +00:00
|
|
|
<main class="site-main" id="main">
|
2016-11-01 15:25:21 +00:00
|
|
|
|
2016-11-19 11:05:37 +00:00
|
|
|
<?php while ( have_posts() ) : the_post(); ?>
|
2016-11-01 15:25:21 +00:00
|
|
|
|
2016-11-19 11:05:37 +00:00
|
|
|
<?php get_template_part( 'loop-templates/content', 'page' ); ?>
|
2016-11-01 15:25:21 +00:00
|
|
|
|
2016-11-19 11:05:37 +00:00
|
|
|
<?php
|
|
|
|
// If comments are open or we have at least one comment, load up the comment template.
|
|
|
|
if ( comments_open() || get_comments_number() ) :
|
|
|
|
comments_template();
|
|
|
|
endif;
|
|
|
|
?>
|
2016-11-01 15:25:21 +00:00
|
|
|
|
2016-11-19 11:05:37 +00:00
|
|
|
<?php endwhile; // end of the loop. ?>
|
2016-11-01 15:25:21 +00:00
|
|
|
|
2016-11-19 11:05:37 +00:00
|
|
|
</main><!-- #main -->
|
2016-11-14 14:16:24 +00:00
|
|
|
|
2016-11-19 11:05:37 +00:00
|
|
|
</div><!-- #primary -->
|
2016-11-01 15:25:21 +00:00
|
|
|
|
2016-11-19 11:05:37 +00:00
|
|
|
<!-- Do the right sidebar check -->
|
|
|
|
<?php if ( 'right' === $sidebar_pos || 'both' === $sidebar_pos ) : ?>
|
2016-11-01 15:25:21 +00:00
|
|
|
|
2017-02-11 09:39:09 +00:00
|
|
|
<?php get_sidebar( 'right' ); ?>
|
2016-11-19 11:05:37 +00:00
|
|
|
|
|
|
|
<?php endif; ?>
|
|
|
|
|
|
|
|
</div><!-- .row -->
|
|
|
|
|
|
|
|
</div><!-- Container end -->
|
2016-11-01 15:25:21 +00:00
|
|
|
|
2014-12-10 11:36:38 +00:00
|
|
|
</div><!-- Wrapper end -->
|
|
|
|
|
|
|
|
<?php get_footer(); ?>
|