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

    r17787 r17802  
    4848<link rel="profile" href="http://gmpg.org/xfn/11" />
    4949<link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" />
    50 <?php if ( is_singular() && get_option( 'thread_comments' ) ) wp_enqueue_script( 'comment-reply' ); ?>
    5150<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
    5251<!--[if lt IE 9]>
    5352<script src="<?php echo get_template_directory_uri(); ?>/js/html5.js" type="text/javascript"></script>
    5453<![endif]-->
     54<?php
     55    /* We add some JavaScript to pages with the comment form
     56     * to support sites with threaded comments (when in use).
     57     */
     58    if ( is_singular() && get_option( 'thread_comments' ) )
     59        wp_enqueue_script( 'comment-reply' );
    5560
    56 <?php wp_head(); ?>
     61    /* Always have wp_head() just before the closing </head>
     62     * tag of your theme, or you will break many plugins, which
     63     * generally use this hook to add elements to <head> such
     64     * as styles, scripts, and meta tags.
     65     */
     66    wp_head();
     67?>
    5768</head>
    5869
     
    101112            <nav id="access" role="navigation">
    102113                <h1 class="section-heading"><?php _e( 'Main menu', 'twentyeleven' ); ?></h1>
     114                <?php /*  Allow screen readers / text browsers to skip the navigation menu and get right to the good stuff. */ ?>
    103115                <div class="skip-link screen-reader-text"><a href="#content" title="<?php esc_attr_e( 'Skip to content', 'twentyeleven' ); ?>"><?php _e( 'Skip to content', 'twentyeleven' ); ?></a></div>
    104 
     116                <?php /* Our navigation menu.  If one isn't filled out, wp_nav_menu falls back to wp_page_menu. The menu assiged to the primary position is the one used. If none is assigned, the menu with the lowest ID is used. */ ?>
    105117                <?php wp_nav_menu( array( 'theme_location' => 'primary' ) ); ?>
    106118            </nav><!-- #access -->
Note: See TracChangeset for help on using the changeset viewer.