<?php
/**
 * cyywordpress Search Functions
 *
 * @package cyywordpress
 */

//<label class="screen-reader-text" for="s">' . __( 'Search for:' ) . '</label>
if ( ! function_exists( 'cyywordpress_search_form' ) ) {
  function cyywordpress_search_form( $form ) {
      $form = '
      <form role="search" method="get" id="searchform" class="searchform" action="' . home_url( '/' ) . '" >
        <h2 class="widget-title is-bold">搜索</h2>
        <div class="control has-addons" style=" display: flex;">

          <input class="input is-small" type="text" value="' . get_search_query() . '" name="s" id="s" />&nbsp;
          <input class="button is-small" type="submit" id="searchsubmit" value="'. esc_attr__( 'Submit' ) .'" />
        </div>
      </form>';

      return $form;
  }
}
add_filter( 'get_search_form', 'cyywordpress_search_form', 100 );
