Advertisement
Guest User

Untitled

a guest
Mar 24th, 2013
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.53 KB | None | 0 0
  1. <?php
  2. /**
  3.  * The Header for our theme.
  4.  *
  5.  * Displays all of the <head> section and everything up till <div id="main">
  6.  *
  7.  * @package Toolbox
  8.  * @since Toolbox 0.1
  9.  */
  10. ?><!DOCTYPE html>
  11. <!--[if IE 6]>
  12. <html id="ie6" <?php language_attributes(); ?>>
  13. <![endif]-->
  14. <!--[if IE 7]>
  15. <html id="ie7" <?php language_attributes(); ?>>
  16. <![endif]-->
  17. <!--[if IE 8]>
  18. <html id="ie8" <?php language_attributes(); ?>>
  19. <![endif]-->
  20. <!--[if !(IE 6) | !(IE 7) | !(IE 8)  ]><!-->
  21. <html <?php language_attributes(); ?>>
  22. <!--<![endif]-->
  23. <head>
  24. <meta charset="<?php bloginfo( 'charset' ); ?>" />
  25. <meta name="viewport" content="width=device-width" />
  26. <title><?php
  27.     /*
  28.      * Print the <title> tag based on what is being viewed.
  29.      */
  30.     global $page, $paged;
  31.  
  32.     wp_title( '|', true, 'right' );
  33.  
  34.     // Add the blog name.
  35.     bloginfo( 'name' );
  36.  
  37.     // Add the blog description for the home/front page.
  38.     $site_description = get_bloginfo( 'description', 'display' );
  39.     if ( $site_description && ( is_home() || is_front_page() ) )
  40.         echo " | $site_description";
  41.  
  42.     // Add a page number if necessary:
  43.     if ( $paged >= 2 || $page >= 2 )
  44.         echo ' | ' . sprintf( __( 'Page %s', 'toolbox' ), max( $paged, $page ) );
  45.  
  46.     ?></title>
  47. <link rel="profile" href="http://gmpg.org/xfn/11" />
  48. <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" />
  49. <?php if ( is_singular() && get_option( 'thread_comments' ) ) wp_enqueue_script( 'comment-reply' ); ?>
  50. <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
  51. <!--[if lt IE 9]>
  52. <script src="<?php echo get_template_directory_uri(); ?>/js/html5.js" type="text/javascript"></script>
  53. <![endif]-->
  54.  
  55. <?php wp_head(); ?>
  56. </head>
  57.  
  58. <body <?php body_class(); ?>>
  59.  
  60.  
  61.     <nav id="access" role="navigation">
  62.         <h1 class="assistive-text section-heading"><?php _e( 'Main menu', 'toolbox' ); ?></h1>
  63.         <div class="skip-link screen-reader-text"><a href="#content" title="<?php esc_attr_e( 'Skip to content', 'toolbox' ); ?>"><?php _e( 'Skip to content', 'toolbox' ); ?></a></div>
  64.  
  65.         <?php wp_nav_menu( array( 'theme_location' => 'primary' ) ); ?>
  66.     </nav><!-- #access -->
  67.  
  68. <div id="page" class="hfeed">
  69. <?php do_action( 'before' ); ?>
  70.     <header id="branding" role="banner">
  71.         <hgroup>
  72.             <h1 id="site-title"><a href="<?php echo home_url( '/' ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
  73.             <h2 id="site-description"><?php bloginfo( 'description' ); ?></h2>
  74.         </hgroup>
  75.  
  76.     </header><!-- #branding -->
  77.  
  78.     <div id="main">
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement