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/page.php

    r25769 r25985  
    1414get_header(); ?>
    1515
     16<div id="main-content" class="main-content">
     17
     18<?php
     19    if ( is_front_page() && twentyfourteen_has_featured_posts() )
     20        get_template_part( 'featured-content' );
     21?>
    1622    <div id="primary" class="content-area">
    1723        <div id="content" class="site-content" role="main">
     
    3137        </div><!-- #content -->
    3238    </div><!-- #primary -->
     39    <?php get_sidebar( 'content' ); ?>
     40</div><!-- #main-content -->
    3341
    3442<?php
    35 get_sidebar( 'content' );
    3643get_sidebar();
    3744get_footer();
Note: See TracChangeset for help on using the changeset viewer.