false, // true | false. By default value is: false. 'left_navigation__default_view_mode' => 'min', // '' | 'min' | 'compact' | 'max' | 'none'. By default value is: ''. 'page_title' => __( 'Add New Booking', 'booking' ), // Header - Title. If false, than hidden. 'page_description' => __( 'Manually add new bookings from the Admin Panel.', 'booking' ), // Header - Title Description. If false, than hidden. 'title' => __( 'Add booking', 'booking' ), // Title of TAB. 'hint' => __( 'Add booking', 'booking' ), // Hint. 'link' => '', // Can be skiped, then generated link based on Page and Tab tags. Or can be extenral link. 'position' => '', // Can be: 'left' | 'right' | ''. 'css_classes' => '', // this is CSS class(es). 'icon' => '', // Icon - link to the real PNG img. 'font_icon' => 'wpbc-bi-plus', // CSS definition of forn Icon. 'default' => true, // Is this tab activated by default or not: true || false. 'disabled' => false, // Is this tab disbaled: true || false. 'hided' => true, // Is this tab hided: true || false. 'subtabs' => array(), ); return $tabs; } public function content() { do_action( 'wpbc_hook_add_booking_page_header', 'add_booking' ); // Define Notices Section and show some static messages, if needed. if ( ! wpbc_is_mu_user_can_be_here( 'activated_user' ) ) { return false; // Check if MU user activated, otherwise show Warning message. } if ( ! wpbc_set_default_resource_to__get() ) { return false; // Define default booking resources for $_ GET and check if booking resource belong to user. } ?>
get_saved_user_calendar_options(); // --------------------------------------------------------------------- // Normalize 'custom booking form' from GET. Flow: Shortcode_Attr -> $_GET -> Default. // --------------------------------------------------------------------- // If non empty, then use sanitized $_GET, otherwise use 'custom_booking_form' attr. $custom_booking_form = WPBC_GET_Request::has_non_empty_get( 'booking_form' ) ? WPBC_GET_Request::get_sanitized( 'booking_form' ) : 'standard'; WPBC_FE_Render::render_booking_form( array( 'resource_id' => $resource_id, 'cal_count' => intval( $saved_user_calendar_params['months_number'] ), 'is_echo' => 1, 'custom_booking_form' => $custom_booking_form, 'selected_dates_without_calendar' => '', 'start_month_calendar' => false, 'shortcode_param__options' => '{calendar' . $saved_user_calendar_params['options_param'] . '}', ) ); ?>

$selected_calendar_months_count, 'options_param' => $option_months_num_in_row . $option_width . $option_cell_height ); } } add_action('wpbc_menu_created', array( new WPBC_Page_AddNewBooking() , '__construct') ); // Executed after creation of Menu