'widget_wpbc_dismiss__booking_select', 'dismiss_css_class' => '.wpbc_dismiss__booking_select', 'blured_in_versions' => array( 'free' ), 'feature_link' => array( 'title' => 'feature', 'relative_url' => 'overview/#booking-resources' ), 'upgrade_link' => array( 'title' => 'Upgrade to Pro', 'relative_url' => 'features/#bk_news_section' ), 'versions' => 'paid versions', 'css' => 'transform: translate(0) translateY(190px);' ) ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped echo $upgrade_content_arr['content']; //-------------------------------------------------------------------------------------------------------------- // Real Content //-------------------------------------------------------------------------------------------------------------- ?>
\'Standard\'' ) ); ?>
__('Resource Selection', 'booking') , 'text_css' => 'line-height: 18px;vertical-align: text-top;' // , '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' => 'wpbc-bi-border-width NOwpbc-bi-card-checklist' , 'default' => true ) ); wpbc_bs_display_tab( array( 'title' => __('View Options', 'booking') // , 'hint' => array( 'title' => __('Manage bookings' ,'booking') , 'position' => 'top' ) , 'onclick' => $js . "jQuery('.wpbc_sc_container__shortcode_" . $shortcode_name . " .wpbc_sc_container__shortcode_section__options').show();" , 'font_icon' => 'wpbc_icn_adjust' , 'default' => false ) ); wpbc_bs_display_tab( array( 'title' => __('Conditional Days Selection', 'booking') // , 'hint' => array( 'title' => __('Manage bookings' ,'booking') , 'position' => 'top' ) , 'onclick' => $js . "jQuery('.wpbc_sc_container__shortcode_" . $shortcode_name . " .wpbc_sc_container__shortcode_section__conditions').show();" , 'font_icon' => 'wpbc-bi-calendar2-week' , 'default' => false , 'css_classes' => 'wpbc_dismiss__conditional_days' ) ); wpbc_bs_display_tab( array( 'title' => __('Aggregate', 'booking') // , 'hint' => array( 'title' => __('Manage bookings' ,'booking') , 'position' => 'top' ) , 'onclick' => $js . "jQuery('.wpbc_sc_container__shortcode_" . $shortcode_name . " .wpbc_sc_container__shortcode_section__aggregate').show();" , 'font_icon' => 'wpbc-bi-calendar2-plus' , 'default' => false , 'css_classes' => 'wpbc_dismiss__booking_param_aggregate' ) ); 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(); } /** * Shortcode Field: Select-box - "Booking Resource" * * @param $id * @param $group_key * * @return void */ function wpbc_shortcode_config_fields__select_selected_resource( $id , $group_key ){ $resources_list = array(); if ( class_exists( 'wpdev_bk_personal' ) ){ $resources_list_orig = wpbc_get_all_booking_resources_list(); $resources_list[0] = array( 'title' => ' - '.__('None', 'booking' ).' - ', 'attr' => array ( 'class' => 'wpbc_single_resource', 'style' => 'border-bottom:1px dashed #ddd;') ); foreach ($resources_list_orig as $res_id => $res_val) { $resources_list[$res_id] = $res_val; } } WPBC_Settings_API::field_select_row_static( $id , array( 'type' => 'select' , 'title' => __( 'Preselected resource', 'booking') , 'description' => __( 'Choose the initially selected booking resource.', 'booking' ) , 'description_tag' => 'span' , 'label' => '' , 'multiple' => false , 'group' => $group_key , 'tr_class' => $group_key . '_standard_section wpbc_sub_settings_grayed' , 'class' => '' , 'css' => 'margin-right:10px;min-width:15em;' , 'only_field' => false , 'attr' => array() , 'value' => '' , 'options' => $resources_list ) ); } /** * Shortcode Fields: AGGREGATE * * @param $id * @param $group_key * * @return void */ function wpbc_shortcode_config_fields__select_multiple_resources( $id , $group_key ){ if ( class_exists( 'wpdev_bk_personal' ) ){ $resources_list_orig = wpbc_get_all_booking_resources_list(); $resources_list = array(); $resources_list[0] = array( 'title' => __('All', 'booking' ), 'attr' => array ( 'class' => 'wpbc_single_resource', 'style' => 'border-bottom:1px dashed #ddd;') ); foreach ($resources_list_orig as $res_id => $res_val) { $resources_list[$res_id] = $res_val; } ?>
'select' , 'title' => ''//__('Aggregate booking dates from other resources', 'booking') , 'description' => ''//__( 'Select booking resources, for getting booking dates from them and set such dates as unavailable in destination calendar.', 'booking' ) , 'description_tag' => 'span' , 'label' => '' , 'multiple' => true , 'group' => $group_key , 'tr_class' => ''//$group_key . '_advanced_section' , 'class' => 'wpbc_ui_control wpbc_ui_select' , 'css' => 'margin-right:10px;height:12em;' , 'only_field' => true , 'attr' => array() , 'value' => '0' , 'options' => $resources_list ) ); ?>
  1. ' . esc_html__( 'Hold down the Ctrl button to make multiple selections.', 'booking' ); ?>
  2. ', '' ) ); ?>
'text' , 'placeholder' => __( 'Example', 'booking' ). ': ' .__( 'Please select the resource:', 'booking' ) , 'title' => __('Label', 'booking') , 'description' => __('The title displayed next to your select box.', 'booking') , 'description_tag' => 'span' , 'label' => '' , 'class' => '' , 'css' => 'width0:5em;' , 'tr_class' => '' , 'group' => $group_key , 'tr_class' => $group_key . '_standard_section wpbc_sub_settings_grayed' , 'only_field' => false , 'attr' => array() , 'value' => '' ) ); } /** * Shortcode Field: Label - text of label for the select box. * * @param $id * @param $group_key * * @return void */ function wpbc_shortcode_config_fields__text_first_option_title($id , $group_key ){ WPBC_Settings_API::field_text_row_static( $id , array( 'type' => 'text' , 'placeholder' => __( 'Example', 'booking' ). ': ' . __( 'Please select', 'booking' ) , 'title' => __('Title for first option', 'booking') , 'description' => __('The first option in the dropdown list.' ,'booking') . ' ' . esc_html__('Please leave it empty if you want to skip it.' ,'booking') . '' , 'description_tag' => 'span' , 'label' => '' , 'class' => '' , 'css' => 'width0:5em;' , 'tr_class' => '' , 'group' => $group_key , 'tr_class' => $group_key . '_standard_section wpbc_sub_settings_grayed' , 'only_field' => false , 'attr' => array() , 'value' => '' ) ); }