Make WordPress Core


Ignore:
Timestamp:
08/01/2012 06:52:20 PM (14 years ago)
Author:
lancewillett
Message:

Twenty Twelve: Homepage page template logic cleanup and style updates, props obenland. Fixes #21245.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-content/themes/twentytwelve/homepage.php

    r21261 r21398  
    1313                <div id="content" role="main">
    1414
    15                         <div class="home-top">
    16                                 <?php while ( have_posts() ) : the_post(); ?>
    17                                         <?php if ( has_post_thumbnail() ) { ?>
    18                                                 <div class="entry-page-image">
    19                                                         <?php the_post_thumbnail(); ?>
    20                                                 </div>
    21                                         <?php } ?>
    22                                         <section class="home-content<?php echo ( has_post_thumbnail() ) ? ' thumbnail' : ''; ?>">
    23                                                 <div class="entry-content">
    24                                                         <header class="entry-header">
    25                                                                 <h1 class="entry-title"><?php the_title(); ?></h1>
    26                                                         </header><!-- .entry-header -->
    27                                                         <?php the_content(); ?>
    28                                                 </div><!-- .entry-content -->
    29                                         </section>
    30                                 <?php endwhile; // end of the loop. ?>
    31                         </div><!-- .home-top -->
     15                        <?php while ( have_posts() ) : the_post(); ?>
     16                                <?php if ( has_post_thumbnail() ) { ?>
     17                                        <div class="entry-page-image">
     18                                                <?php the_post_thumbnail(); ?>
     19                                        </div>
     20                                <?php } ?>
     21
     22                                <?php get_template_part( 'content', 'page' ); ?>
     23
     24                        <?php endwhile; // end of the loop. ?>
    3225
    3326                </div><!-- #content -->
Note: See TracChangeset for help on using the changeset viewer.