'text'
, 'id' => $params[ 'search_get_key' ] . ( ( $params['is_pseudo'] ) ? '_pseudo' : '' )
, 'name' => $params[ 'search_get_key' ] . ( ( $params['is_pseudo'] ) ? '_pseudo' : '' )
, 'label' => ''
, 'disabled' => false
, 'class' => ''
, 'style' => 'min-width:100px;'
, 'placeholder' => __('ID or Title' ,'booking')
, 'attr' => array( 'maxlength' => '200' )
, 'value' => $default_value
, 'onfocus' => ''
);
wpbc_flex_text( $params_for_element );
?>
'button' ,
'title' => '',//__( 'Reset', 'booking' ) . ' ', // Title of the button
'hint' => array( 'title' => __( 'Reset keyword text field', 'booking' ), 'position' => 'top' ), // Hint
'link' => 'javascript:void(0)', // Direct link or skip it
// 'action' => "jQuery( '#booking_resource_search_keyword').val('');
// window.location.href='" . $option_params['url'] . "';", // JavaScript
'action' => ( ( ! $params['is_pseudo'] ) ? "jQuery('#" . $params[ 'search_get_key' ] . "').val( '' ); jQuery('#". $params[ 'search_form_id' ] ."').trigger( 'submit' );"
: "jQuery('#" . $params[ 'search_get_key' ] . "').val( '' ); jQuery('#". $params[ 'search_form_id' ] ."').trigger( 'submit' );" ) ,
'icon' => array(
'icon_font' => 'wpbc_icn_close', //'wpbc_icn_rotate_left',
'position' => 'left',
'icon_img' => ''
),
'class' => 'wpbc_button_as_icon', // '' | 'wpbc_ui_button_primary'
'style' => '', // Any CSS class here
'mobile_show_text' => true, // Show or hide text, when viewing on Mobile devices (small window size).
'attr' => array()
);
?>
'button' ,
'title' => '',//__( 'Search', 'booking' ) . ' ', // Title of the button
'hint' => array( 'title' => __('Search' ,'booking'), 'position' => 'top' ), // Hint
'link' => 'javascript:void(0)', // Direct link or skip it
//'link' => $option_params['url'] . '&wh_resource_id=sdfs+f',
// 'action' => "if (jQuery('#booking_resource_search_keyword' ).val() == '' ) {
// wpbc_field_highlight( '#booking_resource_search_keyword' );
// } else {
// window.location.href='" . $option_params['url'] . "&wh_resource_id='+window.encodeURIComponent(jQuery('#booking_resource_search_keyword' ).val());
// }" ,
'action' => ( ( ! $params['is_pseudo'] ) ? "jQuery('#". $params[ 'search_form_id' ] ."').trigger( 'submit' );"
: "jQuery('#" . $params[ 'search_get_key' ] . "').val( jQuery('#" . $params[ 'search_get_key' ] . "_pseudo').val() ); jQuery('#". $params[ 'search_form_id' ] ."').trigger( 'submit' );" ) ,
'icon' => array(
'icon_font' => 'wpbc_icn_search',
'position' => 'left',
'icon_img' => ''
),
'class' => 'wpbc_ui_button _primary', // '' | 'wpbc_ui_button_primary'
'style' => '', // Any CSS class here
'mobile_show_text' => true, // Show or hide text, when viewing on Mobile devices (small window size).
'attr' => array( 'id' => $el_id )
);
wpbc_flex_button( $params_for_element );
?>