[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

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

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


Generated : Sun Dec 22 08:20:01 2024 Cross-referenced by PHPXref