themotion-lemondropproductions/page.php

67 lines
1.5 KiB
PHP
Raw Normal View History

2017-01-09 15:11:45 -05: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 may use a
* different template.
*
* @link https://codex.wordpress.org/Template_Hierarchy
*
* @package themotion
*/
get_header(); ?>
</div><!-- .container -->
<?php
themotion_page_header(); ?>
<div class="container">
<div class="content-wrap">
<div id="primary" class="content-area
<?php
if ( ( ( function_exists( 'is_cart' ) && is_cart() ) || ( function_exists( 'is_checkout' ) && is_checkout() ) || ( function_exists( 'is_account_page' ) && is_account_page() ) ) ) {
echo 'full-width';
}
?>">
<main id="main" class="site-main">
<?php
while ( have_posts() ) : the_post();
get_template_part( 'template-parts/content', 'page' );
?>
</main><!-- #main -->
</div><!-- #primary -->
<?php
if ( ! ( ( function_exists( 'is_cart' ) && is_cart()) || (function_exists( 'is_checkout' ) && is_checkout() ) || (function_exists( 'is_account_page' ) && is_account_page()) ) ) {
get_sidebar();
}
?>
</div><!-- .content-wrap -->
<div class="content-wrap content-comment-wrap">
<?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;
endwhile; // End of the loop.
?>
</div><!-- .content-wrap -->
<?php
get_footer();