Changeset 59907 for trunk/src/wp-content/themes/twentyseventeen/template-parts/header/site-branding.php
- Timestamp:
- 03/03/2025 06:43:08 PM (3 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentyseventeen/template-parts/header/site-branding.php
r55276 r59907 16 16 17 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() ) ) ); ?> 18 19 <?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 <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> 20 21 <?php else : ?> 21 <p class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home" ><?php bloginfo( 'name' ); ?></a></p>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> 22 23 <?php endif; ?> 23 24
Note: See TracChangeset
for help on using the changeset viewer.