Changeset 60483
- Timestamp:
- 07/18/2025 03:29:06 AM (7 months ago)
- Location:
- trunk/src/wp-content/themes
- Files:
-
- 9 edited
-
twentyeleven/header.php (modified) (1 diff)
-
twentyfifteen/header.php (modified) (1 diff)
-
twentyfourteen/header.php (modified) (1 diff)
-
twentyseventeen/template-parts/header/site-branding.php (modified) (1 diff)
-
twentysixteen/header.php (modified) (1 diff)
-
twentyten/header.php (modified) (1 diff)
-
twentythirteen/header.php (modified) (1 diff)
-
twentytwelve/header.php (modified) (1 diff)
-
twentytwenty/inc/template-tags.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentyeleven/header.php
r60159 r60483 79 79 <header id="branding"> 80 80 <hgroup> 81 <?php $is_front = ! is_paged() && ( is_front_page() || ( is_home() && ( (int) get_option( 'page_for_posts' ) !== get_queried_object_id() ) ) ); ?> 82 <h1 id="site-title"><span><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home" <?php echo $is_front ? 'aria-current="page"' : ''; ?>><?php bloginfo( 'name' ); ?></a></span></h1> 83 <h2 id="site-description"><?php bloginfo( 'description' ); ?></h2> 81 <?php 82 $is_front = ! is_paged() && ( is_front_page() || ( is_home() && ( (int) get_option( 'page_for_posts' ) !== get_queried_object_id() ) ) ); 83 $site_name = get_bloginfo( 'name', 'display' ); 84 $site_description = get_bloginfo( 'description', 'display' ); 85 86 if ( $site_name ) : 87 ?> 88 <h1 id="site-title"><span><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home" <?php echo $is_front ? 'aria-current="page"' : ''; ?>><?php echo $site_name; ?></a></span></h1> 89 <?php 90 endif; 91 92 if ( $site_description ) : 93 ?> 94 <h2 id="site-description"><?php echo $site_description; ?></h2> 95 <?php endif; ?> 84 96 </hgroup> 85 97 86 98 <?php 87 // Check to see if the header image has been removed.88 $header_image = get_header_image();99 // Check to see if the header image has been removed. 100 $header_image = get_header_image(); 89 101 if ( $header_image ) : 90 102 // Compatibility with versions of WordPress prior to 3.4. -
trunk/src/wp-content/themes/twentyfifteen/header.php
r59907 r60483 33 33 <div class="site-branding"> 34 34 <?php 35 twentyfifteen_the_custom_logo(); 36 $is_front = ! is_paged() && ( is_front_page() || ( is_home() && ( (int) get_option( 'page_for_posts' ) !== get_queried_object_id() ) ) ); 37 if ( is_front_page() && is_home() ) : 35 twentyfifteen_the_custom_logo(); 36 $is_front = ! is_paged() && ( is_front_page() || ( is_home() && ( (int) get_option( 'page_for_posts' ) !== get_queried_object_id() ) ) ); 37 $site_name = get_bloginfo( 'name', 'display' ); 38 39 if ( $site_name && is_front_page() && is_home() ) : 38 40 ?> 39 <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>40 <?php else: ?>41 <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>42 <?php43 endif;41 <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> 42 <?php elseif ( $site_name ) : ?> 43 <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 <?php 45 endif; 44 46 45 $description = get_bloginfo( 'description', 'display' ); 46 if ( $description || is_customize_preview() ) : 47 ?> 48 <p class="site-description"><?php echo $description; ?></p> 49 <?php 50 endif; 47 $description = get_bloginfo( 'description', 'display' ); 48 if ( $description || is_customize_preview() ) : 51 49 ?> 50 <p class="site-description"><?php echo $description; ?></p> 51 <?php endif; ?> 52 52 53 <button class="secondary-toggle"><?php _e( 'Menu and widgets', 'twentyfifteen' ); ?></button> 53 54 </div><!-- .site-branding --> -
trunk/src/wp-content/themes/twentyfourteen/header.php
r59991 r60483 51 51 <header id="masthead" class="site-header"> 52 52 <div class="header-main"> 53 <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> 53 <?php 54 $site_name = get_bloginfo( 'name', 'display' ); 55 if ( $site_name ) : 56 ?> 57 <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> 58 <?php endif; ?> 54 59 55 60 <div class="search-toggle"> -
trunk/src/wp-content/themes/twentyseventeen/template-parts/header/site-branding.php
r59907 r60483 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() ) ) ); ?> 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; ?> 18 <?php 19 $is_front = ! is_paged() && ( is_front_page() || ( is_home() && ( (int) get_option( 'page_for_posts' ) !== get_queried_object_id() ) ) ); 20 $site_name = get_bloginfo( 'name', 'display' ); 24 21 25 <?php 22 if ( $site_name && is_front_page() ) : 23 ?> 24 <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> 25 <?php elseif ( $site_name ) : ?> 26 <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> 27 <?php 28 endif; 29 26 30 $description = get_bloginfo( 'description', 'display' ); 27 31 -
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; -
trunk/src/wp-content/themes/twentyten/header.php
r60159 r60483 69 69 <div id="masthead"> 70 70 <div id="branding" role="banner"> 71 <?php $heading_tag = ( is_home() || is_front_page() ) ? 'h1' : 'div'; ?> 72 <<?php echo $heading_tag; ?> id="site-title"> 73 <span> 74 <?php $is_front = ! is_paged() && ( is_front_page() || ( is_home() && ( (int) get_option( 'page_for_posts' ) !== get_queried_object_id() ) ) ); ?> 75 <a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home" <?php echo $is_front ? 'aria-current="page"' : ''; ?>><?php bloginfo( 'name' ); ?></a> 76 </span> 77 </<?php echo $heading_tag; ?>> 78 <div id="site-description"><?php bloginfo( 'description' ); ?></div> 71 <?php 72 $heading_tag = ( is_home() || is_front_page() ) ? 'h1' : 'div'; 73 $is_front = ! is_paged() && ( is_front_page() || ( is_home() && ( (int) get_option( 'page_for_posts' ) !== get_queried_object_id() ) ) ); 74 $site_name = get_bloginfo( 'name', 'display' ); 75 $site_description = get_bloginfo( 'description', 'display' ); 79 76 80 <?php 81 // Compatibility with versions of WordPress prior to 3.4. 77 if ( $site_name ) : 78 ?> 79 <<?php echo $heading_tag; ?> id="site-title"> 80 <span> 81 <a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home" <?php echo $is_front ? 'aria-current="page"' : ''; ?>><?php echo $site_name; ?></a> 82 </span> 83 </<?php echo $heading_tag; ?>> 84 <?php 85 endif; 86 87 if ( $site_description ) : 88 ?> 89 <div id="site-description"><?php echo $site_description; ?></div> 90 <?php 91 endif; 92 93 // Compatibility with versions of WordPress prior to 3.4. 82 94 if ( function_exists( 'get_custom_header' ) ) { 83 95 /* -
trunk/src/wp-content/themes/twentythirteen/header.php
r59913 r60483 30 30 </a> 31 31 <header id="masthead" class="site-header"> 32 <?php $is_front = ! is_paged() && ( is_front_page() || ( is_home() && ( (int) get_option( 'page_for_posts' ) !== get_queried_object_id() ) ) ); ?> 32 <?php 33 $is_front = ! is_paged() && ( is_front_page() || ( is_home() && ( (int) get_option( 'page_for_posts' ) !== get_queried_object_id() ) ) ); 34 $site_name = get_bloginfo( 'name', 'display' ); 35 $site_description = get_bloginfo( 'description', 'display' ); 36 37 ?> 33 38 <a class="home-link" href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home" <?php echo $is_front ? 'aria-current="page"' : ''; ?>> 34 <h1 class="site-title"><?php bloginfo( 'name' ); ?></h1> 35 <h2 class="site-description"><?php bloginfo( 'description' ); ?></h2> 39 <?php if ( $site_name ) : ?> 40 <h1 class="site-title"><?php echo $site_name; ?></h1> 41 <?php endif; ?> 42 <?php if ( $site_description ) : ?> 43 <h2 class="site-description"><?php echo $site_description; ?></h2> 44 <?php endif; ?> 36 45 </a> 37 46 -
trunk/src/wp-content/themes/twentytwelve/header.php
r59912 r60483 38 38 <header id="masthead" class="site-header"> 39 39 <hgroup> 40 <?php $is_front = ! is_paged() && ( is_front_page() || ( is_home() && ( (int) get_option( 'page_for_posts' ) !== get_queried_object_id() ) ) ); ?> 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 <h2 class="site-description"><?php bloginfo( 'description' ); ?></h2> 40 <?php 41 $is_front = ! is_paged() && ( is_front_page() || ( is_home() && ( (int) get_option( 'page_for_posts' ) !== get_queried_object_id() ) ) ); 42 $site_name = get_bloginfo( 'name', 'display' ); 43 $site_description = get_bloginfo( 'description', 'display' ); 44 45 if ( $site_name ) : 46 ?> 47 <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> 48 <?php 49 endif; 50 51 if ( $site_description ) : 52 ?> 53 <h2 class="site-description"><?php echo $site_description; ?></h2> 54 <?php endif; ?> 43 55 </hgroup> 44 56 -
trunk/src/wp-content/themes/twentytwenty/inc/template-tags.php
r59907 r60483 64 64 $classname = $args['logo_class']; 65 65 } else { 66 if ( ! $site_title ) { 67 return ''; 68 } 69 66 70 $contents = sprintf( $args['title'], esc_url( get_home_url( null, '/' ) ), esc_html( $site_title ) ); 67 71 if (
Note: See TracChangeset
for help on using the changeset viewer.