Make WordPress Core


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-content/themes/twentyten/header.php

    r14786 r15195  
    1212<html <?php language_attributes(); ?>>
    1313<head>
    14     <meta charset="<?php bloginfo( 'charset' ); ?>" />
    15     <title>
    16     <?php // Returns the title based on what is being viewed
    17         if ( is_single() ) { // single posts
    18             single_post_title(); echo ' | '; bloginfo( 'name' );
    19         // The home page or, if using a static front page, the blog posts page.
    20         } elseif ( is_home() || is_front_page() ) {
    21             bloginfo( 'name' );
    22             if( get_bloginfo( 'description' ) )
    23                 echo ' | ' ; bloginfo( 'description' );
    24             twentyten_the_page_number();
    25         } elseif ( is_page() ) { // WordPress Pages
    26             single_post_title( '' ); echo ' | '; bloginfo( 'name' );
    27         } elseif ( is_search() ) { // Search results
    28             printf( __( 'Search results for %s', 'twentyten' ), '"'.get_search_query().'"' ); twentyten_the_page_number(); echo ' | '; bloginfo( 'name' );
    29         } elseif ( is_404() ) {  // 404 (Not Found)
    30             _e( 'Not Found', 'twentyten' ); echo ' | '; bloginfo( 'name' );
    31         } else { // Otherwise:
    32             wp_title( '' ); echo ' | '; bloginfo( 'name' ); twentyten_the_page_number();
    33         }
    34     ?>
    35     </title>
    36     <link rel="profile" href="http://gmpg.org/xfn/11" />
    37     <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" />
    38     <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
     14<meta charset="<?php bloginfo( 'charset' ); ?>" />
     15<title><?php
     16    /*
     17     * Print the <title> tag based on what is being viewed.
     18     * We filter the output of wp_title() a bit -- see
     19     * twentyten_filter_wp_title() in functions.php.
     20     */
     21    wp_title( '|', true, 'right' );
     22
     23    ?></title>
     24<link rel="profile" href="http://gmpg.org/xfn/11" />
     25<link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" />
     26<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
    3927<?php
    4028    /* We add some JavaScript to pages with the comment form
     
    4937     * as styles, scripts, and meta tags.
    5038     */
    51 
    5239    wp_head();
    5340?>
     
    8471                <div class="skip-link screen-reader-text"><a href="#content" title="<?php esc_attr_e( 'Skip to content', 'twentyten' ); ?>"><?php _e( 'Skip to content', 'twentyten' ); ?></a></div>
    8572                <?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.  */ ?>
    86                 <?php wp_nav_menu( array( 'sort_column' => 'menu_order', 'container_class' => 'menu-header', 'theme_location' => 'primary' ) ); ?>
     73                <?php wp_nav_menu( array( 'container_class' => 'menu-header', 'theme_location' => 'primary' ) ); ?>
    8774            </div><!-- #access -->
    8875        </div><!-- #masthead -->
Note: See TracChangeset for help on using the changeset viewer.