Advertisement
Ustyne

twentyeleven header.php nav

Sep 24th, 2012
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.27 KB | None | 0 0
  1. Here is my header.php  from the <header> tag
  2.  
  3.  
  4. </head>
  5.  
  6. <body <?php body_class(); ?>>
  7.  
  8.             <nav id="access" role="navigation">
  9.                 <h3 class="assistive-text"><?php _e( 'Header Menu', 'twentyeleven' ); ?></h3>
  10.                 <?php /*  Allow screen readers / text browsers to skip the navigation menu and get right to the good stuff. */ ?>
  11.                 <div class="skip-link"><a class="assistive-text" href="#content" title="<?php esc_attr_e( 'Skip to primary content', 'twentyeleven' ); ?>"><?php _e( 'Skip to primary content', 'twentyeleven' ); ?></a></div>
  12.                 <div class="skip-link"><a class="assistive-text" href="#secondary" title="<?php esc_attr_e( 'Skip to secondary content', 'twentyeleven' ); ?>"><?php _e( 'Skip to secondary content', 'twentyeleven' ); ?></a></div>
  13.                 <?php /* Our navigation menu.  If one isn't filled out, wp_nav_menu falls back to wp_page_menu. The menu assiged to the primary position is the one used. If none is assigned, the menu with the lowest ID is used. */ ?>
  14.                 <?php wp_nav_menu( array( 'theme_location' => 'header' ) ); ?>
  15.             </nav><!-- #access -->
  16.            
  17.     <header id="branding" role="banner">
  18.            
  19.             <hgroup>
  20.                 <h1 id="site-title"><span><a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></span></h1>
  21.                 <h2 id="site-description"><?php bloginfo( 'description' ); ?></h2>
  22.             </hgroup>
  23.             <?php
  24.                 // Check to see if the header image has been removed
  25.                 $header_image = get_header_image();
  26.                 if ( ! empty( $header_image ) ) :
  27.             ?>
  28.             <a href="<?php echo esc_url( home_url( '/' ) ); ?>">
  29.             <img src="<?php header_image(); ?>" width="<?php echo HEADER_IMAGE_WIDTH; ?>" height="<?php echo HEADER_IMAGE_HEIGHT; ?>" alt="" />
  30.                 <?php endif; // end check for featured image or standard header ?>
  31.             </a>
  32.  
  33.             <?php
  34.                 // Has the text been hidden?
  35.                 if ( 'blank' == get_header_textcolor() ) :
  36.             ?>
  37.                 <div class="only-search<?php if ( ! empty( $header_image ) ) : ?> with-image<?php endif; ?>">
  38.                 <?php get_search_form(); ?>
  39.                 </div>
  40.             <?php
  41.                 else :
  42.             ?>
  43.                 <?php get_search_form(); ?>
  44.             <?php endif; ?>
  45.  
  46.     </header><!-- #branding -->
  47.  
  48.     <div id="page" class="hfeed">
  49.     <div id="main">
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement