~canonical-sysadmins/wordpress/4.5.2

« back to all changes in this revision

Viewing changes to wp-content/themes/twentysixteen/searchform.php

  • Committer: Manuel Seelaus
  • Date: 2015-12-09 17:47:18 UTC
  • mfrom: (1.1.11 upstream)
  • Revision ID: manuel.seelaus@canonical.com-20151209174718-coxethm2swbeqksy
Merge WP4.4 from upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
<form role="search" method="get" class="search-form" action="<?php echo esc_url( home_url( '/' ) ); ?>">
 
12
        <label>
 
13
                <span class="screen-reader-text"><?php echo _x( 'Search for:', 'label', 'twentysixteen' ); ?></span>
 
14
                <input type="search" class="search-field" placeholder="<?php echo esc_attr_x( 'Search &hellip;', 'placeholder', 'twentysixteen' ); ?>" value="<?php echo get_search_query(); ?>" name="s" title="<?php echo esc_attr_x( 'Search for:', 'label', 'twentysixteen' ); ?>" />
 
15
        </label>
 
16
        <button type="submit" class="search-submit"><span class="screen-reader-text"><?php echo _x( 'Search', 'submit button', 'twentysixteen' ); ?></span></button>
 
17
</form>