| 161 | | $form = '<form role="search" method="get" id="searchform" action="' . esc_url( home_url( '/' ) ) . '" > |
| 162 | | <div><label class="screen-reader-text" for="s">' . __('Search for:') . '</label> |
| 163 | | <input type="text" value="' . get_search_query() . '" name="s" id="s" /> |
| 164 | | <input type="submit" id="searchsubmit" value="'. esc_attr__('Search') .'" /> |
| 165 | | </div> |
| | 162 | $type = ( 'html5' === $format ) ? 'search' : 'text'; |
| | 163 | $placeholder = ( 'html5' === $format ) ? 'placeholder="' . esc_attr_x( 'Search …', 'placeholder' ) . '" ' : ''; |
| | 164 | |
| | 165 | $form = '<form role="search" method="get" id="searchform" class="searchform" action="' . esc_url( home_url( '/' ) ) . '" > |
| | 166 | <div> |
| | 167 | <label class="screen-reader-text" for="s">' . _x( 'Search for:', 'label' ) . '</label> |
| | 168 | <input type="' . $type . '" ' . $placeholder . 'value="' . get_search_query() . '" name="s" id="s" /> |
| | 169 | <input type="submit" id="searchsubmit" value="'. esc_attr_x( 'Search', 'submit button' ) .'" /> |
| | 170 | </div> |