| @@ -29,13 +29,19 @@ | ||
| 29 | 29 | } |
| 30 | 30 | |
| 31 | 31 | public function tabs() { |
| 32 | 32 | |
| 33 | + $is_full_screen = WPBC_User_Custom_Data_Saver::get_user_data_value( wpbc_get_current_user_id(), 'is_full_screen' ); | |
| 34 | + $is_full_screen = function_exists( 'wpbc_ui__get_full_screen_mode_from_cookie' ) | |
| 35 | + ? wpbc_ui__get_full_screen_mode_from_cookie( $is_full_screen ) | |
| 36 | + : $is_full_screen; | |
| 37 | + $is_full_screen = ( 'On' === $is_full_screen ); | |
| 38 | + | |
| 33 | 39 | $tabs = array(); |
| 34 | 40 | $tabs[ 'vm_calendar' ] = array( |
| 35 | - 'is_show_top_path' => false, // true | false. By default value is: false. | |
| 41 | + 'is_show_top_path' => true, // true | false. By default value is: true. | |
| 36 | 42 | 'is_show_top_navigation' => true, // true | false. By default value is: false. |
| 37 | - 'left_navigation__default_view_mode' => 'min', // '' | 'min' | 'compact' | 'max' | 'none'. By default value is: ''. | |
| 43 | + 'left_navigation__default_view_mode' => '', // FixIn:11.7.1.1: ( $is_full_screen ) ? 'compact' : 'min', // '' | 'min' | 'compact' | 'max' | 'none'. By default value is: ''. | |
| 38 | 44 | 'page_title' => false, // Header - Title. If false, than hidden. |
| 39 | 45 | 'page_description' => false, // Header - Title Description. If false, than hidden. |
| 40 | 46 | 'title' => __('Timeline View','booking') // Title of TAB |
| 41 | 47 | , 'hint' => __('Timeline View', 'booking') // Hint |
| @@ -49,9 +55,29 @@ | ||
| 49 | 55 | , 'hided' => true // Is this tab hided: true || false. |
| 50 | 56 | , 'subtabs' => array() |
| 51 | 57 | |
| 52 | 58 | ); |
| 53 | - | |
| 59 | +// $tabs[ 'add-booking' ] = array( | |
| 60 | +// 'is_show_top_path' => false, // true | false. By default value is: false. | |
| 61 | +// 'left_navigation__default_view_mode' => 'min', // '' | 'min' | 'compact' | 'max' | 'none'. By default value is: ''. | |
| 62 | +// 'page_title' => __( 'Add New Booking', 'booking' ), // Header - Title. If false, than hidden. | |
| 63 | +// 'page_description' => __( 'Manually add new bookings from the Admin Panel.', 'booking' ), // Header - Title Description. If false, than hidden. | |
| 64 | +// 'title' => __( 'Add booking', 'booking' ), // Title of TAB. | |
| 65 | +// 'hint' => __( 'Add booking', 'booking' ), // Hint. | |
| 66 | +// 'position' => '', // Can be: 'left' | 'right' | ''. | |
| 67 | +// 'css_classes' => '', // this is CSS class(es). | |
| 68 | +// 'icon' => '', // Icon - link to the real PNG img. | |
| 69 | +// 'font_icon' => 'wpbc-bi-plus', // CSS definition of forn Icon. | |
| 70 | +// 'default' => false, // Is this tab disbaled: true || false. | |
| 71 | +// 'disabled' => false, // Is this tab disbaled: true || false. | |
| 72 | +// 'hided' => !false, // Is this tab hided: true || false. | |
| 73 | +// 'subtabs' => array() | |
| 74 | +// , 'link' => wpbc_get_new_booking_url__base( ) // Can be skiped, then generated link based on Page and Tab tags. Or can be extenral link | |
| 75 | +// //, 'font_icon_right' => 'wpbc-bi-question-circle' | |
| 76 | +// , 'folder_style' => 'order:101;', | |
| 77 | +// ); | |
| 78 | +// | |
| 79 | + | |
| 54 | 80 | // $subtabs = array(); |
| 55 | 81 | // $tabs[ 'bookings' ][ 'subtabs' ] = $subtabs; |
| 56 | 82 | |
| 57 | 83 | return $tabs; |
| @@ -79,14 +105,9 @@ | ||
| 79 | 105 | |
| 80 | 106 | wpbc_set_request_params_for_timeline(); // Set initial $_REQUEST['view_days_num'] depend from selected booking resources |
| 81 | 107 | |
| 82 | 108 | // T o o l b a r s ///////////////////////////////////////////////// |
| 83 | - if ( WPBC_NEW_LISTING ) { | |
| 84 | - wpbc_ui__timeline__resource_selection(); | |
| 85 | - } else { | |
| 86 | - wpbc_timeline_toolbar(); | |
| 87 | - ?><div class="clear" style="height:25px;"></div><?php | |
| 88 | - } | |
| 109 | + wpbc_ui__timeline__resource_selection(); | |
| 89 | 110 | |
| 90 | 111 | |
| 91 | 112 | // Show T i m e L i n e /////////////////////////////////////// |
| 92 | 113 | |
| @@ -116,8 +137,12 @@ | ||
| 116 | 137 | |
| 117 | 138 | wpbc_show_booking_footer(); |
| 118 | 139 | |
| 119 | 140 | ?></span><!-- wpdevelop class --><?php |
| 141 | + | |
| 142 | + if ( class_exists( 'WPBC_Add_Booking_Modal' ) ) { | |
| 143 | + WPBC_Add_Booking_Modal::template_for_modal(); | |
| 144 | + } | |
| 120 | 145 | } |
| 121 | 146 | |
| 122 | 147 | } |
| 123 | 148 | add_action('wpbc_menu_created', array( new WPBC_Page_CalendarOverview() , '__construct') ); // Executed after creation of Menu |