Advertisement
Digitalraindrops

header.php (Titles)

Sep 11th, 2011
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.71 KB | None | 0 0
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2.  
  3. <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
  4.  
  5. <head profile="http://gmpg.org/xfn/11">
  6.     <title>
  7.     <?php
  8.     if ( is_single() ) single_post_title();
  9.     elseif ( is_home() || is_front_page() ) {
  10.         bloginfo('name'); print ' | ';
  11.         bloginfo('description');
  12.         get_page_number();
  13.     }
  14.     elseif ( is_page() ) single_post_title('');
  15.     elseif ( is_search() ) {
  16.         bloginfo('name'); print ' | Search results for ' .wp_specialchars($s);
  17.         get_page_number();
  18.     }
  19.     elseif ( is_404() ) bloginfo('name'); print ' | Not Found';
  20.     else {
  21.         bloginfo('name');
  22.         wp_title('|');
  23.         get_page_number();
  24.     }
  25.     ?>
  26.     </title>
  27.  
  28.     <meta http-equiv="content-type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
  29.  
  30.     <link rel="stylesheet" type="text/css" href="<?php bloginfo('stylesheet_url'); ?>" />
  31.  
  32.     <?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?>
  33.  
  34.     <?php wp_head(); ?>
  35.  
  36.     <link rel="alternate" type="application/rss+xml" href="<?php bloginfo('rss2_url'); ?>"  title="<?php printf( __( '%s latest posts', 'your-theme' ), wp_specialchars( get_bloginfo('name'), 1 ) ); ?>" />
  37.     <link rel="alternate" type="application/rss+xml" href="<?php bloginfo('comments_rss2_url') ?>" title="<?php printf( __( '%s latest comments', 'your-theme' ), wp_specialchars( get_bloginfo('name'), 1 ) ); ?>" />
  38.     <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
  39. </head>
  40.  
  41. <body>
  42. <div id="wrapper" class="hfeed">
  43.     <div id="header">
  44.         <div id="masthead">
  45.  
  46.             <!-- SEO Optimization-->
  47.             <div id="branding">
  48.                             <div id="blog-title"><span><a href="<?php bloginfo( 'url' ) ?>/" title="<?php bloginfo( 'name' ) ?>" rel="home"><?php bloginfo( 'name' ) ?></a></span></div>
  49.             <?php if ( is_home() || is_front_page() ) { ?>
  50.                                 <h1 id="blog-description"><?php bloginfo( 'description' ) ?></h1>
  51.             <?php } else { ?>
  52.                                 <div id="blog-description"><?php bloginfo( 'description' ) ?></div>
  53.             <?php } ?>
  54.             </div><!-- #branding --> 
  55.             
  56.             <div id="access">
  57.                 <div class="skip-link"><a href="#content" title="<?php _e( 'Skip to content', 'your-theme' ) ?>"><?php _e( 'Skip to content', 'your-theme' ) ?></a></div>
  58.                 <?php wp_page_menu( 'sort_column=menu_order' ); ?>
  59.             </div><!-- #access --> 
  60.         </div><!-- #masthead -->
  61.     </div><!-- #header -->
  62.  
  63.     <div id="main">
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement