PluginProbe
Booking Calendar / 11.2
Booking Calendar v11.2
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 11.2, at includes/ui_settings/parts/ui__nav_vert.php

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