PluginProbe
Booking Calendar / 10.15.6
Booking Calendar v10.15.6
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 10.11.2 All 203 releases
booking / includes / ui_settings / parts / ui__nav_vert.php

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

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