Advertisement
alchymyth

title tag twenty eleven

Nov 6th, 2011
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.56 KB | None | 0 0
  1. <title><?php
  2.     /*
  3.      * Print the <title> tag based on what is being viewed.
  4.      */
  5.     global $page, $paged;
  6.  
  7.     wp_title( '|', true, 'right' );
  8.  
  9.     // Add the blog name.
  10.     bloginfo( 'name' );
  11.  
  12.     // Add the blog description for the home/front page.
  13.     $site_description = get_bloginfo( 'description', 'display' );
  14.     if ( $site_description && ( is_home() || is_front_page() ) )
  15.         echo " | $site_description";
  16.  
  17.     // Add a page number if necessary:
  18.     if ( $paged >= 2 || $page >= 2 )
  19.         echo ' | ' . sprintf( __( 'Page %s', 'twentyeleven' ), max( $paged, $page ) );
  20.  
  21.     ?></title>
  22.  
  23.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement