- Timestamp:
- 08/14/2013 04:38:01 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentyfourteen/full-width-page.php
r24832 r25021 9 9 get_header(); ?> 10 10 11 <?php if ( is_front_page() ) : ?>12 13 <div class="front-page-content-wrapper">14 <div class="front-page-content-main">15 16 <?php if ( twentyfourteen_has_featured_posts() ) : ?>17 <?php get_template_part( 'featured-content' ); ?>18 <?php endif; ?>19 20 <div class="front-page-content-area clearfix">21 22 <div id="primary" class="content-area no-sidebar">23 <div id="content" class="site-content full-width" role="main">24 <?php25 if ( have_posts() ) :26 while ( have_posts() ) :27 the_post();28 get_template_part( 'content', 'page' );29 comments_template( '', true );30 endwhile;31 32 twentyfourteen_content_nav( 'nav-below' );33 else :34 get_template_part( 'no-results', 'index' );35 endif;36 ?>37 </div><!-- #content .site-content -->38 </div><!-- #primary .content-area -->39 40 </div><!-- .front-page-content-area -->41 42 </div><!-- .front-page-content-main -->43 </div><!-- .front-page-content-wrapper -->44 45 <?php else : ?>46 47 11 <div id="primary" class="content-area"> 48 12 <div id="content" class="site-content full-width" role="main"> 13 <?php 14 while ( have_posts() ) : 15 the_post(); 49 16 50 <?php while ( have_posts() ) : the_post(); ?>17 get_template_part( 'content', 'page' ); 51 18 52 <?php get_template_part( 'content', 'page' ); ?> 19 // If comments are open or we have at least one comment, load up the comment template. 20 if ( comments_open() || get_comments_number() ) 21 comments_template(); 22 endwhile; 23 ?> 24 </div><!-- #content --> 25 </div><!-- #primary --> 53 26 54 <?php comments_template( '', true ); ?> 55 56 <?php endwhile; ?> 57 58 </div><!-- #content .site-content --> 59 </div><!-- #primary .content-area --> 60 61 <?php endif; // is_front_page() check ?> 62 63 <?php get_sidebar(); ?> 64 65 <?php get_footer(); ?> 27 <?php 28 get_sidebar(); 29 get_footer();
Note: See TracChangeset
for help on using the changeset viewer.