Changeset 11114 for sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-patterns/header.php
- Timestamp:
- 07/13/2021 09:07:26 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-patterns/header.php
r11063 r11114 28 28 <div class="site-branding"> 29 29 <?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> 31 31 32 32 <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(); ?> 33 34 <?php else : ?> 34 35 <div> … … 37 38 </a> 38 39 <span class="sep">/</span> 39 <span class="is-current-page">40 <span id="breadcrumb-part" class="is-current-page"> 40 41 <?php 41 42 if ( is_singular( POST_TYPE ) ) { … … 43 44 } else if ( is_singular() ) { 44 45 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 ); 45 52 } else { 46 53 the_archive_title(); … … 59 66 </button> 60 67 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 69 75 </nav><!-- #site-navigation --> 76 <?php get_search_form(); ?> 70 77 <?php endif; ?> 71 78 </div><!-- .site-branding -->
Note: See TracChangeset
for help on using the changeset viewer.