WordPress 4.7
[autoinstalls/wordpress.git] / wp-content / themes / twentyseventeen / template-parts / header / site-branding.php
1 <?php
2 /**
3  * Displays header site branding
4  *
5  * @package WordPress
6  * @subpackage Twenty_Seventeen
7  * @since 1.0
8  * @version 1.0
9  */
10
11 ?>
12 <div class="site-branding">
13         <div class="wrap">
14
15                 <?php the_custom_logo(); ?>
16
17                 <div class="site-branding-text">
18                         <?php if ( is_front_page() ) : ?>
19                                 <h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
20                         <?php else : ?>
21                                 <p class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></p>
22                         <?php endif; ?>
23
24                         <?php $description = get_bloginfo( 'description', 'display' );
25                                 if ( $description || is_customize_preview() ) : ?>
26                                         <p class="site-description"><?php echo $description; ?></p>
27                                 <?php endif; ?>
28                 </div><!-- .site-branding-text -->
29
30                 <?php if ( ( twentyseventeen_is_frontpage() || ( is_home() && is_front_page() ) ) && ! has_nav_menu( 'top' ) ) : ?>
31                 <a href="#content" class="menu-scroll-down"><?php echo twentyseventeen_get_svg( array( 'icon' => 'arrow-right' ) ); ?><span class="screen-reader-text"><?php _e( 'Scroll down to content', 'twentyseventeen' ); ?></span></a>
32         <?php endif; ?>
33
34         </div><!-- .wrap -->
35 </div><!-- .site-branding -->