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