Making WordPress.org


Ignore:
Timestamp:
07/13/2021 09:07:26 PM (4 years ago)
Author:
ryelle
Message:

Pattern Directory: Sync with git WordPress/pattern-directory@aa775d8caeb2f66946b7bed7ce5300eb18135bcb

File:
1 edited

Legend:

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

    r11063 r11114  
    2828            <div class="site-branding">
    2929                <?php if ( is_home() ) : ?>
    30                     <h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php echo esc_html_x( 'Pattern Directory', 'Site title', 'wporg-patterns' ); ?></a></h1>
     30                    <h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php echo esc_html_x( 'Patterns', 'Site title', 'wporg-patterns' ); ?></a></h1>
    3131
    3232                    <p class="site-description"><?php esc_html_e( 'Add a beautifully designed, ready to go layout to any WordPress site with a simple copy/paste.', 'wporg-patterns' ); ?></p>
     33                    <?php get_search_form(); ?>
    3334                <?php else : ?>
    3435                    <div>
     
    3738                        </a>
    3839                        <span class="sep">/</span>
    39                         <span class="is-current-page">
     40                        <span id="breadcrumb-part" class="is-current-page">
    4041                            <?php
    4142                            if ( is_singular( POST_TYPE ) ) {
     
    4344                            } else if ( is_singular() ) {
    4445                                the_title();
     46                            } else if ( is_search() ) {
     47                                printf(
     48                                    /* translators: Search query. */
     49                                    esc_html__( 'Search: %s', 'wporg-patterns' ),
     50                                    get_search_query()
     51                                );
    4552                            } else {
    4653                                the_archive_title();
     
    5966                        </button>
    6067
    61                         <div id="primary-menu" class="menu">
    62                             <?php
    63                             wp_nav_menu( array(
    64                                 'theme_location' => 'primary',
    65                                 'menu_id'        => 'primary-menu',
    66                             ) );
    67                             ?>
    68                         </div>
     68                        <?php
     69                        wp_nav_menu( array(
     70                            'theme_location' => 'primary',
     71                            'menu_id'        => 'primary-menu',
     72                        ) );
     73                        ?>
     74                       
    6975                    </nav><!-- #site-navigation -->
     76                    <?php get_search_form(); ?>
    7077                <?php endif; ?>
    7178            </div><!-- .site-branding -->
Note: See TracChangeset for help on using the changeset viewer.