Advertisement
Guest User

Untitled

a guest
Mar 2nd, 2012
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.52 KB | None | 0 0
  1. <title>
  2.         <?php global $page, $paged;
  3.  
  4.         wp_title( '|', true, 'right' );
  5.  
  6.         // Add the blog name.
  7.         bloginfo( 'name' );
  8.  
  9.         // Add the blog description for the home/front page.
  10.         $site_description = get_bloginfo( 'description', 'display' );
  11.         if ( $site_description && ( is_home() || is_front_page() ) ) {
  12.             echo " | $site_description";
  13.         }
  14.        
  15.         // Add a page number if necessary:
  16.         if ( $paged >= 2 || $page >= 2 ) {
  17.             echo ' | ' . sprintf( __( 'Page %s', 'raw_theme' ), max( $paged, $page ) );
  18.         }
  19.         ?>
  20.     </title>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement