WordPress.org

Make WordPress Core


Ignore:
Timestamp:
05/04/2011 10:54:50 PM (10 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/content.php

    r17791 r17802  
    1111    <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    1212        <header class="entry-header">
     13            <?php if ( is_sticky() ) : ?>
     14                <hgroup>
     15                    <h1 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'twentyeleven' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h1>
     16                    <h2 class="entry-format"><?php _e( 'Featured', 'twentyeleven' ); ?></h2>
     17                </hgroup>
     18            <?php else : ?>
    1319            <h1 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'twentyeleven' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h1>
     20            <?php endif; ?>
    1421
    1522            <?php if ( 'post' == $post->post_type ) : ?>
Note: See TracChangeset for help on using the changeset viewer.