true, // true | false. By default value is: true. 'is_show_top_navigation' => true, // true | false. By default value is: false. 'left_navigation__default_view_mode' => '', // FixIn: 11.7.1.1.: ( $is_full_screen ) ? 'compact' : 'min', // '' | 'min' | 'compact' | 'max' | 'none'. By default value is: ''. 'page_title' => false, // Header - Title. If false, than hidden. 'page_description' => false, // Header - Title Description. If false, than hidden. 'title' => __( 'Bookings', 'booking' ), // Menu - Title. 'hint' => __( 'Booking Listing', 'booking' ), // Menu - Mouse Over Hint. 'font_icon' => 'wpbc-bi-collection', // Menu - Icon. 'link' => '', // Can be skiped, then generated link based on Page and Tab tags. Or can be extenral link. 'position' => '', // 'left' | 'right' | '' -- Default is ''. 'css_classes' => '', // CSS classes. 'icon' => '', // Icon - link to the real PNG img. 'default' => false, // Is this tab activated by default or not: true || false. 'disabled' => false, // Is this tab disabled: true || false. 'hided' => true, // Is this tab hided: true || false. 'subtabs' => array(), ); // $subtabs = array(); // $tabs[ 'items' ][ 'subtabs' ] = $subtabs; return $tabs; } public function content() { do_action( 'wpbc_hook_settings_page_header', 'page_booking_listing' ); // 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. } // ------------------------------------------------------------------------------------------------------------- // Get and escape request parameters // ------------------------------------------------------------------------------------------------------------- $user_request = new WPBC_AJX__REQUEST( array( 'db_option_name' => 'booking_listing_request_params', 'user_id' => wpbc_get_current_user_id(), 'request_rules_structure' => wpbc_ajx_get__request_params__names_default(), ) ); $escaped_search_request_params = false; // phpcs:ignore WordPress.Security.NonceVerification.Recommended, WordPress.Security.NonceVerification.Missing if ( empty( $_REQUEST['overwrite'] ) ) { $escaped_search_request_params = $user_request->get_sanitized__saved__user_request_params(); // Get Saved. } // phpcs:ignore WordPress.Security.NonceVerification.Recommended, WordPress.Security.NonceVerification.Missing if ( ( false === $escaped_search_request_params ) || ( ! empty( $_REQUEST['overwrite'] ) ) ) { // This request was not saved before, then get sanitized direct parameters, like: $_REQUEST['resource_id']. $request_prefix = false; $escaped_search_request_params = $user_request->get_sanitized__in_request__value_or_default( $request_prefix ); // Direct request: $_REQUEST['resource_id'] //. } // ------------------------------------------------------------------------------------------------------------- // Submit. $submit_form_name = 'wpbc_ajx_booking_form'; // Define form name. ?>
init( array( 'load_on_page' => 'wpbc-ajx_booking', 'container_header' => '.wpbc_ajx_booking_pagination_header', 'container_footer' => '.wpbc_ajx_booking_pagination_footer', 'container' => '.wpbc_ajx_booking_pagination', 'on_click' => 'wpbc_ajx_booking_pagination_click' // onclick = "javascript: wpbc_ajx_booking_pagination_click( page_num );" - need to define this function in JS file )); /** $wpbc_pagination->show( array( // Its showing with JavaScript on document ready 'page_active' => 3, 'pages_count' => 20 )); /**/ } private function show_ajx_booking_listing_container_ajax( $escaped_search_request_params ) { if ( class_exists( 'WPBC_AJX_Bookings' ) ) { WPBC_AJX_Bookings::enqueue_js_files_now(); } ?>