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') .'" /> |
| 162 | $type = ( 'html5' == strtolower( $format ) ) ? 'search' : 'text'; |
| 163 | $placeholder = ( 'html5' == strtolower( $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><label class="screen-reader-text" for="s">' . _x( 'Search for:', 'label' ) . '</label> |
| 167 | <input type="' . $type . '" ' . $placeholder . 'value="' . get_search_query() . '" name="s" id="s" /> |
| 168 | <input type="submit" id="searchsubmit" class="submit" value="'. esc_attr_x( 'Search', 'submit button' ) .'" /> |