Changeset 30072 for trunk/src/wp-content/themes/twentyfifteen/header.php
- Timestamp:
- 10/28/2014 09:02:02 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentyfifteen/header.php
r30046 r30072 30 30 <header id="masthead" class="site-header" role="banner"> 31 31 <div class="site-branding"> 32 <h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1> 33 <p class="site-description"><?php bloginfo( 'description' ); ?></p> 32 <?php 33 if ( is_front_page() && is_home() ) : ?> 34 <h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1> 35 <?php else : ?> 36 <p class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></p> 37 <?php endif; 38 39 $description = get_bloginfo( 'description', 'display' ); 40 if ( ! empty( $description ) ) : ?> 41 <p class="site-description"><?php echo esc_html( $description ); ?></p> 42 <?php endif; 43 ?> 34 44 <button class="secondary-toggle"><?php esc_html_e( 'Menu and widgets', 'twentyfifteen' ); ?></button> 35 45 </div><!-- .site-branding -->
Note: See TracChangeset
for help on using the changeset viewer.