[ Index ] |
PHP Cross Reference of WordPress Trunk (Updated Daily) |
[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 $is_front = ! is_paged() && ( is_front_page() || ( is_home() && ( (int) get_option( 'page_for_posts' ) !== get_queried_object_id() ) ) ); ?> 19 <?php if ( is_front_page() ) : ?> 20 <h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home" <?php echo $is_front ? 'aria-current="page"' : ''; ?>><?php bloginfo( 'name' ); ?></a></h1> 21 <?php else : ?> 22 <p class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home" <?php echo $is_front ? 'aria-current="page"' : ''; ?>><?php bloginfo( 'name' ); ?></a></p> 23 <?php endif; ?> 24 25 <?php 26 $description = get_bloginfo( 'description', 'display' ); 27 28 if ( $description || is_customize_preview() ) : 29 ?> 30 <p class="site-description"><?php echo $description; ?></p> 31 <?php endif; ?> 32 </div><!-- .site-branding-text --> 33 34 <?php if ( ( twentyseventeen_is_frontpage() || ( is_home() && is_front_page() ) ) && ! has_nav_menu( 'top' ) ) : ?> 35 <a href="#content" class="menu-scroll-down"><?php echo twentyseventeen_get_svg( array( 'icon' => 'arrow-right' ) ); ?><span class="screen-reader-text"> 36 <?php 37 /* translators: Hidden accessibility text. */ 38 _e( 'Scroll down to content', 'twentyseventeen' ); 39 ?> 40 </span></a> 41 <?php endif; ?> 42 43 </div><!-- .wrap --> 44 </div><!-- .site-branding -->
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated : Sun Mar 9 08:20:01 2025 | Cross-referenced by PHPXref |