Changeset 9376
- Timestamp:
- 10/28/2008 04:53:52 AM (17 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-content/themes/classic/header.php
r8999 r9376 11 11 <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" /> 12 12 13 <title><?php bloginfo('name'); ?><?php wp_title(); ?></title>13 <title><?php wp_title('«', true, 'right'); ?> <?php bloginfo('name'); ?></title> 14 14 15 15 <style type="text/css" media="screen"> -
trunk/wp-content/themes/default/header.php
r8999 r9376 11 11 <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" /> 12 12 13 <title><?php bloginfo('name'); ?> <?php if ( is_single() ) { ?> » Blog Archive <?php } ?> <?php wp_title(); ?></title>13 <title><?php wp_title('«', true, 'right'); ?> <?php bloginfo('name'); ?></title> 14 14 15 15 <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" /> -
trunk/wp-includes/general-template.php
r9356 r9376 377 377 $day = get_query_var('day'); 378 378 $title = ''; 379 380 $t_sep = '%WP_TITILE_SEP%'; // Temporary separator, for accurate flipping, if necessary 379 381 380 382 // If there's a category … … 419 421 $my_month = $wp_locale->get_month(substr($m, 4, 2)); 420 422 $my_day = intval(substr($m, 6, 2)); 421 $title = "$my_year" . ($my_month ? "$ sep $my_month" : "") . ($my_day ? "$sep$my_day" : "");423 $title = "$my_year" . ($my_month ? "$t_sep$my_month" : "") . ($my_day ? "$t_sep$my_day" : ""); 422 424 } 423 425 … … 425 427 $title = $year; 426 428 if ( !empty($monthnum) ) 427 $title .= " $sep" . $wp_locale->get_month($monthnum);429 $title .= "$t_sep" . $wp_locale->get_month($monthnum); 428 430 if ( !empty($day) ) 429 $title .= " $sep" . zeroise($day, 2);431 $title .= "$t_sep" . zeroise($day, 2); 430 432 } 431 433 … … 443 445 $term = $wp_query->get_queried_object(); 444 446 $term = $term->name; 445 if ( 'right' == $seplocation ) 446 $title = "$term $sep $tax"; 447 else 448 $title = "$tax $sep $term"; 447 $title = "$tax$t_sep$term"; 449 448 } 450 449 … … 457 456 $prefix = " $sep "; 458 457 459 // Determines position of the separator 460 if ( 'right' == $seplocation ) 461 $title = $title . $prefix; 462 else 463 $title = $prefix . $title; 458 // Determines position of the separator and direction of the breadcrumb 459 if ( 'right' == $seplocation ) { // sep on right, so reverse the order 460 $title_array = explode( $t_sep, $title ); 461 $title_array = array_reverse( $title_array ); 462 $title = implode( " $sep ", $title_array ) . $prefix; 463 } else { 464 $title_array = explode( $t_sep, $title ); 465 $title = $prefix . implode( " $sep ", $title_array ); 466 } 464 467 465 468 $title = apply_filters('wp_title', $title, $sep, $seplocation);
Note: See TracChangeset
for help on using the changeset viewer.