tags['tab'] = 'view_mode'; $this->tags['subtab'] = 'bottom_nav'; } public function in_page() { return 'wpbc'; } public function tabs() { $tabs = array(); $tabs[ 'vm_calendar' ] = array( 'title' => __('Timeline View','booking') // Title of TAB , 'hint' => __('Timeline View', 'booking') // Hint , 'page_title' => __('Timeline View', 'booking') // Title of Page , 'link' => '' // Can be skiped, then generated link based on Page and Tab tags. Or can be extenral link , 'position' => '' // 'left' || 'right' || '' , 'css_classes' => '' // CSS class(es) , 'icon' => '' // Icon - link to the real PNG img , 'font_icon' => 'wpbc_icn_rotate_90 wpbc_icn_align_vertical_bottom' // CSS definition of forn Icon // FixIn: 9.5.5.3. , 'header_font_icon' => 'wpbc_icn_rotate_90 wpbc_icn_align_vertical_bottom' // CSS definition of forn Icon // FixIn: 9.5.5.3. , 'default' => false // 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() ); // $subtabs = array(); // $tabs[ 'bookings' ][ 'subtabs' ] = $subtabs; return $tabs; } public function content() { wpbc_check_request_paramters(); //Cleanup REQUEST parameters // FixIn: 6.2.1.4. do_action( 'wpbc_hook_booking_page_header', 'timeline' ); // 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. ?>
timeline = new WPBC_TimelineFlex(); $this->timeline->admin_init(); // Define all REQUEST parameters and get bookings $this->timeline->show_timeline(); // FixIn: 9.9.0.18. if ( 'UTC' !== $server_zone ) { // Back to previos state, if it was changed. // phpcs:ignore WordPress.DateTime.RestrictedFunctions.timezone_change_date_default_timezone_set @date_default_timezone_set( $server_zone ); } //////////////////////////////////////////////////////////////////// wpbc_show_booking_footer(); ?>