Changeset 10528 for sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/template-parts/component-archive-search.php
- Timestamp:
- 12/17/2020 12:13:25 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/template-parts/component-archive-search.php
r10438 r10528 11 11 } 12 12 $search_label = get_post_type_object( $pt )->labels->search_items ?? ''; 13 14 $form_action = get_post_type_archive_link( $pt ); 13 15 ?> 14 16 <div class="search-form--is-inline search-form--is-muted search-form--has-border search-form--has-medium-text"> 15 <form role="search" method="get" class="search-form"> 16 <label for="archive-search" class="screen-reader-text"><?php echo esc_html( _x( 'Search for:', 'label', 'wporg-learn' ) ); ?></label> 17 <input type="search" id="archive-search" class="search-field" placeholder="<?php echo esc_attr( $search_label ); ?>" value="<?php echo esc_attr( $search_query ); ?>" name="search" /> 17 <form role="search" method="get" class="search-form" action="<?php echo esc_attr( $form_action ); ?>"> 18 <label for="archive-search" class="screen-reader-text"> 19 <?php echo esc_html( _x( 'Search for:', 'label', 'wporg-learn' ) ); ?> 20 </label> 21 <input 22 type="search" 23 id="archive-search" 24 class="search-field" 25 placeholder="<?php echo esc_attr( $search_label ); ?>" 26 value="<?php echo esc_attr( $search_query ); ?>" 27 name="search" 28 /> 18 29 <button class="button button-primary button-search"> 19 30 <i class="dashicons dashicons-search"></i>
Note: See TracChangeset
for help on using the changeset viewer.