Making WordPress.org


Ignore:
Timestamp:
12/17/2020 12:13:25 AM (4 years ago)
Author:
coreymckrill
Message:

WordPress.org Learn: Sync with GitHub

https://github.com/WordPress/learn/compare/49a011b0d85dcf472f0c0d97aa138f5c14d40a90...2b9e66afc2060e7e6c9ae0a861779c83e35d82eb

File:
1 edited

Legend:

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

    r10272 r10528  
    88 */
    99
    10  $placeholder = isset( $args['placeholder'] ) ? $args['placeholder'] : _x( 'Search for a teaching resource', 'placeholder', 'wporg-learn' );
    11 
     10$placeholder = isset( $args['placeholder'] ) ? $args['placeholder'] : _x( 'Search for a teaching resource', 'placeholder', 'wporg-learn' );
    1211?>
    1312<form role="search" method="get" class="search-form" action="<?php echo esc_url( home_url( '/' ) ); ?>">
    1413    <label for="s" class="screen-reader-text"><?php echo esc_html( _x( 'Search for:', 'label', 'wporg-learn' ) ); ?></label>
    15     <input type="search" id="s" class="search-field" placeholder="<?php echo esc_attr( $placeholder ); ?>" value="<?php the_search_query(); ?>" name="s" />
    16     <button class="button button-primary button-search"><i class="dashicons dashicons-search"></i><span class="screen-reader-text"><?php esc_html_e( 'Search Lesson Plans and Workshop Ideas', 'wporg-learn' ); ?></span></button>
     14    <input
     15        type="search"
     16        id="s"
     17        class="search-field"
     18        placeholder="<?php echo esc_attr( $placeholder ); ?>"
     19        value="<?php the_search_query(); ?>"
     20        name="s"
     21    />
     22    <button class="button button-primary button-search">
     23        <i class="dashicons dashicons-search"></i>
     24        <span class="screen-reader-text">
     25            <?php esc_html_e( 'Search', 'wporg-learn' ); ?>
     26        </span>
     27    </button>
    1728</form>
Note: See TracChangeset for help on using the changeset viewer.