Advertisement
alchymyth

full width

Aug 13th, 2016
252
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.07 KB | None | 0 0
  1. <?php
  2. /**
  3.  * Template Name: Full Width
  4.  *
  5.  * This is the 'full-width' template
  6.  *
  7.  * @link https://codex.wordpress.org/Template_Hierarchy
  8.  *
  9.  * @package regina-lite
  10.  */
  11. ?>
  12. <?php get_header(); ?>
  13. <?php get_template_part( 'sections/section', 'page-header' ); ?>
  14. <div class="container">
  15.     <div class="row">
  16.         <?php get_template_part( 'sections/section', 'breadcrumb' ); ?>
  17.         <div id="blog" class="single full">
  18.             <div class="col-md-12">
  19.                 <?php
  20.                 if( have_posts() ):
  21.                     while( have_posts() ):
  22.                         the_post();
  23.                         get_template_part( 'template-parts/content', 'page' );
  24.                     endwhile;
  25.                 endif;
  26.                 ?>
  27.                 <?php
  28.                 if ( comments_open() || get_comments_number() ) :
  29.                     comments_template();
  30.                 endif;
  31.                 ?>
  32.             </div><!--.col-lg-12-->
  33.         </div><!--#blog.single.full-->
  34.     </div><!--.row-->
  35. </div><!--.container-->
  36. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement