[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-content/themes/twentyseventeen/ -> searchform.php (source)

   1  <?php
   2  /**
   3   * Template for displaying search forms in Twenty Seventeen
   4   *
   5   * @package WordPress
   6   * @subpackage Twenty_Seventeen
   7   * @since Twenty Seventeen 1.0
   8   * @version 1.0
   9   */
  10  
  11  ?>
  12  
  13  <?php $unique_id = esc_attr( twentyseventeen_unique_id( 'search-form-' ) ); ?>
  14  
  15  <form role="search" method="get" class="search-form" action="<?php echo esc_url( home_url( '/' ) ); ?>">
  16      <label for="<?php echo $unique_id; ?>">
  17          <span class="screen-reader-text">
  18              <?php
  19              /* translators: Hidden accessibility text. */
  20              echo _x( 'Search for:', 'label', 'twentyseventeen' );
  21              ?>
  22          </span>
  23      </label>
  24      <input type="search" id="<?php echo $unique_id; ?>" class="search-field" placeholder="<?php echo esc_attr_x( 'Search &hellip;', 'placeholder', 'twentyseventeen' ); ?>" value="<?php echo get_search_query(); ?>" name="s" />
  25      <button type="submit" class="search-submit"><?php echo twentyseventeen_get_svg( array( 'icon' => 'search' ) ); ?><span class="screen-reader-text">
  26          <?php
  27          /* translators: Hidden accessibility text. */
  28          echo _x( 'Search', 'submit button', 'twentyseventeen' );
  29          ?>
  30      </span></button>
  31  </form>


Generated : Thu Nov 21 08:20:01 2024 Cross-referenced by PHPXref