Make WordPress Core


Ignore:
Timestamp:
05/04/2011 10:54:50 PM (13 years ago)
Author:
lancewillett
Message:

Twenty Eleven updates and fixes, see #17198

  • Add explanatory comments in all templates, following Twenty Ten's example
  • Stick with twentyeleven_ for prefixing filter names
  • Use post format content templates in search results
  • First pass at adding a template for adding a sidebar to pages
  • Add a featured post header to standard sticky posts
  • Style fixes: print media, comment styles for pages with sidebars, color of meta links on image post format
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-content/themes/twentyeleven/author.php

    r17787 r17802  
    1313            <div id="content" role="main">
    1414
    15                 <?php the_post(); ?>
     15                <?php
     16                    /* Queue the first post, that way we know
     17                     * what date we're dealing with (if that is the case).
     18                     *
     19                     * We reset this later so we can run the loop
     20                     * properly with a call to rewind_posts().
     21                     */
     22                    if ( have_posts() )
     23                        the_post();
     24                ?>
    1625
    1726                <header class="page-header">
     
    1928                </header>
    2029
    21                 <?php rewind_posts(); ?>
     30                <?php
     31                    /* Since we called the_post() above, we need to
     32                     * rewind the loop back to the beginning that way
     33                     * we can run the loop properly, in full.
     34                     */
     35                    rewind_posts();
     36                ?>
    2237
    2338                <?php twentyeleven_content_nav( 'nav-above' ); ?>
     
    4055                <?php while ( have_posts() ) : the_post(); ?>
    4156
    42                     <?php get_template_part( 'content', get_post_format() ); ?>
     57                    <?php
     58                        /* Include the Post-Format-specific template for the content.
     59                         * If you want to overload this in a child theme then include a file
     60                         * called loop-___.php (where ___ is the Post Format name) and that will be used instead.
     61                         */
     62                        get_template_part( 'content', get_post_format() );
     63                    ?>
    4364
    4465                <?php endwhile; ?>
Note: See TracChangeset for help on using the changeset viewer.