Changeset 25021 for trunk/src/wp-content/themes/twentyfourteen/header.php
- Timestamp:
- 08/14/2013 04:38:01 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentyfourteen/header.php
r24832 r25021 11 11 <html <?php language_attributes(); ?> class="no-js"> 12 12 <head> 13 <script>14 /**15 * Replaces class "no-js" with "js" in the <html>-tag when JavaScript is being used.16 * Allows easy styling for browsers [not] supporting/running JavaScript.17 */18 document.documentElement.className = document.documentElement.className.replace(/(\s|^)no-js(\s|$)/, '$1js$2');19 </script>20 13 <meta charset="<?php bloginfo( 'charset' ); ?>" /> 21 14 <meta name="viewport" content="width=device-width" /> … … 60 53 61 54 <?php $header_image = get_header_image(); 62 if ( ! empty( $header_image ) ) {?>55 if ( ! empty( $header_image ) ) : ?> 63 56 <div id="site-header"> 64 57 <a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"> … … 66 59 </a> 67 60 </div> 68 <?php }?>61 <?php endif; ?> 69 62 70 <header id="masthead" class="site-header clearfix" role="banner">71 <div class="header-main clear fix">63 <header id="masthead" class="site-header" role="banner"> 64 <div class="header-main clear"> 72 65 <h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1> 73 66 … … 85 78 86 79 <nav role="navigation" class="site-navigation primary-navigation"> 87 <h1 class=" assistive-text"><?php _e( 'Primary Menu', 'twentyfourteen' ); ?></h1>88 <div class=" assistive-text skip-link"><a href="#content" title="<?php esc_attr_e( 'Skip to content', 'twentyfourteen' ); ?>"><?php _e( 'Skip to content', 'twentyfourteen' ); ?></a></div>80 <h1 class="screen-reader-text"><?php _e( 'Primary Menu', 'twentyfourteen' ); ?></h1> 81 <div class="screen-reader-text skip-link"><a href="#content" title="<?php esc_attr_e( 'Skip to content', 'twentyfourteen' ); ?>"><?php _e( 'Skip to content', 'twentyfourteen' ); ?></a></div> 89 82 <?php wp_nav_menu( array( 'theme_location' => 'primary' ) ); ?> 90 83 </nav> … … 96 89 <?php if ( $social_links ) : ?> 97 90 <div class="social-links-wrapper hide"> 98 <ul class="social-links clear fix">91 <ul class="social-links clear"> 99 92 <?php if ( is_email( $email_link ) ) : ?> 100 93 <li class="email-link"> … … 189 182 190 183 <div class="search-box-wrapper hide"> 191 <div class="search-box clear fix">184 <div class="search-box clear"> 192 185 <?php get_search_form(); ?> 193 186 </div> 194 187 </div> 195 </header><!-- #masthead .site-header-->188 </header><!-- #masthead --> 196 189 197 <div id="main" class="site-main clearfix">190 <div id="main" class="site-main">
Note: See TracChangeset
for help on using the changeset viewer.