[ Index ] |
PHP Cross Reference of WordPress |
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * Displays header site branding 4 * 5 * @package WordPress 6 * @subpackage Twenty_Seventeen 7 * @since Twenty Seventeen 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 25 $description = get_bloginfo( 'description', 'display' ); 26 27 if ( $description || is_customize_preview() ) : 28 ?> 29 <p class="site-description"><?php echo $description; ?></p> 30 <?php endif; ?> 31 </div><!-- .site-branding-text --> 32 33 <?php if ( ( twentyseventeen_is_frontpage() || ( is_home() && is_front_page() ) ) && ! has_nav_menu( 'top' ) ) : ?> 34 <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> 35 <?php endif; ?> 36 37 </div><!-- .wrap --> 38 </div><!-- .site-branding -->
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Tue Dec 3 01:00:02 2024 | Cross-referenced by PHPXref 0.7.1 |