'widget_wpbc_dismiss__booking_search', 'dismiss_css_class' => '.wpbc_dismiss__booking_search', 'blured_in_versions' => array( 'free', 'ps', 'bs', 'bm' ), 'feature_link' => array( 'title' => 'feature', 'relative_url' => 'overview/#search' ), 'upgrade_link' => array( 'title' => 'Upgrade to Pro', 'relative_url' => 'features/#bk_news_section' ), 'versions' => 'Business Large, MultiUser versions', 'css' => 'transform: translate(0) translateY(120px);' ) ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped echo $upgrade_content_arr['content']; //-------------------------------------------------------------------------------------------------------------- // Real Content //-------------------------------------------------------------------------------------------------------------- ?>
‹ ›
__('Search Availability', 'booking') // , 'hint' => array( 'title' => __('Manage bookings' ,'booking') , 'position' => 'top' ) , 'onclick' => $js . "jQuery('.wpbc_sc_container__shortcode_" . $shortcode_name . " .wpbc_sc_container__shortcode_section__general').show();" , 'font_icon' => 'menu_icon icon-1x wpbc-bi-search' , 'default' => true ) ); // wpbc_bs_display_tab( array( // 'title' => __('Advanced', 'booking') // // , 'hint' => array( 'title' => __('Manage bookings' ,'booking') , 'position' => 'top' ) // , 'onclick' => $js . "jQuery('.wpbc_sc_container__shortcode_" . $shortcode_name . " .wpbc_sc_container__shortcode_section__other').show();" // , 'font_icon' => 'wpbc_icn_tune' // , 'default' => false // // ) ); wpbc_bs_toolbar_tabs_html_container_end(); } // ===================================================================================================================== // Fields // ===================================================================================================================== /** * Shortcode Fields: View Mode: * * @param $id * @param $group_key * * @return void */ function wpbc_shortcode_config_fields__searchform__searchresults( $id , $group_key ){ $optiopns_for_search = array(); $optiopns_for_search['bookingsearch'] = array( 'title' => __( 'Search form', 'booking' ), 'attr' => array( 'class' => 'wpbc_bookingtimeline_single' ) ); $optiopns_for_search['bookingsearchresults'] = array( 'title' => __( 'Search results ', 'booking' ), 'attr' => array( 'class' => 'wpbc_bookingtimeline_single' ) ); WPBC_Settings_API::field_radio_row_static( $id , array( 'type' => 'radio' , 'title' => __('Select type of shortcode', 'booking') , 'description' => ''//__('Select type of view format.' ,'booking') , 'description_tag' => 'span' , 'label' => '' , 'multiple' => false , 'group' => $group_key , 'tr_class' => $group_key . '_standard_section wpbc_sub_settings_grayed0 ' . $id . '_wpbc_sc_view_mode' , 'class' => '' , 'css' => 'margin-right:10px;' , 'only_field' => false , 'attr' => array() , 'value' => 'bookingsearch' , 'options' => $optiopns_for_search ) ); } /** * Shortcode Field: Header in search results: '{searchresults} Result(s) Found' * * @param $id * @param $group_key * * @return void */ function wpbc_shortcode_config_fields__searchavailability_text_header ($id , $group_key ){ WPBC_Settings_API::field_text_row_static( $id , array( 'type' => 'text' , 'placeholder' => __( 'Example', 'booking' ). ': ' . '{searchresults} ' . __('Result(s) Found','booking') , 'title' => __( 'Title of Search results', 'booking' ) /* translators: 1: ... */ , 'description' => sprintf( __( 'Type the title of Search results. %s - show number of search results', 'booking' ) , '{searchresults}' ) , 'description_tag' => 'span' , 'label' => '' , 'class' => '' , 'css' => '' , 'group' => $group_key , 'tr_class' => $group_key . '_standard_section wpbc_search_availability_form' , 'only_field' => false , 'attr' => array() , 'value' => '{searchresults} ' . __('Result(s) Found','booking') ) ); } /** * Shortcode Field: Header in search results: '{searchresults} Result(s) Found' * * @param $id * @param $group_key * * @return void */ function wpbc_shortcode_config_fields__searchavailability_text_nothing_found ($id , $group_key ){ WPBC_Settings_API::field_text_row_static( $id , array( 'type' => 'text' , 'placeholder' => __( 'Example', 'booking' ). ': ' . __('Nothing Found','booking') , 'title' => __( 'Nothing Found Message', 'booking' ) , 'description' => __( 'Type the message, when nothing found.', 'booking' ) , 'description_tag' => 'span' , 'label' => '' , 'class' => '' , 'css' => '' , 'group' => $group_key , 'tr_class' => $group_key . '_standard_section wpbc_search_availability_form' , 'only_field' => false , 'attr' => array() , 'value' => __('Nothing Found','booking') ) ); } /** * Shortcode Fields: OPTION - "Define External URL for search results" * * @param $id * @param $group_key * * @return void */ function wpbc_shortcode_config_fields__searchresults_new_page( $id , $group_key ){ // --------------------------------------------------------------------------------------------------------- WPBC_Settings_API::field_checkbox_row_static( $id . '_enabled' , array( 'type' => 'checkbox' , 'title' => __('Search results on new page', 'booking') , 'description' => __('Check this box to show search results on other page', 'booking') , 'description_tag' => 'span' , 'label' => '' , 'class' => '' , 'css' => '' , 'attr' => array() , 'group' => $group_key , 'tr_class' => $group_key . '_standard_section wpbc_sub_settings_grayed wpbc_search_availability_form' , 'only_field' => false , 'is_new_line' => false , 'value' => false ) ); ?>
'text' , 'placeholder' => get_option('siteurl') . '/search-results/' , 'class' => '' , 'css' => '' , 'only_field' => true , 'attr' => array() , 'value' => '' ) ); ?>
'text' , 'placeholder' => __( 'Example', 'booking' ). ': ' . '1,3,99' , 'title' => __( 'Search only for users', 'booking' ) , 'description' => __( 'Type IDs of the users (separated by comma ",") for searching availability only for these users, or leave it blank for searching for all users.', 'booking' ) , 'description_tag' => 'p' , 'label' => '' , 'class' => '' , 'css' => '' , 'group' => $group_key , 'tr_class' => $group_key . '_standard_section wpbc_search_availability_form' , 'only_field' => false , 'attr' => array() , 'value' => '' ) ); } }