Modify the search form.
beans_search_form( )
Return: (string) The form.
Source
function beans_search_form() {
$output = beans_open_markup( 'beans_search_form', 'form', array(
'class' => 'uk-form uk-form-icon uk-form-icon-flip uk-width-1-1',
'method' => 'get',
'action' => esc_url( home_url( '/' ) ),
'role' => 'search',
) );
$output .= beans_selfclose_markup( 'beans_search_form_input', 'input', array(
'class' => 'uk-width-1-1',
'type' => 'search',
'placeholder' => __( 'Search', 'tm-beans' ), // Automatically escaped.
'value' => esc_attr( get_search_query() ),
'name' => 's',
) );
$output .= beans_open_markup( 'beans_search_form_input_icon', 'i', 'class=uk-icon-search' );
$output .= beans_close_markup( 'beans_search_form_input_icon', 'i' );
$output .= beans_close_markup( 'beans_search_form', 'form' );
return $output;
}