Changeset 9726
- Timestamp:
- 04/15/2020 05:30:44 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes/header.php
r9196 r9726 14 14 require WPORGPATH . 'header.php'; 15 15 ?> 16 <header id="masthead" class="site-header " role="banner">16 <header id="masthead" class="site-header <?php echo is_home() ? 'home' : ''; ?>" role="banner"> 17 17 <div class="site-branding"> 18 18 <?php if ( is_home() ) : ?> 19 <h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php echo esc_html_x( 'Theme Directory', 'Site title', 'wporg-themes' ); ?></a></h1> 19 <h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php echo esc_html_x( 'Themes', 'Site title', 'wporg-themes' ); ?></a></h1> 20 21 <p class="site-description"> 22 <?php 23 $theme_count = wp_count_posts( 'repopackage' )->publish; 24 printf( 25 /* Translators: Total number of themes. */ 26 esc_html( _n( 'Add style to your WordPress site with %s theme.', 'Add style to your WordPress site with %s themes.', $theme_count, 'wporg-themes' ) ), 27 esc_html( number_format_i18n( $theme_count ) ) 28 ); 29 ?> 30 </p> 20 31 <?php else : ?> 21 <p class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php echo esc_html_x( 'Theme Directory', 'Site title', 'wporg-themes' ); ?></a></p>32 <p class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php echo esc_html_x( 'Themes', 'Site title', 'wporg-themes' ); ?></a></p> 22 33 <?php endif; ?> 23 34 </div>
Note: See TracChangeset
for help on using the changeset viewer.