- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-content/themes/twentyten/header.php
r14786 r15195 12 12 <html <?php language_attributes(); ?>> 13 13 <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' ); ?>" /> 39 27 <?php 40 28 /* We add some JavaScript to pages with the comment form … … 49 37 * as styles, scripts, and meta tags. 50 38 */ 51 52 39 wp_head(); 53 40 ?> … … 84 71 <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> 85 72 <?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' ) ); ?> 87 74 </div><!-- #access --> 88 75 </div><!-- #masthead -->
Note: See TracChangeset
for help on using the changeset viewer.