Making WordPress.org

Changeset 9726


Ignore:
Timestamp:
04/15/2020 05:30:44 AM (5 years ago)
Author:
dd32
Message:

Theme Directory: Bring over the Plugin Directory style header, providing a better intro to the Theme Directory.

Props poena.
See #4113.
Fixes #4924.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes/header.php

    r9196 r9726  
    1414require WPORGPATH . 'header.php';
    1515?>
    16 <header id="masthead" class="site-header" role="banner">
     16<header id="masthead" class="site-header <?php echo is_home() ? 'home' : ''; ?>" role="banner">
    1717    <div class="site-branding">
    1818        <?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>
    2031        <?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>
    2233        <?php endif; ?>
    2334    </div>
Note: See TracChangeset for help on using the changeset viewer.