PluginProbe
Booking Calendar / 11.5
Booking Calendar v11.5
11.8.4 11.8.3 11.8.2 11.8.1 11.8 11.7 11.6.1 11.6 11.5 11.4.3 11.4.2 11.4.1 11.4 11.3 11.2.1 11.2 11.1 11.0 10.15.7 10.15.6 10.1.3 10.10 10.10.1 10.10.2 10.11 All 204 releases
booking / includes / ui_settings / parts / ui__nav_vert.php

ui__nav_vert.php in Booking Calendar 11.5, at includes/ui_settings/parts/ui__nav_vert.php

1,028 lines 40.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Admin Panel UI - Parts
4 *
5 * @version 1.2
6 * @package Any
7 * @category Page Structure in Admin Panel
8 * @author wpdevelop
9 *
10 * @web-site https://wpbookingcalendar.com/
11 * @email info@wpbookingcalendar.com
12 *
13 * @modified 2025-02-15
14 */
15
16 if ( ! defined( 'ABSPATH' ) ) {
17 exit; // Exit, if accessed directly.
18 }
19
20 function wpbc_ui__get_root_menu_arr() {
21
22 $icn = '<i style="margin: 0;margin-left: auto;" class="wpbc_ui_el__vert_nav_icon menu_icon icon-1x wpbc-bi-chevron-right arrow-right-short"></i>';
23
24 $pages_arr = array(
25 'wpbc' => array(
26 'type' => 'menu',
27 'title' => __( 'Bookings', 'booking' ),
28 'font_icon' => 'wpbc-bi-collection',
29 ),
30 'wpbc-divider-1' => array(
31 'type' => 'divider',
32 ),
33 'wpbc-availability' => array(
34 'type' => 'menu',
35 'title' => __( 'Availability', 'booking' ),
36 'font_icon' => 'wpbc-bi-calendar-week',
37 ),
38 );
39
40 if ( class_exists('wpdev_bk_biz_m') ) {
41 $pages_arr['wpbc-prices'] = array(
42 'type' => 'menu',
43 'title' => __( 'Prices', 'booking' ),
44 'font_icon' => 'wpbc-bi-cash-stack',
45 );
46 }
47
48 if ( class_exists('wpdev_bk_personal') ) {
49 $pages_arr['wpbc-resources'] = array(
50 'type' => 'menu',
51 'title' => __( 'Resources', 'booking' ),// . ' / ' . __( 'unique calendars', 'booking' ),
52 'font_icon' => 'wpbc-bi-list',
53 );
54 } else {
55 $pages_arr['wpbc-resources'] = array(
56 'type' => 'menu',
57 'title' => __( 'Resource', 'booking' ) . ' / ' . __( 'Publish', 'booking' ),
58 'font_icon' => 'wpbc-bi-list',
59 );
60 }
61 $pages_arr['wpbc-divider-2'] = array(
62 'type' => 'divider',
63 );
64 $pages_arr['wpbc-settings'] = array(
65 'type' => 'menu',
66 'title' => __( 'Settings', 'booking' ),
67 'font_icon' => 'wpbc_icn_settings',
68 );
69
70 return $pages_arr;
71 }
72
73 /**
74 * Show Left Vaertical Navigation Bar
75 *
76 * @param array $args - parameters.
77 *
78 * @return void
79 */
80 function wpbc_ui__left_vertical_nav( $args =array() ) {
81
82 $defaults = array(
83 'attr' => array(),
84 );
85 $params = wp_parse_args( $args, $defaults );
86
87 // Ability to click on panel, only if there 'min' class - panel minimized!
88 echo '<div class="wpbc_ui_el__vert_left_bar__wrapper" onclick0="javascript:if (( jQuery( this ).parent(\'.wpbc_settings_page_wrapper\').hasClass(\'min\') ) && ( ! wpbc_admin_ui__is_in_mobile_screen_size())) { wpbc_admin_ui__sidebar_left__do_max(); }" >';
89
90 // FixIn: 10.12.1.7.
91 wpbc_ui__vert_left_bar__side_button__do_compact();
92 wpbc_ui__vert_left_bar__side_button__do_max();
93
94 $active_page_arr = array(
95 'active_page' => $args['active_page'], // wpbc-settings.
96 'active_tab' => $args ['active_tab'], // calendar_appearance.
97 'active_subtab' => $args['active_subtab'], // calendar_appearance_skin.
98 );
99
100 // Available Main Menu - slug => titles.
101 $root_menu_arr = wpbc_ui__get_root_menu_arr();
102
103 if ( function_exists( 'wpbc_booking_modes_resolve_root_navigation' ) ) {
104 $root_menu_arr = wpbc_booking_modes_resolve_root_navigation( $root_menu_arr, $args['page_nav_tabs'] );
105 }
106
107 echo ' <div class="wpbc_ui_el__vert_left_bar__content">';
108
109 $is_show_all_menus = true;
110
111 if ( ! $is_show_all_menus ) {
112 wpbc_ui__vert_left_bar__section__root_menu( $root_menu_arr );
113 } else {
114
115 // wpbc_ui_el__divider_horizontal();
116 echo '<div class="wpbc_ui_el__row100 wpbc_ui_el__expand_colapse_btns">';
117 wpbc_ui__vert_left_bar__do_compact();
118 wpbc_ui__vert_left_bar__do_max();
119 echo '</div>';
120
121 echo ' <div class="wpbc_ui_el__vert_left_bar__root_sections_container" role="tablist">';
122 }
123
124 // Loop to show all main sections in vertical menu.
125 foreach ( $root_menu_arr as $main_page_slug => $root_menu_options_arr ) {
126
127 if ( 'menu' !== $root_menu_options_arr['type'] ) {
128 continue;
129 }
130
131 $page_title = $root_menu_options_arr['title'];
132 $is_expanded = ( $main_page_slug === $active_page_arr['active_page'] );
133
134 if ( $is_show_all_menus ) {
135 echo ' <div class="wpbc_ui_el__vert_left_bar__root_section_element root_section_element_' . esc_attr( $main_page_slug ) . ' ' . ( ( $is_expanded ) ? 'section_expanded' : '' ) . '">';
136
137 wpbc_ui__vert_menu__show_root_section_header( $main_page_slug, $page_title );
138 }
139
140 echo ' <div class="wpbc_ui_el__vert_left_bar__section wpbc_ui_el__vert_left_bar__section_' .
141 esc_attr( $main_page_slug ) .
142 ( ( ( $main_page_slug !== $active_page_arr['active_page'] ) && ( ! $is_show_all_menus ) ) ? ' wpbc_ui__hide ' : '' ) .
143 // ( ( ( ! $is_expanded ) && ( $is_show_all_menus ) ) ? ' wpbc_ui__hide ' : '' ) .
144 '">';
145
146 // Show only active page settings list.
147 if ( $main_page_slug !== $active_page_arr['active_page'] ) {
148 //continue;
149 }
150 $page_item_arr = $args['page_nav_tabs'][ $main_page_slug ];
151
152 if ( ! $is_show_all_menus ) {
153 // Section Header.
154 echo '<div class="wpbc_ui_el__row100 wpbc_ui_el__expand_colapse_btns">';
155
156 wpbc_ui__vert_menu__show_section_header_go_back( $page_title );
157 wpbc_ui__vert_left_bar__do_compact();
158 wpbc_ui__vert_left_bar__do_max();
159 echo '</div>';
160 wpbc_ui_el__divider_horizontal();
161 }
162
163 foreach ( $page_item_arr as $main_menu_slug => $menu_item_arr ) {
164 $folder_style = ( ! empty( $menu_item_arr['folder_style'] ) ) ? esc_attr( $menu_item_arr['folder_style'] ) : '';
165
166 $folder_css = '';
167 if ( ( ! empty( $menu_item_arr['subtabs'] ) ) && ( ! empty( $menu_item_arr['is_active'] ) ) ) {
168 $folder_css .= ' expanded';
169 }
170
171 echo '<div class="wpbc_ui_el__level__folder ' . esc_attr( $folder_css ) . '" style="' . esc_attr( $folder_style ) . '">';
172
173
174 if ( empty( $menu_item_arr['type'] ) ) {
175 $menu_item_arr['type'] = 'main';
176 }
177
178 switch ( $menu_item_arr['type'] ) {
179
180 case 'separator':
181 wpbc_ui_el__divider_horizontal();
182 break;
183
184 case 'html':
185 wpbc_ui__vert_menu__item_html( $main_menu_slug, $menu_item_arr );
186 break;
187
188 default:
189 wpbc_ui__vert_menu__item_main( $main_menu_slug, $menu_item_arr );
190 }
191
192
193 foreach ( $menu_item_arr['subtabs'] as $main_submenu_slug => $submenu_item_arr ) {
194
195 if ( empty( $submenu_item_arr['type'] ) ) {
196 $submenu_item_arr['type'] = 'subtab';
197 }
198
199 switch ( $submenu_item_arr['type'] ) {
200
201 case 'subtab':
202 wpbc_ui__vert_menu__item_sub( $main_submenu_slug, $submenu_item_arr );
203 break;
204
205 case 'separator':
206 wpbc_ui__vert_menu__item_separtor( $main_submenu_slug, $submenu_item_arr );
207 break;
208
209 case 'html':
210 wpbc_ui__vert_menu__item_html( $main_submenu_slug, $submenu_item_arr );
211 break;
212
213 default:
214 }
215 }
216 echo '</div><!-- wpbc_ui_el__level__folder -->';
217 }
218
219 if ( $is_show_all_menus ) {
220 echo ' </div><!-- wpbc_ui_el__vert_left_bar__root_section_element -->';
221 }
222 echo ' </div><!-- wpbc_ui_el__vert_left_bar__section -->';
223 } // Loop to show all main sections in vertical menu.
224
225
226 if ( $is_show_all_menus ) {
227 echo ' </div><!-- wpbc_ui_el__vert_left_bar__root_sections_container -->';
228 }
229
230
231 $is_show_up = wpbc_is_show_up();
232 // Show upgrade icon only for the Free version here.
233 $is_show_up = ( $is_show_up && ( ! class_exists( 'wpdev_bk_personal' ) ) );
234 if ( $is_show_up ) {
235 ?><div class="wpbc_ui_el__vert_left_bar__footer_compensator"></div><?php
236 }
237
238 echo ' </div><!-- wpbc_ui_el__vert_left_bar__content -->';
239 if ( $is_show_up ) {
240 $url = wpbc_up_link();
241 ?>
242 <div class="wpbc_ui_el__vert_left_bar__footer_section">
243 <a class="wpbc_ui_el_upgrade_button wpbc_button_light wpbc_button_green" href="<?php echo esc_url( $url ); ?>">
244 <span class="hide_in_compact_mode"><?php esc_html_e( 'Upgrade to Pro', 'booking' ); ?></span>
245 <span class="hide_in_max_mode"><?php esc_html_e( 'Pro', 'booking' ); ?></span>
246 </a>
247 </div>
248 <?php
249 }
250 echo '</div><!-- wpbc_ui_el__vert_left_bar__wrapper -->';
251
252 wpbc_start_element_scrollable__with_simplebar( '.wpbc_ui_el__vert_left_bar__content' );
253 }
254
255 /**
256 * Set Scrolable Element with Simplebar js library.
257 *
258 * @param string $jq_element - e.g. '.wpbc_ui_el__vert_left_bar__content'
259 * @param string $options - e.g. 'autoHide: false, scrollbarMinSize: 10' - options for the Simplebar. See more: https://www.npmjs.com/package/simplebar#1-documentation
260 *
261 * @return void
262 */
263 function wpbc_start_element_scrollable__with_simplebar( $jq_element, $options = 'autoHide: false' ) {
264
265 // FixIn: 10.12.2.3.
266
267 // Initial example: new SimpleBar( jQuery( '.wpbc_ui_el__vert_left_bar__content' )[0], { autoHide: false } );.
268 ?>
269 <script type="text/javascript">
270 (function() { var a = setInterval( function() { if ( ( 'undefined' === typeof jQuery ) || ! window.jQuery ) { return; } clearInterval( a ); jQuery( document ).ready( function () {
271 jQuery( '.wpbc_ui_el__vert_left_bar__section' ).css( { "animation-duration": "1ms" } ); // Set animation of showing left siebar from left to right imediate to prevent flipping.
272 if ( 'undefined' !== typeof SimpleBar ) {
273 new SimpleBar( jQuery( '<?php echo esc_attr( $jq_element ); ?>' )[0], { <?php echo esc_attr( $options ); ?> } );
274 }
275 var wait_timer = setTimeout( function (){
276 jQuery( '.wpbc_ui_el__vert_left_bar__section' ).css( { "animation-duration": "200ms" } ); // Set animation to normal value.
277 }, 300 );
278 } ); }, 400 ); })();
279 </script>
280 <?php
281 }
282
283 /* == Toggles in Left menu ========================================================================================= */
284
285 /**
286 * Show element - "Open / Hide Left Vertical Navigation" panel
287 *
288 * @return void
289 */
290 function wpbc_ui__vert_left_bar__do_toggle() {
291
292 $el_arr = array();
293 $el_arr['font_icon'] = 'wpbc_icn_menu';
294 $el_arr['container_style'] = 'padding:0 8px;';
295 $el_arr['container_class'] = 'wpbc_ui__top_nav__btn_show_left_vertical_nav';
296 $el_arr['onclick'] = "if ( jQuery( '.wpbc_ui_el__vert_left_bar__content' ).is( ':visible' ) ) {";
297 $el_arr['onclick'] .= ' wpbc_admin_ui__sidebar_left__do_min( true ); ';
298 $el_arr['onclick'] .= '} else {';
299 $el_arr['onclick'] .= ' wpbc_admin_ui__sidebar_left__do_max( true ); ';
300 $el_arr['onclick'] .= '}';
301 $el_arr['hint'] = array(
302 'title' => __( 'Toggle side menu', 'booking' ),
303 'position' => 'right',
304 );
305 wpbc_ui_el__a( $el_arr );
306 }
307
308 /**
309 * Show element - "Max - Vertical Navigation" panel
310 *
311 * @return void
312 */
313 function wpbc_ui__vert_left_bar__do_max() {
314
315 $el_arr = array();
316 $el_arr['container_style'] = '';
317 $el_arr['container_class'] = 'wpbc_ui__top_nav__btn_open_left_vertical_nav wpbc_ui__hide hide_in_compact_mode0';
318 $el_arr['onclick'] = ' wpbc_admin_ui__sidebar_left__do_max( true ); ';
319 $el_arr['font_icon'] = 'wpbc-bi-box-arrow-right';
320 $el_arr['hint'] = array(
321 'title' => __( 'Open side menu', 'booking' ),
322 'position' => 'top',
323 );
324 wpbc_ui_el__a( $el_arr );
325 }
326
327 /**
328 * Show element - "Compact - Vertical Navigation" panel
329 *
330 * @return void
331 */
332 function wpbc_ui__vert_left_bar__do_compact() {
333
334 $el_arr = array();
335 $el_arr['container_style'] = '';
336 $el_arr['container_class'] = 'wpbc_ui__top_nav__btn_hide_left_vertical_nav';
337 $el_arr['onclick'] = ' wpbc_admin_ui__sidebar_left__do_compact( true ); ';
338 $el_arr['font_icon'] = 'wpbc-bi-box-arrow-left';
339 $el_arr['hint'] = array(
340 'title' => __( 'Set side menu compact', 'booking' ),
341 'position' => 'top',
342 );
343 wpbc_ui_el__a( $el_arr );
344 }
345
346 /**
347 * Show element - "X - Close (none)" panel
348 *
349 * @return void
350 */
351 function wpbc_ui__vert_left_bar__do_none() {
352
353 $el_arr = array();
354 $el_arr['container_style'] = '';
355 $el_arr['container_class'] = 'wpbc_ui__top_nav__btn_hide_left_vertical_nav';
356 $el_arr['onclick'] = ' wpbc_admin_ui__sidebar_left__do_hide(); ';
357 $el_arr['font_icon'] = 'wpbc_icn_close';
358 $el_arr['hint'] = array(
359 'title' => __( 'Close side menu', 'booking' ),
360 'position' => 'bottom',
361 );
362 wpbc_ui_el__a( $el_arr );
363 }
364
365 /**
366 * Show element - "_ - Min" panel
367 *
368 * @return void
369 */
370 function wpbc_ui__vert_left_bar__do_min() {
371
372 $el_arr = array();
373 $el_arr['container_style'] = '';
374 $el_arr['container_class'] = 'wpbc_ui__top_nav__btn_hide_left_vertical_nav';
375 $el_arr['onclick'] = ' wpbc_admin_ui__sidebar_left__do_min( true ); ';
376 $el_arr['font_icon'] = 'wpbc_icn_minimize';
377 $el_arr['hint'] = array(
378 'title' => __( 'Minimize side menu', 'booking' ),
379 'position' => 'bottom',
380 );
381 wpbc_ui_el__a( $el_arr );
382 }
383
384 /* == Elements in Left menu ========================================================================================= */
385
386 /**
387 * Show Section Header - e.g. ' SETTINGS '
388 *
389 * @param string $page_title - title to show.
390 *
391 * @return void
392 */
393 function wpbc_ui__vert_menu__show_section_header_go_back( $page_title ) {
394
395 // FixIn: 10.12.1.7.
396 ?>
397 <a onclick="javascript:wpbc_admin_ui__sidebar_left__show_section('main_menus');" href="javascript:void(0)"
398 class="wpbc_ui_el__go_back wpbc_ui_el hide_in_compact_mode" >
399 <i class="menu_icon icon-1x wpbc_icn_navigate_before"></i>
400 <?php
401 wpbc_ui__vert_menu__show_section_header( __( 'Go back', 'booking' ) );
402 ?>
403 </a>
404 <?php
405 }
406
407 /**
408 * Left Sidebar.
409 *
410 * @param array $pages_arr
411 *
412 * @return void
413 */
414 function wpbc_ui__vert_left_bar__section__root_menu( $pages_arr ) {
415
416 ?>
417 <div class="wpbc_ui_el__vert_left_bar__section wpbc_ui_el__vert_left_bar__section_main_menus wpbc_ui__hide">
418 <?php
419
420 // Section Header.
421 echo '<div class="wpbc_ui_el__row100 wpbc_ui_el__expand_colapse_btns">';
422 // wpbc_ui__vert_menu__show_section_header( __( 'Main menu', 'booking' ) );
423 wpbc_ui__vert_left_bar__do_compact();
424 wpbc_ui__vert_left_bar__do_max();
425 echo '</div>';
426 wpbc_ui_el__divider_horizontal();
427
428 foreach ( $pages_arr as $page_slug => $main_page_options_arr ) {
429
430 switch ( $main_page_options_arr['type'] ) {
431
432 case 'divider':
433 wpbc_ui_el__divider_horizontal();
434 break;
435
436 case 'menu':
437 default:
438 $page_title = $main_page_options_arr['title'];
439
440 echo '<div class="wpbc_ui_el__vert_nav_item wpbc_ui_el__vert_nav_item_root wpbc_ui_el__vert_nav_item__' . esc_attr( $page_slug ) . '">';
441 if ( ! empty( $main_page_options_arr['url'] ) ) {
442 echo ' <a href="' . esc_url( $main_page_options_arr['url'] ) . '" class="wpbc_ui_el__vert_nav_item__a wpbc_ui_el__vert_nav_item__single">';
443 } else {
444 echo ' <a onclick="wpbc_admin_ui__sidebar_left__show_section(\'' . esc_attr( $page_slug ) . '\');" href="javascript:void(0)" class="wpbc_ui_el__vert_nav_item__a wpbc_ui_el__vert_nav_item__single">';
445 }
446
447 echo ' <i class="wpbc_ui_el__vert_nav_icon menu_icon icon-1x ' . esc_attr( $main_page_options_arr['font_icon'] ) . '"></i>';
448 echo ' <span class="wpbc_ui_el__vert_nav_title hide_in_compact_mode">' . esc_html( $page_title ) . '</span>';
449 if ( empty( $main_page_options_arr['url'] ) ) {
450 echo ' <i class="wpbc_ui_el__vert_nav_icon wpbc_ui_el__vert_nav_icon_arrow menu_icon icon-1x wpbc-bi-chevron-right"></i>';
451 }
452 echo ' </a>';
453 echo '</div>';
454 }
455 }
456 ?>
457 </div>
458 <?php
459 }
460
461
462 /**
463 * Show Root Header
464 *
465 * @param string $main_page_slug - slug of all sub menu section.
466 * @param string $page_title - title of header.
467 * @param bool $is_expanded - Is expanded or not.
468 *
469 * @return void
470 */
471 function wpbc_ui__vert_menu__show_root_section_header( $main_page_slug, $page_title) {
472
473 $css_section = '.root_section_element_' . $main_page_slug;
474
475 // Section Header.
476 ?><a class="wpbc_ui_el__row100 wpbc_ui_el__root_section_header_a" href="javascript:void(0)"
477 onclick="javascript:var is_has_class = jQuery( '<?php echo esc_attr( $css_section ); ?>' ).hasClass('section_expanded'); jQuery( '.wpbc_ui_el__vert_left_bar__root_section_element' ).removeClass('section_expanded'); if (is_has_class) { jQuery( '<?php echo esc_attr( $css_section ); ?>' ).removeClass('section_expanded'); } else {jQuery( '<?php echo esc_attr( $css_section ); ?>' ).addClass('section_expanded');}"
478 ><?php
479
480 ?><i class="wpbc_ui_el__vert_menu_root_section_icon menu_icon icon-1x wpbc-bi-chevron-right"></i><?php
481
482 wpbc_ui__vert_menu__show_section_header( $page_title );
483
484 ?></a><?php
485 }
486
487
488 /**
489 * Show Section Header - e.g. ' SETTINGS '
490 *
491 * @param string $page_title - title to show.
492 *
493 * @return void
494 */
495 function wpbc_ui__vert_menu__show_section_header( $page_title ) {
496
497 echo '<h2 class="wpbc_ui_el__section_header hide_in_compact_mode">' . wp_kses_post( $page_title ) . '</h2>';
498 }
499
500 /**
501 * Show main menu item.
502 *
503 * @param string $menu_slug - 'calendar_appearance'.
504 * @param array $menu_item_arr - [ [title] => Skin
505 * [page_title] => Calendar General Settings 3
506 * [hint] => Calendar General Settings 2
507 * [link] =>
508 * [position] =>
509 * [css_classes] =>
510 * [icon] =>
511 * [font_icon] => wpbc-bi-calendar2-range
512 * [default] =>
513 * [disabled] =>
514 * [hided] =>
515 * [is_active] => 1
516 * [url] => http://beta/wp-admin/admin.php?page=wpbc-settings&#038;tab=calendar_appearance
517 * [subtabs] => [....]
518 * ]
519 *
520 * @return void
521 */
522 function wpbc_ui__vert_menu__item_main( $menu_slug, $menu_item_arr ) {
523
524 $defaults = array(
525 'title' => '',
526 'page_title' => '',
527 'hint' => '',
528 'link' => '',
529 'position' => '',
530 'css_classes' => '',
531 'icon' => '',
532 'font_icon' => '',
533 'default' => false,
534 'disabled' => false,
535 'hided' => false,
536 'is_active' => 0,
537 'url' => '',
538 'subtabs' => array(),
539 );
540 $menu_item_arr = wp_parse_args( $menu_item_arr, $defaults );
541
542 // CSS Classes.
543 $menu_css_arr = array();
544 $menu_css_arr[] = 'wpbc_ui_el__vert_nav_item';
545 $menu_css_arr[] = 'wpbc_ui_el__vert_nav_item__' . esc_attr( $menu_slug );
546
547 if ( ( empty( $menu_item_arr['subtabs'] ) ) && ( ! empty( $menu_item_arr['is_active'] ) ) ) {
548 $menu_css_arr[] = 'active';
549 }
550 if ( isset( $menu_item_arr['css_classes'] ) ) {
551 $menu_css_arr[] = $menu_item_arr['css_classes'];
552 }
553 $menu_css_str = implode( ' ', $menu_css_arr );
554
555 // Styles.
556 $menu_style_str = ( isset( $menu_item_arr['style'] ) ) ? $menu_item_arr['style'] : '';
557
558
559 ?><div class="<?php echo esc_attr( $menu_css_str ); ?>" style="<?php echo esc_attr( $menu_style_str ); ?>">
560 <?php
561 if ( ! empty( $menu_item_arr['subtabs'] ) ) {
562 // Folder Item - expand / colapse. Previously: here was : wpbc_admin_ui__sidebar_left__do_max();
563 ?>
564 <a href="javascript:void(0)"
565 onclick="javascript: if( ! jQuery( this ).parents('.wpbc_ui_el__level__folder').hasClass('expanded') ) { jQuery( '.wpbc_ui_el__level__folder' ).removeClass('expanded');jQuery( this ).parents('.wpbc_ui_el__level__folder').addClass('expanded'); } else {jQuery( '.wpbc_ui_el__level__folder' ).removeClass('expanded');} "
566 class="wpbc_ui_el__vert_nav_item__a wpbc_ui_el__vert_nav_item__folder">
567 <?php if ( ! empty( $menu_item_arr['font_icon'] ) ) { ?>
568 <?php // Show icon in max mode, without right tooltip, thanks to '.hide_in_compact_mode'. // FixIn: 10.11.5.8. ?>
569 <i class="wpbc_ui_el__vert_nav_icon hide_in_compact_mode menu_icon icon-1x <?php echo esc_attr( $menu_item_arr['font_icon'] ); ?>"
570 title="<?php echo ( ! empty( $menu_item_arr['hint'] ) ) ? esc_attr( wp_strip_all_tags( $menu_item_arr['hint'] ) ) : esc_attr( wp_strip_all_tags( $menu_item_arr['title'] ) ); ?>"
571 ></i>
572 <?php // Show icon in compact mode, with right tooltip, thanks to '.hide_in_max_mode'. // FixIn: 10.11.5.8. ?>
573 <i class="wpbc_ui_el__vert_nav_icon hide_in_max_mode tooltip_right_offset menu_icon icon-1x <?php echo esc_attr( $menu_item_arr['font_icon'] ); ?>"
574 data-original-title="<?php echo ( ! empty( $menu_item_arr['hint'] ) ) ? esc_attr( wp_strip_all_tags( $menu_item_arr['title'] ) ) . ' - ' . esc_attr( wp_strip_all_tags( $menu_item_arr['hint'] ) ) : esc_attr( wp_strip_all_tags( $menu_item_arr['title'] ) ); ?>"
575 ></i>
576 <?php } ?>
577 <span class="wpbc_ui_el__vert_nav_title hide_in_compact_mode"><?php echo wp_kses_post( $menu_item_arr['title'] ); ?></span>
578 <i class="wpbc_ui_el__vert_nav_icon_right tooltip_right menu_icon icon-1x wpbc_ui_el__vert_nav_icon_expanded hide_in_compact_mode wpbc-bi-dash-square-dotted" data-original-title="<?php echo esc_attr_e( 'Collapse', 'booking' ); ?>"></i>
579 <i class="wpbc_ui_el__vert_nav_icon_right tooltip_right menu_icon icon-1x wpbc_ui_el__vert_nav_icon_collapsed hide_in_compact_mode wpbc-bi-plus-square-dotted" data-original-title="<?php echo esc_attr_e( 'Expand', 'booking' ); ?>"></i>
580 </a>
581 <?php
582 } else {
583 // Single Item Link.
584 ?>
585 <a <?php if ( ! empty( $menu_item_arr['onclick'] ) ) { ?>
586 onclick="javascript:<?php echo $menu_item_arr['onclick']; /* phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped */ ?>"
587 href="javascript:void(0);"
588 <?php } else { ?>
589 href="<?php echo esc_url( $menu_item_arr['url'] ); ?>"
590 <?php } ?>
591 class="wpbc_ui_el__vert_nav_item__a wpbc_ui_el__vert_nav_item__single">
592 <?php if ( ! empty( $menu_item_arr['font_icon'] ) ) { ?>
593 <?php // Show icon in max mode, without right tooltip, thanks to '.hide_in_compact_mode'. // FixIn: 10.11.5.8. ?>
594 <i class="wpbc_ui_el__vert_nav_icon hide_in_compact_mode menu_icon icon-1x <?php echo esc_attr( $menu_item_arr['font_icon'] ); ?>"
595 title="<?php echo ( ! empty( $menu_item_arr['hint'] ) ) ? esc_attr( wp_strip_all_tags( $menu_item_arr['hint'] ) ) : esc_attr( wp_strip_all_tags( $menu_item_arr['title'] ) ); ?>"
596 ></i>
597 <?php // Show icon in compact mode, with right tooltip, thanks to '.hide_in_max_mode'. // FixIn: 10.11.5.8. ?>
598 <i class="wpbc_ui_el__vert_nav_icon hide_in_max_mode tooltip_right_offset menu_icon icon-1x <?php echo esc_attr( $menu_item_arr['font_icon'] ); ?>"
599 data-original-title="<?php echo ( ! empty( $menu_item_arr['hint'] ) ) ? esc_attr( wp_strip_all_tags( $menu_item_arr['title'] ) ) . ' - ' . esc_attr( wp_strip_all_tags( $menu_item_arr['hint'] ) ) : esc_attr( wp_strip_all_tags( $menu_item_arr['title'] ) ); ?>"
600 ></i>
601 <?php } ?>
602 <span class="wpbc_ui_el__vert_nav_title hide_in_compact_mode"><?php echo wp_kses_post( $menu_item_arr['title'] ); ?></span>
603 <?php
604 // Icon at Right side. Usually: 'wpbc-bi-question-circle' | 'wpbc-bi-arrow-down-short' | 'wpbc-bi-arrow-up-right-square'.
605 if ( ! empty( $menu_item_arr['font_icon_right'] ) ) { ?>
606 <i class="hide_in_compact_mode tooltip_right menu_icon icon-1x <?php echo esc_attr( $menu_item_arr['font_icon_right'] ); ?>"
607 data-original-title="<?php echo ( ! empty( $menu_item_arr['hint'] ) ) ? esc_attr( wp_strip_all_tags( $menu_item_arr['hint'] ) ) : esc_attr( wp_strip_all_tags( $menu_item_arr['title'] ) ); ?>"></i>
608 <?php
609 }
610 ?>
611 </a>
612 <?php
613 }
614 ?>
615 </div>
616 <?php
617 }
618
619 /**
620 * Sub - Single Item.
621 *
622 * @param string $menu_slug - 'calendar_appearance'.
623 * @param array $menu_item_arr - [
624 * 'type' => "subtab",
625 * title = "Skin Search Form Layout 1"
626 * page_title = "Skin Search Settings 2"
627 * hint = "Skin Search Settings 3"
628 * position = ""
629 * css_classes = ""
630 * default = true
631 * disabled = false
632 * checkbox = false
633 * content = "content"
634 * show_checked_icon = false
635 * is_use_new_settings_skin = true
636 * is_active = true
637 * url = "http://beta/wp-admin/admin.php?page=wpbc-settings&#038;tab=calendar_appearance&#038;subtab=calendar_appearance_skin"
638 * ].
639 *
640 * @return void
641 */
642 function wpbc_ui__vert_menu__item_sub( $menu_slug, $menu_item_arr ) {
643
644 // CSS Classes.
645 $menu_css_arr = array();
646 $menu_css_arr[] = 'wpbc_ui_el__vert_nav_item';
647 $menu_css_arr[] = 'wpbc_ui_el__vert_nav_item_sub';
648 // $menu_css_arr[] = 'hide_in_compact_mode';
649 $menu_css_arr[] = 'wpbc_ui_el__vert_nav_item__' . esc_attr( $menu_slug );
650 if ( ! empty( $menu_item_arr['is_active'] ) ) {
651 $menu_css_arr[] = 'active';
652 }
653 if ( isset( $menu_item_arr['css_classes'] ) ) {
654 $menu_css_arr[] = $menu_item_arr['css_classes'];
655 }
656 $menu_css_str = implode( ' ', $menu_css_arr );
657
658 // Styles.
659 $menu_style_str = ( isset( $menu_item_arr['style'] ) ) ? $menu_item_arr['style'] : '';
660
661
662 ?>
663 <div class="<?php echo esc_attr( $menu_css_str ); ?>" style="<?php echo esc_attr( $menu_style_str ); ?>">
664 <a class="wpbc_ui_el__vert_nav_item__a wpbc_ui_el__vert_nav_item__single"
665 <?php if ( ! empty( $menu_item_arr['onclick'] ) ) { ?>
666 onclick="javascript:<?php echo $menu_item_arr['onclick']; /* phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped */ ?>"
667 href="javascript:void(0);"
668 <?php } else { ?>
669 href="<?php echo esc_url( $menu_item_arr['url'] ); ?>"
670 <?php } ?>
671 >
672 <?php if ( ! empty( $menu_item_arr['font_icon'] ) ) { ?>
673 <?php // Show icon in max mode, without right tooltip, thanks to '.hide_in_compact_mode'. // FixIn: 10.11.5.8.2. ?>
674 <i class="wpbc_ui_el__vert_nav_icon hide_in_compact_mode menu_icon icon-1x <?php echo esc_attr( $menu_item_arr['font_icon'] ); ?>"
675 title="<?php echo ( ! empty( $menu_item_arr['hint'] ) ) ? esc_attr( wp_strip_all_tags( $menu_item_arr['hint'] ) ) : esc_attr( wp_strip_all_tags( $menu_item_arr['title'] ) ); ?>"
676 ></i>
677 <?php // Show icon in compact mode, with right tooltip, thanks to '.hide_in_max_mode'. // FixIn: 10.11.5.8.2. ?>
678 <i class="wpbc_ui_el__vert_nav_icon hide_in_max_mode tooltip_right_offset menu_icon icon-1x <?php echo esc_attr( $menu_item_arr['font_icon'] ); ?>"
679 data-original-title="<?php echo ( ! empty( $menu_item_arr['hint'] ) ) ? esc_attr( wp_strip_all_tags( $menu_item_arr['title'] ) ) . ' - ' . esc_attr( wp_strip_all_tags( $menu_item_arr['hint'] ) ) : esc_attr( wp_strip_all_tags( $menu_item_arr['title'] ) ); ?>"
680 ></i>
681 <?php } ?>
682 <span class="wpbc_ui_el__vert_nav_title hide_in_compact_mode"><?php echo wp_kses_post( $menu_item_arr['title'] ); ?></span>
683 <?php
684
685
686 // Show Togles for "Emails" and "Payment gateways", maybe for some other pages.
687 if (
688 ( ! empty( $menu_item_arr['show_checked_icon'] ) ) &&
689 ( ! empty( $menu_item_arr['checked_data'] ) )
690 ) {
691 $is_checked_data = get_bk_option( $menu_item_arr['checked_data'] );
692 if (
693 ( ( ! empty( $is_checked_data ) ) && ( isset( $is_checked_data['enabled'] ) ) && ( 'On' === $is_checked_data['enabled'] ) ) ||
694 ( ( ! empty( $is_checked_data ) ) && ( 'On' === $is_checked_data ) )
695 ) {
696 echo '<i class="wpbc_ui_el__vert_nav_icon_right menu_icon icon-1x wpbc-bi-toggle2-on" style="margin-left: auto;margin-top: 3px;color: var( --wpbc_admin-theme-color, #036aab );"></i>';
697 } else {
698 echo '<i class="wpbc_ui_el__vert_nav_icon_right menu_icon icon-1x wpbc-bi-toggle2-off" style="margin-left: auto;margin-top: 3px;"></i>';
699 }
700 }
701
702 // Icon at Right side. Usually: 'wpbc-bi-question-circle' | 'wpbc-bi-arrow-down-short' | 'wpbc-bi-arrow-up-right-square'.
703 if ( ! empty( $menu_item_arr['font_icon_right'] ) ) { ?>
704 <i class="hide_in_compact_mode tooltip_right menu_icon icon-1x <?php echo esc_attr( $menu_item_arr['font_icon_right'] ); ?>"
705 data-original-title="<?php echo ( ! empty( $menu_item_arr['hint'] ) ) ? esc_attr( wp_strip_all_tags( $menu_item_arr['hint'] ) ) : esc_attr( wp_strip_all_tags( $menu_item_arr['title'] ) ); ?>"></i>
706 <?php
707 }
708 ?>
709 </a>
710 </div>
711 <?php
712 }
713
714 /**
715 * Show horizontal divider.
716 *
717 * @param string $menu_slug - 'calendar_appearance'.
718 * @param array $menu_item_arr - [
719 * 'type' => "separator",
720 * 'is_active' => false,
721 * 'url' => "http://beta/wp-admin/admin.php?page=wpbc-settings&#038;tab=calendar_appearance&#038;subtab=calendar_appearance_skin_sep"
722 * ].
723 *
724 * @return void
725 */
726 function wpbc_ui__vert_menu__item_separtor( $menu_slug, $menu_item_arr ) {
727
728 $args = array( 'container_class' => 'wpbc_ui_el__vert_nav_item_sub' );
729 wpbc_ui_el__divider_horizontal( $args );
730 }
731
732 /**
733 * HTML
734 *
735 * @param string $menu_slug - 'calendar_appearance'.
736 * @param array $menu_item_arr - [
737 * 'type' = "htnl"
738 * 'html' = "Form Fields"
739 * ].
740 *
741 * @return void
742 */
743 function wpbc_ui__vert_menu__item_html( $menu_slug, $menu_item_arr ) {
744 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
745 echo $menu_item_arr['html'];
746 }
747
748 // FixIn: 10.12.1.7.
749 /**
750 * Show element - "Compact - Vertical Navigation" panel
751 *
752 * @return void
753 */
754 function wpbc_ui__vert_left_bar__side_button__do_compact() {
755
756 ?>
757 <button class="wpbc_ui__left_sidebar__side_button wpbc_ui__top_nav__btn_hide_left_vertical_nav"
758 onclick="javascript:wpbc_admin_ui__sidebar_left__do_min( true );" title="<?php esc_attr_e( 'Minimize side menu', 'booking' ); ?>">
759 <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24">
760 <path fill="#6B6B6B" d="M16.5 22a1.003 1.003 0 0 1-.71-.29l-9-9a1 1 0 0 1 0-1.42l9-9a1.004 1.004 0 1 1 1.42 1.42L8.91 12l8.3 8.29A.999.999 0 0 1 16.5 22Z"></path>
761 </svg>
762 </button>
763 <?php
764 }
765
766 /**
767 * Show element - "Max - Vertical Navigation" panel
768 *
769 * @return void
770 */
771 function wpbc_ui__vert_left_bar__side_button__do_max() {
772 ?>
773 <button class="wpbc_ui__left_sidebar__side_button wpbc_ui__hide wpbc_ui__top_nav__btn_open_left_vertical_nav"
774 onclick="javascript:wpbc_admin_ui__sidebar_left__do_max( true );" title="<?php esc_attr_e( 'Open side menu', 'booking' ); ?>">
775 <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24">
776 <path fill="#6B6B6B" d="M16.5 22a1.003 1.003 0 0 1-.71-.29l-9-9a1 1 0 0 1 0-1.42l9-9a1.004 1.004 0 1 1 1.42 1.42L8.91 12l8.3 8.29A.999.999 0 0 1 16.5 22Z"></path>
777 </svg>
778 </button>
779 <script type="text/javascript">
780 <?php echo wpbc_jq_ready_start(); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
781 if (wpbc_admin_ui__is_in_this_screen_size(789)){
782 jQuery( '.wpbc_ui__left_sidebar__side_button' ).toggleClass( 'wpbc_ui__hide' );
783 }
784 <?php echo wpbc_jq_ready_end(); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
785 </script>
786 <?php
787 }
788
789
790 /* == Right Sidebar ================================================================================================= */
791 /**
792 * Show Compact Right Vertical SideBar
793 *
794 * @param array $args - parameters.
795 *
796 * @return void
797 */
798 function wpbc_ui__right_vertical_sidebar_compact( $args =array() ) {
799
800 $defaults = array(
801 'attr' => array(),
802 );
803 $params = wp_parse_args( $args, $defaults );
804
805 $active_page_arr = array(
806 'active_page' => $args['active_page'], // wpbc-settings.
807 'active_tab' => $args ['active_tab'], // calendar_appearance.
808 'active_subtab' => $args['active_subtab'], // calendar_appearance_skin.
809 );
810
811 // Ability to click on panel, only if there 'min' class - panel minimized!
812 echo '<div class="wpbc_ui_el__vert_right_bar__wrapper wpbc_ui_el__vert_right_bar__wrapper wpbc_ui_el__vert_right_bar_compact__wrapper" >';
813
814 echo ' <div class="wpbc_ui_el__vert_right_bar__content">';
815
816 echo ' <div class="wpbc_ui_el__vert_right_bar__root_sections_container" role="tablist">';
817
818 do_action( 'wpbc_ui__right_vertical_sidebar_compact_content', $active_page_arr );
819
820 echo ' </div><!-- wpbc_ui_el__vert_right_bar__root_sections_container -->';
821 echo ' </div><!-- wpbc_ui_el__vert_right_bar__content -->';
822 echo '</div><!-- wpbc_ui_el__vert_right_bar_compact__wrapper -->';
823
824
825 wpbc_start_element_scrollable__with_simplebar( '.wpbc_ui_el__vert_right_bar_compact__wrapper .wpbc_ui_el__vert_right_bar__content' );
826 }
827
828
829 /**
830 * Show Right Vertical SideBar
831 *
832 * @param array $args - parameters.
833 *
834 * @return void
835 */
836 function wpbc_ui__right_vertical_sidebar( $args =array() ) {
837
838 $defaults = array(
839 'attr' => array(),
840 );
841 $params = wp_parse_args( $args, $defaults );
842
843 // Ability to click on panel, only if there 'min' class - panel minimized!
844 echo '<div class="wpbc_ui_el__vert_right_bar__wrapper wpbc_ui_el__vert_right_bar__wrapper" onclick0="javascript:if (( jQuery( this ).parent(\'.wpbc_settings_page_wrapper\').hasClass(\'min\') ) && ( ! wpbc_admin_ui__is_in_mobile_screen_size())) { wpbc_admin_ui__sidebar_right__do_max(); }" >';
845
846 // FixIn: 10.12.1.7.
847 wpbc_ui__vert_right_bar__side_button__do_compact();
848 wpbc_ui__vert_right_bar__side_button__do_max();
849
850 $active_page_arr = array(
851 'active_page' => $args['active_page'], // wpbc-settings.
852 'active_tab' => $args ['active_tab'], // calendar_appearance.
853 'active_subtab' => $args['active_subtab'], // calendar_appearance_skin.
854 );
855
856 echo ' <div class="wpbc_ui_el__vert_right_bar__content">';
857
858 // wpbc_ui_el__divider_horizontal();
859 echo '<div class="wpbc_ui_el__row100 wpbc_ui_el__expand_colapse_btns">';
860 wpbc_ui__vert_right_bar__do_compact();
861 wpbc_ui__vert_right_bar__do_max();
862 echo '</div>';
863
864 echo ' <div class="wpbc_ui_el__vert_right_bar__root_sections_container" role="tablist">';
865
866 do_action( 'wpbc_ui__right_vertical_sidebar_content', $active_page_arr );
867
868 echo ' </div><!-- wpbc_ui_el__vert_right_bar__root_sections_container -->';
869 echo ' </div><!-- wpbc_ui_el__vert_right_bar__content -->';
870
871 /**
872 * Render an optional page-specific footer outside the scrollable inspector.
873 *
874 * Callbacks should render the complete footer element and use the native
875 * `wpbc_ui_el__vert_right_bar__footer_section` class for positioning.
876 *
877 * @param array $active_page_arr Active page, tab, and subtab identifiers.
878 */
879 do_action( 'wpbc_ui__right_vertical_sidebar_footer', $active_page_arr );
880
881 echo '</div><!-- wpbc_ui_el__vert_right_bar__wrapper -->';
882
883 wpbc_start_element_scrollable__with_simplebar( '.wpbc_ui_el__vert_right_bar__wrapper .wpbc_ui_el__vert_right_bar__content' );
884 }
885
886 /**
887 * Show element - "Compact - Vertical Navigation" panel
888 *
889 * @return void
890 */
891 function wpbc_ui__vert_right_bar__side_button__do_compact() {
892
893 ?>
894 <button class="wpbc_ui__right_sidebar__side_button wpbc_ui__top_nav__btn_hide_right_vertical_nav"
895 onclick="javascript:wpbc_admin_ui__sidebar_right__do_min();" title="<?php esc_attr_e( 'Set side menu compact', 'booking' ); ?>">
896 <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24">
897 <path fill="#6B6B6B" d="M16.5 22a1.003 1.003 0 0 1-.71-.29l-9-9a1 1 0 0 1 0-1.42l9-9a1.004 1.004 0 1 1 1.42 1.42L8.91 12l8.3 8.29A.999.999 0 0 1 16.5 22Z"></path>
898 </svg>
899 </button>
900 <?php
901 }
902
903 /**
904 * Show element - "Max - Vertical Navigation" panel
905 *
906 * @return void
907 */
908 function wpbc_ui__vert_right_bar__side_button__do_max() {
909 ?>
910 <button class="wpbc_ui__right_sidebar__side_button wpbc_ui__hide wpbc_ui__top_nav__btn_open_right_vertical_nav"
911 onclick="javascript:wpbc_admin_ui__sidebar_right__do_max();" title="<?php esc_attr_e( 'Open side menu', 'booking' ); ?>">
912 <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24">
913 <path fill="#6B6B6B" d="M16.5 22a1.003 1.003 0 0 1-.71-.29l-9-9a1 1 0 0 1 0-1.42l9-9a1.004 1.004 0 1 1 1.42 1.42L8.91 12l8.3 8.29A.999.999 0 0 1 16.5 22Z"></path>
914 </svg>
915 </button>
916 <script type="text/javascript">
917 <?php echo wpbc_jq_ready_start(); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
918 if (wpbc_admin_ui__is_in_this_screen_size(789)){
919 jQuery( '.wpbc_ui__right_sidebar__side_button' ).toggleClass( 'wpbc_ui__hide' );
920 }
921 <?php echo wpbc_jq_ready_end(); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
922 </script>
923 <?php
924 }
925
926 /* == Toggles in Right menu ========================================================================================= */
927
928 /**
929 * Show element - "Open / Hide Left Vertical Navigation" panel
930 *
931 * @return void
932 */
933 function wpbc_ui__vert_right_bar__do_toggle() {
934
935 $el_arr = array();
936 $el_arr['font_icon'] = 'wpbc-bi-layout-sidebar-inset-reverse';
937 $el_arr['container_style'] = 'padding:0 8px;';
938 $el_arr['container_class'] = 'wpbc_ui__top_nav__btn_show_right_vertical_nav';
939 $el_arr['onclick'] = "if ( jQuery( '.wpbc_ui_el__vert_right_bar__content' ).is( ':visible' ) ) {";
940 $el_arr['onclick'] .= ' wpbc_admin_ui__sidebar_right__do_min(); ';
941 $el_arr['onclick'] .= " jQuery( '.wpbc_ui__top_nav__btn_show_right_vertical_nav i' ).removeClass( 'wpbc-bi-layout-sidebar-reverse wpbc-bi-layout-sidebar-inset-reverse' ).addClass( 'wpbc-bi-layout-sidebar-reverse' ); ";
942 $el_arr['onclick'] .= '} else {';
943 $el_arr['onclick'] .= ' wpbc_admin_ui__sidebar_right__do_max(); ';
944 $el_arr['onclick'] .= " jQuery( '.wpbc_ui__top_nav__btn_show_right_vertical_nav i' ).removeClass( 'wpbc-bi-layout-sidebar-reverse wpbc-bi-layout-sidebar-inset-reverse' ).addClass( 'wpbc-bi-layout-sidebar-inset-reverse' ); ";
945 $el_arr['onclick'] .= '}';
946 $el_arr['hint'] = array(
947 'title' => __( 'Toggle side menu', 'booking' ),
948 'position' => 'left',
949 );
950 wpbc_ui_el__a( $el_arr );
951 }
952
953 /**
954 * Show element - "Max - Vertical Navigation" panel
955 *
956 * @return void
957 */
958 function wpbc_ui__vert_right_bar__do_max() {
959
960 $el_arr = array();
961 $el_arr['container_style'] = '';
962 $el_arr['container_class'] = 'wpbc_ui__top_nav__btn_open_right_vertical_nav wpbc_ui__hide hide_in_compact_mode0';
963 $el_arr['onclick'] = ' wpbc_admin_ui__sidebar_right__do_max(); ';
964 $el_arr['font_icon'] = 'wpbc-bi-box-arrow-left';
965 $el_arr['hint'] = array(
966 'title' => __( 'Open side menu', 'booking' ),
967 'position' => 'top',
968 );
969 wpbc_ui_el__a( $el_arr );
970 }
971
972 /**
973 * Show element - "Compact - Vertical Navigation" panel
974 *
975 * @return void
976 */
977 function wpbc_ui__vert_right_bar__do_compact() {
978
979 $el_arr = array();
980 $el_arr['container_style'] = '';
981 $el_arr['container_class'] = 'wpbc_ui__top_nav__btn_hide_right_vertical_nav';
982 $el_arr['onclick'] = ' wpbc_admin_ui__sidebar_right__do_compact(); ';
983 $el_arr['font_icon'] = 'wpbc-bi-box-arrow-right';
984 $el_arr['hint'] = array(
985 'title' => __( 'Set side menu compact', 'booking' ),
986 'position' => 'top',
987 );
988 wpbc_ui_el__a( $el_arr );
989 }
990
991 /**
992 * Show element - "X - Close (none)" panel
993 *
994 * @return void
995 */
996 function wpbc_ui__vert_right_bar__do_none() {
997
998 $el_arr = array();
999 $el_arr['container_style'] = '';
1000 $el_arr['container_class'] = 'wpbc_ui__top_nav__btn_hide_right_vertical_nav';
1001 $el_arr['onclick'] = ' wpbc_admin_ui__sidebar_right__do_hide(); ';
1002 $el_arr['font_icon'] = 'wpbc_icn_close';
1003 $el_arr['hint'] = array(
1004 'title' => __( 'Close side menu', 'booking' ),
1005 'position' => 'bottom',
1006 );
1007 wpbc_ui_el__a( $el_arr );
1008 }
1009
1010 /**
1011 * Show element - "_ - Min" panel
1012 *
1013 * @return void
1014 */
1015 function wpbc_ui__vert_right_bar__do_min() {
1016
1017 $el_arr = array();
1018 $el_arr['container_style'] = '';
1019 $el_arr['container_class'] = 'wpbc_ui__top_nav__btn_hide_right_vertical_nav';
1020 $el_arr['onclick'] = ' wpbc_admin_ui__sidebar_right__do_min(); ';
1021 $el_arr['font_icon'] = 'wpbc_icn_minimize';
1022 $el_arr['hint'] = array(
1023 'title' => __( 'Minimize side menu', 'booking' ),
1024 'position' => 'bottom',
1025 );
1026 wpbc_ui_el__a( $el_arr );
1027 }
1028