Making WordPress.org


Ignore:
Timestamp:
06/22/2016 10:13:29 AM (8 years ago)
Author:
obenland
Message:

Breathe: First pass at menu updates.

See #1778.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-breathe/header.php

    r3514 r3533  
    44require WPORGPATH . 'header.php';
    55?>
    6 <div id="page" class="hfeed site">
    7     <?php do_action( 'before' ); ?>
    8     <header id="masthead" class="site-header" role="banner">
    9         <div class="hgroup">
    10             <?php
    11             $header_image = get_header_image();
    12             if ( ! empty( $header_image ) ) :
    13                 ?>
    14                 <a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home">
    15                     <img src="<?php echo esc_url( add_query_arg( 'w', 276, $header_image ) ); ?>" class="header-image" alt="" />
    16                 </a>
    17             <?php endif; ?>
    18             <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>
    19             <h2 class="site-description"><?php bloginfo( 'description' ); ?></h2>
    20         </div><!-- .hgroup -->
    21         <nav id="site-navigation" class="navigation-main" role="navigation">
     6<header id="masthead" class="site-header" role="banner">
     7    <div class="site-branding">
     8        <?php if ( is_front_page() && is_home() ) : ?>
     9            <h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
     10        <?php else : ?>
     11            <p class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></p>
     12        <?php endif; ?>
     13
     14        <nav id="site-navigation" class="navigation-main clear" role="navigation">
    2215            <div class="screen-reader-text skip-link"><a href="#content" title="<?php esc_attr_e( 'Skip to content', 'p2-breathe' ); ?>"><?php _e( 'Skip to content', 'p2-breathe' ); ?></a></div>
    2316
    2417            <?php wp_nav_menu( array( 'theme_location' => 'primary', 'fallback_cb' => false ) ); ?>
    2518        </nav><!-- .navigation-main -->
    26     </header><!-- .site-header -->
     19    </div>
     20</header><!-- .site-header -->
    2721
    28     <div id="main" class="site-main">
     22<div id="page" class="hfeed site">
     23    <?php do_action( 'before' ); ?>
     24
     25
     26    <div id="main" class="site-main clear">
Note: See TracChangeset for help on using the changeset viewer.