Advertisement
kaed

7/2/13 - header.php

Jul 2nd, 2013
41
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.74 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 fuckinround
  8.  */
  9. ?><!DOCTYPE html>
  10. <html <?php language_attributes(); ?>>
  11. <head>
  12. <meta charset="<?php bloginfo( 'charset' ); ?>" />
  13. <meta name="viewport" content="width=device-width" />
  14. <title><?php wp_title( '|', true, 'right' ); ?></title>
  15. <link rel="profile" href="http://gmpg.org/xfn/11" />
  16. <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
  17.  
  18. <?php wp_head(); ?>
  19. </head>
  20.  
  21. <body <?php body_class(); ?>>
  22. <div id="page" class="hfeed site">
  23.     <?php do_action( 'before' ); ?>
  24.     <header id="masthead" class="site-header" role="banner">
  25.         <div class="site-branding">
  26.             <h1 class="site-title">
  27.                 <a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home">
  28.                 <?php
  29.                 if (get_option('type_of_logo') == 'text'){
  30.                     echo get_option('logo_text');
  31.                 } else {
  32.                     bloginfo( 'name' );
  33.                 }
  34.                 ?>
  35.                 </a>
  36.             </h1>
  37.             <h2 class="site-description">
  38.             <?php
  39.             if (get_option('type_of_logo') == 'text'){
  40.                 echo get_option('logo_slogan');
  41.             } else {
  42.                 bloginfo( 'description' );
  43.             }
  44.             ?>
  45.             </h2>
  46.         </div>
  47.  
  48.         <nav id="site-navigation" class="navigation-main" role="navigation">
  49.             <h1 class="menu-toggle"><?php _e( 'Menu', 'fuckinround' ); ?></h1>
  50.             <div class="screen-reader-text skip-link"><a href="#content" title="<?php esc_attr_e( 'Skip to content', 'fuckinround' ); ?>"><?php _e( 'Skip to content', 'fuckinround' ); ?></a></div>
  51.  
  52.             <?php wp_nav_menu( array( 'theme_location' => 'primary' ) ); ?>
  53.         </nav><!-- #site-navigation -->
  54.     </header><!-- #masthead -->
  55.  
  56.     <div id="main" class="site-main">
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement