Make WordPress Core


Ignore:
Timestamp:
10/29/2013 07:05:02 PM (12 years ago)
Author:
lancewillett
Message:

Twenty Fourteen: allow any page to be set as the front page, removing requirement for front-page.php template file. Props iamtakashi, fixes #25685.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentyfourteen/single.php

    r25769 r25985  
    1010get_header(); ?>
    1111
    12 <div id="primary" class="content-area">
    13     <div id="content" class="site-content" role="main">
    14         <?php
    15             while ( have_posts() ) :
    16                 the_post();
     12<div id="main-content" class="main-content">
     13    <div id="primary" class="content-area">
     14        <div id="content" class="site-content" role="main">
     15            <?php
     16                while ( have_posts() ) :
     17                    the_post();
    1718
    18                 get_template_part( 'content', get_post_format() );
     19                    get_template_part( 'content', get_post_format() );
    1920
    20                 twentyfourteen_post_nav();
     21                    twentyfourteen_post_nav();
    2122
    22                 // If comments are open or we have at least one comment, load up the comment template.
    23                 if ( comments_open() || get_comments_number() )
    24                     comments_template();
    25             endwhile;
    26         ?>
    27     </div><!-- #content -->
    28 </div><!-- #primary -->
     23                    // If comments are open or we have at least one comment, load up the comment template.
     24                    if ( comments_open() || get_comments_number() )
     25                        comments_template();
     26                endwhile;
     27            ?>
     28        </div><!-- #content -->
     29    </div><!-- #primary -->
     30    <?php get_sidebar( 'content' ); ?>
     31</div><!-- #main-content -->
    2932
    3033<?php
    31 get_sidebar( 'content' );
    3234get_sidebar();
    3335get_footer();
Note: See TracChangeset for help on using the changeset viewer.