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

    r17787 r17802  
    1515    <footer id="colophon" role="contentinfo">
    1616
    17             <?php if ( is_active_sidebar( 'sidebar-3' ) || is_active_sidebar( 'sidebar-4' ) || is_active_sidebar( 'sidebar-5' ) ) : ?>
    18             <div id="supplementary" <?php twentyeleven_footer_sidebar_class(); ?>>
    19                 <?php if ( is_active_sidebar( 'sidebar-3' ) ) : ?>
    20                 <div id="first" class="widget-area" role="complementary">
    21                     <?php dynamic_sidebar( 'sidebar-3' ); ?>
    22                 </div><!-- #first .widget-area -->
    23                 <?php endif; ?>
    24 
    25                 <?php if ( is_active_sidebar( 'sidebar-4' ) ) : ?>
    26                 <div id="second" class="widget-area" role="complementary">
    27                     <?php dynamic_sidebar( 'sidebar-4' ); ?>
    28                 </div><!-- #second .widget-area -->
    29                 <?php endif; ?>
    30 
    31                 <?php if ( is_active_sidebar( 'sidebar-5' ) ) : ?>
    32                 <div id="third" class="widget-area" role="complementary">
    33                     <?php dynamic_sidebar( 'sidebar-5' ); ?>
    34                 </div><!-- #third .widget-area -->
    35                 <?php endif; ?>
    36             </div><!-- #supplementary -->
    37             <?php endif; ?>
     17            <?php
     18                /* A sidebar in the footer? Yep. You can can customize
     19                 * your footer with three columns of widgets.
     20                 */
     21                get_sidebar( 'footer' );
     22            ?>
    3823
    3924            <div id="site-generator">
Note: See TracChangeset for help on using the changeset viewer.