Changeset 60483 for trunk/src/wp-content/themes/twentysixteen/header.php
- Timestamp:
- 07/18/2025 03:29:06 AM (10 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentysixteen/header.php
r59907 r60483 36 36 <div class="site-header-main"> 37 37 <div class="site-branding"> 38 <?php twentysixteen_the_custom_logo(); ?> 39 <?php $is_front = ! is_paged() && ( is_front_page() || ( is_home() && ( (int) get_option( 'page_for_posts' ) !== get_queried_object_id() ) ) ); ?> 40 <?php if ( is_front_page() && is_home() ) : ?> 41 <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> 42 <?php else : ?> 43 <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> 38 <?php 39 twentysixteen_the_custom_logo(); 40 $is_front = ! is_paged() && ( is_front_page() || ( is_home() && ( (int) get_option( 'page_for_posts' ) !== get_queried_object_id() ) ) ); 41 $site_name = get_bloginfo( 'name', 'display' ); 42 43 if ( $site_name && is_front_page() && is_home() ) : 44 ?> 45 <h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home" <?php echo $is_front ? 'aria-current="page"' : ''; ?>><?php echo $site_name; ?></a></h1> 46 <?php elseif ( $site_name ) : ?> 47 <p class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home" <?php echo $is_front ? 'aria-current="page"' : ''; ?>><?php echo $site_name; ?></a></p> 44 48 <?php 45 49 endif;
Note: See TracChangeset
for help on using the changeset viewer.