Making WordPress.org


Ignore:
Timestamp:
07/09/2014 06:46:05 PM (10 years ago)
Author:
coffee2code
Message:

Code Reference: add search form to search results page.

  • Add search form to top of search results page
  • Add breadcrumb for search results page
  • Make searchform template applicable outside of reference landing page

See #450, #494.

File:
1 edited

Legend:

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

    r596 r742  
    1010    <div id="content-area">
    1111
    12         <header class="page-header">
    13             <h1 class="page-title"><?php printf( __( 'Search Results for: %s', 'wporg' ), '<span>' . get_search_query() . '</span>' ); ?></h1>
    14         </header><!-- .page-header -->
     12        <div class="breadcrumb-trail breadcrumbs" itemprop="breadcrumb">
     13            <span class="trail-browse"><span class="trail-begin"><?php _e( 'Search Results', 'wporg' ); ?></span></span>
     14            <span class="sep">/</span> <span class="trail-end"><?php echo esc_html( get_search_query() ); ?></span>
     15        </div>
     16
     17        <?php get_search_form(); ?>
     18
    1519        <main id="main" class="site-main" role="main">
    1620
Note: See TracChangeset for help on using the changeset viewer.