PluginProbe
Booking Calendar / 11.3
Booking Calendar v11.3
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 / _toolbar_ui / ui__settings_panel.php

ui__settings_panel.php in Booking Calendar 11.3, at includes/_toolbar_ui/ui__settings_panel.php

2,456 lines 98.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php /**
2 * @version 1.0
3 * @package Booking Calendar
4 * @category UI Elements for Settings
5 * @author wpdevelop
6 *
7 * @web-site https://wpbookingcalendar.com/
8 * @email info@wpbookingcalendar.com
9 *
10 * @modified 2024-09-14
11 */
12
13 if ( ! defined( 'ABSPATH' ) ) exit; // Exit, if accessed directly
14 /*
15 // =====================================================================================================================
16 // == Data Structure ==
17 // =====================================================================================================================
18 function wpbc_ui_settings__panel__data_structure(){
19
20 $data_sections = array();
21
22 $data_sections['calendar_settings'] = array( 'title' => __( 'Calendar Settings', 'booking' ), 'cards' => array() );
23 $cards = array();
24 $cards['calendar_look'] = array(
25 'title' => __( 'Calendar Look', 'booking' ),
26 'description' => __( 'Set calendar skin, max months to scroll, calendar legend', 'booking' ),
27 'icon' => 'wpbc-bi-calendar2-range',
28 'css' => 'wpbc_ui_settings__card_divider_right',
29 'url' => 'javascript:void(0);',
30 'onclick' => "javascript:wpbc_navigation_click_show_section(this,'#wpbc_general_settings_calendar_metabox' );",
31 'pro_url' => ( ! class_exists( 'wpdev_bk_biz_s' ) ) ? '' : '1'
32 );
33 $data_sections['calendar_settings']['cards'] = $cards;
34
35 return $data_sections;
36 }
37 */
38
39 // =====================================================================================================================
40 // Settings Panel Structure:
41 // =====================================================================================================================
42 /**
43 *
44 * <div class="wpbc_ui_settings__flex_container">
45 *
46 * <div class="wpbc_ui_settings__row">
47 * <div class="wpbc_ui_settings__panel">
48 *
49 * <div class="wpbc_ui_settings__card wpbc_ui_settings__card_divider_right">
50 * <div class="wpbc_ui_settings__center ">
51 * <a ...> Start Setup Wizard </a>
52 * </div>
53 * </div>
54 *
55 * </div>
56 * </div>
57 *
58 * <div class="wpbc_ui_settings__col">
59 * <div class="wpbc_ui_settings__panel">
60 *
61 * <div class="wpbc_ui_settings__card">
62 * <div class="wpbc_ui_settings__center ">
63 * <a ...> Start Setup Wizard </a>
64 * </div>
65 * </div>
66 *
67 * </div>
68 * </div>
69 *
70 * </div>
71 */
72
73 /**
74 * Start == Settings Panel Section ==
75 *
76 * @param $direction = 'row' | 'col'
77 *
78 * @return void
79 */
80 function wpbc_ui_settings__panel_start( $direction = 'row' ) {
81 ?>
82 <div class="<?php echo ( 'col' === $direction ) ? 'wpbc_ui_settings__col' : 'wpbc_ui_settings__row'; ?>">
83 <div class="wpbc_ui_settings__panel">
84 <?php
85 }
86
87
88 /**
89 * End == Settings Panel Section ==
90 * @return void
91 */
92 function wpbc_ui_settings__panel_end() {
93 ?>
94 </div>
95 </div>
96 <?php
97 }
98
99
100 // =====================================================================================================================
101 // == Top Path ==
102 // =====================================================================================================================
103
104 /**
105 * Top Path Line
106 *
107 * @param WPBC_Page_Structure|false $page_structure_obj Page structure object.
108 *
109 * @return void
110 */
111 function wpbc_ui_settings__top_path( $page_structure_obj = false ) {
112
113 $items = array();
114 $is_show_version = true;
115
116 if ( is_object( $page_structure_obj ) && method_exists( $page_structure_obj, 'get_top_path_items' ) ) {
117 $items = $page_structure_obj->get_top_path_items();
118 }
119
120 if ( is_object( $page_structure_obj ) && method_exists( $page_structure_obj, 'is_top_path_show_version' ) ) {
121 $is_show_version = $page_structure_obj->is_top_path_show_version();
122 }
123
124 if ( empty( $items ) ) {
125 $items = array(
126 array(
127 'title' => __( 'WP Booking Calendar', 'booking' ),
128 'url' => function_exists( 'wpbc_get_bookings_url' ) ? wpbc_get_bookings_url() : admin_url( 'admin.php?page=wpbc' ),
129 'onclick' => '',
130 'active' => false,
131 ),
132 array(
133 'title' => __( 'Settings', 'booking' ),
134 'onclick' => "wpbc_ui_settings__panel__click( '#wpbc_general_settings_dashboard_tab a' ,'#wpbc_general_settings_dashboard_metabox', '" . esc_attr__( 'Dashboard', 'booking' ) . "' );",
135 'url' => '',
136 'active' => false,
137 ),
138 array(
139 'title' => __( 'Dashboard', 'booking' ),
140 'onclick' => "wpbc_ui_settings__panel__click( '#wpbc_general_settings_dashboard_tab a' ,'#wpbc_general_settings_dashboard_metabox', '" . esc_attr__( 'Dashboard', 'booking' ) . "' );",
141 'url' => '',
142 'active' => true,
143 ),
144 );
145 }
146
147 ?>
148 <div class="wpbc_settings_path">
149 <?php /* ?><div class="wpbc_settings_path_el" style="border: 1px solid #d0d0d0;margin-right: 15px;border-radius: 50%;aspect-ratio: 1 / 1;text-align: center;display: none;"> <a><i class="menu_icon icon-1x wpbc_icn_navigate_before"></i></a></div><?php */ ?>
150 <?php foreach ( $items as $item_index => $item ) : ?>
151 <?php if ( 0 < $item_index ) : ?>
152 <div class="wpbc_settings_path_el"><i class="menu_icon icon-1x wpbc_icn_navigate_next"></i></div>
153 <?php endif; ?>
154 <div class="wpbc_settings_path_el<?php echo ( ! empty( $item['active'] ) ) ? ' wpbc_settings_path_el_active' : ''; ?>">
155 <a
156 <?php if ( ! empty( $item['onclick'] ) ) : ?>
157 onclick="javascript:<?php echo $item['onclick']; /* phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped */ ?>"
158 href="javascript:void(0);"
159 <?php else : ?>
160 href="<?php echo esc_url( ! empty( $item['url'] ) ? $item['url'] : '#' ); ?>"
161 <?php endif; ?>
162 ><?php echo esc_html( $item['title'] ); ?></a>
163 </div>
164 <?php endforeach; ?>
165 <?php
166 if ( $is_show_version ) {
167 wpbc_ui_settings_panel__top_path__version();
168 }
169 ?>
170 </div>
171 <?php
172 }
173
174
175 // =====================================================================================================================
176 // == All Settings Panels ==
177 // =====================================================================================================================
178
179 function wpbc_ui_settings__panel__all_settings_panels( $params = array() ) {
180
181 $defaults = array(
182 'is_use_permalink' => false
183 );
184 $params = wp_parse_args( $params, $defaults );
185
186 ?><style type="text/css">
187 @media (max-width: 782px) {
188 .wpbc_settings_flex_container .wpbc_settings_flex_container_left:not(.wpbc_container_collapsed) {
189 display:none;
190 }
191 }
192 </style><?php
193
194 ?><div class="wpbc_ui_settings__panel__up_header wpbc_ui_settings__panel__up_header__calendar"><?php esc_html_e( 'Calendar Settings', 'booking' ); ?></div><?php
195
196 wpbc_ui_settings__panel__calendar( $params );
197
198 ?><div class="wpbc_ui_settings__panel__up_header wpbc_ui_settings__panel__up_header__form"><?php esc_html_e( 'Booking Form', 'booking' ); ?></div><?php
199 wpbc_ui_settings__panel__form( $params );
200
201
202 ?><div class="wpbc_ui_settings__flex_container" style="justify-content: space-between;">
203 <div style="flex:1 1 49%;margin-right:2%;">
204 <div class="wpbc_ui_settings__panel__up_header wpbc_ui_settings__panel__up_header__booking_confirmation"><?php esc_html_e( 'Booking Summary', 'booking' ); ?></div>
205 <?php wpbc_ui_settings__panel__booking_confirmation( $params ); ?>
206 </div>
207 <div style="flex:1 1 49%;">
208 <div class="wpbc_ui_settings__panel__up_header wpbc_ui_settings__panel__up_header__notifications"><?php esc_html_e( 'Notifications', 'booking' ); ?></div>
209 <?php wpbc_ui_settings__panel__notifications( $params ); ?>
210 </div>
211 </div><?php
212
213 ?><div class="wpbc_ui_settings__panel__up_header wpbc_ui_settings__panel__up_header__sync_setu"><?php esc_html_e( 'Sync Bookings', 'booking' ); ?></div><?php
214 wpbc_ui_settings__panel__sync_setup( $params );
215
216
217
218 // -- Dismiss ----------------------------------------------------------------------------------------------
219 $dismiss_id = 'wpbc_is_dismissed__card__payment_setup';
220 $dismiss_x_button = '';
221 $is_panel_visible = true;
222 if ( ( ! class_exists( 'wpdev_bk_biz_s' ) ) && ( ! wpbc_is_this_demo() ) ) {
223 $is_panel_visible = wpbc_is_dismissed_panel_visible( $dismiss_id );
224 if ( $is_panel_visible ) {
225 ob_start();
226 ?><div class="wpbc_dismiss_x__in_panel_card"><?php $is_panel_visible = wpbc_is_dismissed( $dismiss_id ); ?></div><?php // Close 'x' Button
227 $dismiss_x_button = ob_get_clean();
228 }
229 }
230 ?><div id="<?php echo esc_attr( $dismiss_id ); ?>" style="flex:1 1 100%;<?php echo ( ! $is_panel_visible ) ? 'display:none;' : ''; ?>"><?php
231 ?><div class="wpbc_dismiss_x__in_panel"><?php
232 ?><div class="wpbc_ui_settings__panel__up_header wpbc_ui_settings__panel__up_header__payment_setup"><?php esc_html_e( 'Payment Setup', 'booking' ); ?></div><?php
233 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
234 echo $dismiss_x_button;
235 ?></div><?php
236
237 wpbc_ui_settings__panel__payment_setup( $params );
238 ?></div><?php
239
240
241 ?><div class="wpbc_ui_settings__flex_container" style="justify-content: space-between;">
242 <?php
243 // -- Dismiss ----------------------------------------------------------------------------------------------
244 $dismiss_id = 'wpbc_is_dismissed__card__search_availability';
245 $dismiss_x_button = '';
246 $is_panel_visible = true;
247 if ( ( ! class_exists( 'wpdev_bk_biz_l' ) ) && ( ! wpbc_is_this_demo() ) ) {
248 $is_panel_visible = wpbc_is_dismissed_panel_visible( $dismiss_id );
249 if ( $is_panel_visible ) {
250 ob_start();
251 ?><div class="wpbc_dismiss_x__in_panel_card"><?php $is_panel_visible = wpbc_is_dismissed( $dismiss_id ); ?></div><?php // Close 'x' Button
252 $dismiss_x_button = ob_get_clean();
253 }
254 }
255 ?>
256 <div id="<?php echo esc_attr( $dismiss_id ); ?>" style="flex:1 1 49%;margin-right:2%;<?php echo ( ! $is_panel_visible ) ? 'display:none;' : ''; ?>">
257 <div class="wpbc_dismiss_x__in_panel">
258 <div class="wpbc_ui_settings__panel__up_header wpbc_ui_settings__panel__up_header__search_availability"><?php esc_html_e( 'Search Availability', 'booking' ); ?></div>
259 <?php
260 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
261 echo $dismiss_x_button; ?>
262 </div>
263 <?php wpbc_ui_settings__panel__search_availability( $params ); ?>
264 </div>
265 <?php
266 // -- Dismiss ----------------------------------------------------------------------------------------------
267 $dismiss_id = 'wpbc_is_dismissed__card__mu';
268 $dismiss_x_button = '';
269 $is_panel_visible = true;
270 if ( ( ! class_exists( 'wpdev_bk_multiuser' ) ) && ( ! wpbc_is_this_demo() ) ) {
271 $is_panel_visible = wpbc_is_dismissed_panel_visible( $dismiss_id );
272 if ( $is_panel_visible ) {
273 ob_start();
274 ?><div class="wpbc_dismiss_x__in_panel_card"><?php $is_panel_visible = wpbc_is_dismissed( $dismiss_id ); ?></div><?php // Close 'x' Button
275 $dismiss_x_button = ob_get_clean();
276 }
277 }
278 ?>
279 <div id="<?php echo esc_attr( $dismiss_id ); ?>" style="flex:1 1 49%;<?php echo ( ! $is_panel_visible ) ? 'display:none;' : ''; ?>">
280 <div class="wpbc_dismiss_x__in_panel">
281 <div class="wpbc_ui_settings__panel__up_header wpbc_ui_settings__panel__up_header__mu"><?php esc_html_e( 'Multiuser Options', 'booking' ); ?></div>
282 <?php
283 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
284 echo $dismiss_x_button; ?>
285 </div>
286 <?php wpbc_ui_settings__panel__mu( $params ); ?>
287 </div>
288 </div><?php
289
290
291
292 ?><div class="wpbc_ui_settings__panel__up_header wpbc_ui_settings__panel__up_header__manage_bookings"><?php esc_html_e( 'Manage Bookings', 'booking' ); ?></div><?php
293 wpbc_ui_settings__panel__manage_bookings( $params );
294
295
296 ?><div class="wpbc_ui_settings__panel__up_header wpbc_ui_settings__panel__up_header__admin_panel"><?php esc_html_e( 'Admin Panel', 'booking' ); ?></div><?php
297 wpbc_ui_settings__panel__admin_panel( $params );
298
299 ?><div class="wpbc_ui_settings__panel__up_header wpbc_ui_settings__panel__up_header__advanced_settings"><?php esc_html_e( 'Advanced', 'booking' ); ?></div><?php
300 wpbc_ui_settings__panel__advanced_settings( $params );
301
302
303 }
304
305
306 // =====================================================================================================================
307 // == Is Dismissed Panel ==
308 // =====================================================================================================================
309 function wpbc_is_dissmissed__in_settings_panel_card( $dismiss_id , $class_name ){
310
311 $is_panel_visible = true;
312 $dismiss_x_button = '';
313
314 if ( ( ! class_exists( $class_name ) ) && ( ! wpbc_is_this_demo() ) ) {
315
316 $is_panel_visible = wpbc_is_dismissed_panel_visible( $dismiss_id );
317
318 if ( $is_panel_visible ) {
319 ob_start();
320 ?><div class="wpbc_dismiss_x__in_panel_card"><?php $is_panel_visible = wpbc_is_dismissed( $dismiss_id ); ?></div><?php // Close 'x' Button
321 $dismiss_x_button = ob_get_clean();
322 }
323 }
324 return array( $is_panel_visible, $dismiss_x_button );
325 }
326
327
328 // ---------------------------------------------------------------------------------------------------------------------
329 // Panel == Calendar ==
330 // ---------------------------------------------------------------------------------------------------------------------
331
332 /**
333 * Show Settings Statistic | Agenda Panel
334 *
335 * @return void
336 */
337 function wpbc_ui_settings__panel__calendar( $params = array() ) {
338
339 ?><div class="wpbc_ui_settings__flex_container wpbc_ui_settings__panel__calendar"><?php
340
341 wpbc_ui_settings__panel_start();
342
343 wpbc_ui_settings_panel__card__calendar( $params );
344 wpbc_ui_settings_panel__card__days_selection( $params );
345 wpbc_ui_settings_panel__card__change_over_days( $params );
346
347 wpbc_ui_settings_panel__card__tooltips_in_days( $params );
348 wpbc_ui_settings_panel__card__general_availability( $params );
349 wpbc_ui_settings_panel__card__capacity( $params );
350
351 wpbc_ui_settings__panel_end();
352
353 ?></div><?php
354
355 }
356
357 /**
358 * Show == Dashboard Card - Calendar ==
359 *
360 * @return void
361 */
362 function wpbc_ui_settings_panel__card__calendar( $params = array() ){
363
364 $title = esc_attr__( 'Calendar Settings', 'booking' );
365
366 if ( ! empty( $params['is_use_permalink'] ) ) {
367 $permalink = function_exists( 'wpbc_get_settings_calendar_url' ) ? wpbc_get_settings_calendar_url() : wpbc_get_settings_url() . '&tab=calendar_settings';
368 $onclick = "";
369 } else {
370 $permalink = function_exists( 'wpbc_get_settings_calendar_url' ) ? wpbc_get_settings_calendar_url() : wpbc_get_settings_url() . '&tab=calendar_settings';
371 $onclick = "";
372 }
373
374 ?><div class="wpbc_ui_settings__card wpbc_ui_settings__card_text_small wpbc_ui_settings__card_divider_right wpbc_ui_settings_panel__card__calendar">
375 <div class="wpbc_ui_settings__text_row">
376 <i class="menu_icon icon-1x wpbc-bi-calendar2-range"></i>
377 <h1>
378 <a onclick="<?php
379 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
380 echo $onclick; ?>" href="<?php
381 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
382 echo $permalink; ?>">
383 <span class="0wpbc_ui_settings__text_color__black2"><?php echo esc_html( $title ); ?></span>
384 </a>
385 </h1>
386 </div>
387 <div class="wpbc_ui_settings__text_row">
388 <a class="wpbc_ui_settings__text_color__black" onclick="<?php
389 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
390 echo $onclick; ?>" href="<?php
391 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
392 echo $permalink; ?>">
393 <?php esc_html_e( 'Customize various calendar settings, specify how many months can be scrolled, and defining the legend.', 'booking' ); ?>
394 </a>
395 </div>
396 </div><?php
397
398 }
399
400 /**
401 * Show == Dashboard Card - Days Selection ==
402 *
403 * @return void
404 */
405 function wpbc_ui_settings_panel__card__days_selection( $params = array() ){
406
407 $title = esc_attr__( 'Days Selection', 'booking' );
408 if ( ! empty( $params['is_use_permalink'] ) ) {
409 $permalink = function_exists( 'wpbc_get_settings_calendar_url' ) ? wpbc_get_settings_calendar_url() : wpbc_get_settings_url() . '&tab=calendar_settings';
410 $onclick = "";
411 } else {
412 $permalink = function_exists( 'wpbc_get_settings_calendar_url' ) ? wpbc_get_settings_calendar_url() : wpbc_get_settings_url() . '&tab=calendar_settings';
413 $onclick = "";
414 }
415
416 ?><div class="wpbc_ui_settings__card wpbc_ui_settings__card_text_small wpbc_ui_settings__card_divider_right wpbc_ui_settings_panel__card__days_selection">
417 <div class="wpbc_ui_settings__text_row">
418 <i class="menu_icon icon-1x wpbc-bi-calendar3-week"></i>
419 <h1>
420 <a onclick="<?php
421 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
422 echo $onclick; ?>" href="<?php
423 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
424 echo $permalink; ?>">
425 <span class="0wpbc_ui_settings__text_color__black2"><?php echo esc_html( $title ); ?></span>
426 </a>
427 </h1>
428 </div>
429 <div class="wpbc_ui_settings__text_row">
430 <a class="wpbc_ui_settings__text_color__black" onclick="<?php
431 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
432 echo $onclick; ?>" href="<?php
433 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
434 echo $permalink; ?>"> <?php esc_html_e( 'Choose how users can select days: single day, multiple days, or a date range with minimum and maximum limits.', 'booking' ); ?>
435 </a>
436 </div>
437 </div><?php
438
439 }
440
441 /**
442 * Show == Dashboard Card - Change Over Days ==
443 *
444 * @return void
445 */
446 function wpbc_ui_settings_panel__card__change_over_days( $params = array() ){
447
448 $dismiss_id = 'wpbc_is_dismissed__card__change_over_days';
449 list( $is_panel_visible, $dismiss_x_button ) = wpbc_is_dissmissed__in_settings_panel_card( $dismiss_id, 'wpdev_bk_biz_s' );
450 if ( ! $is_panel_visible ) { return; }
451
452 $title = esc_attr__( 'Changeover Days', 'booking' );
453
454 if ( class_exists( 'wpdev_bk_biz_s' ) ) {
455 $onclick = '';
456 $url = ' href="' . esc_url( function_exists( 'wpbc_get_settings_calendar_url' ) ? wpbc_get_settings_calendar_url() : wpbc_get_settings_url() . '&tab=calendar_settings' ) . '" ';
457
458 if ( ! empty( $params['is_use_permalink'] ) ) {
459 $url = ' href="'. esc_url( function_exists( 'wpbc_get_settings_calendar_url' ) ? wpbc_get_settings_calendar_url() : wpbc_get_settings_url() . '&tab=calendar_settings' ) . '" '; // Direct link
460 $onclick = "";
461 }
462
463 } else {
464 $onclick = '';
465 $url = ' href="https://wpbookingcalendar.com/features/#change-over-days" ';
466 }
467
468 ?><div id="<?php echo esc_attr( $dismiss_id ); ?>" class="wpbc_ui_settings__card wpbc_ui_settings__card_text_small wpbc_ui_settings__card_divider_right wpbc_ui_settings_panel__card__change_over_days">
469 <div class="wpbc_ui_settings__text_row">
470 <i class="menu_icon icon-1x wpbc_icn_flip"></i>
471 <h1>
472 <a <?php
473 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
474 echo $url; ?> <?php
475 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
476 echo $onclick; ?> >
477 <span class="0wpbc_ui_settings__text_color__black2"><?php echo esc_html( $title ); ?></span>
478 </a>
479 </h1>
480 <?php if ( ! class_exists( 'wpdev_bk_biz_s' ) ) { ?>
481 <div class="wpbc_ui_settings__text_right"><a href="https://wpbookingcalendar.com/features/#change-over-days" class="wpbc_ui_settings__text_pro" target="_blank"><?php esc_html_e('Pro','booking'); ?></a></div>
482 <?php
483 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
484 echo $dismiss_x_button; ?>
485 <?php } ?>
486 </div>
487 <div class="wpbc_ui_settings__text_row">
488 <a class="wpbc_ui_settings__text_color__black" <?php
489 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
490 echo $url; ?> <?php
491 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
492 echo $onclick; ?> > <?php esc_html_e( 'Set up check-in and check-out days for multi-day bookings, with visual indicators like diagonal or vertical lines. Ideal for bookings that require split days.', 'booking' ); ?>
493 </a>
494 </div>
495 </div><?php
496 }
497
498 /**
499 * Show == Dashboard Card - Tooltips in Days ==
500 *
501 * @return void
502 */
503 function wpbc_ui_settings_panel__card__tooltips_in_days( $params = array() ){
504
505 $title = esc_attr__( 'Day Tooltips', 'booking' );
506 $permalink = function_exists( 'wpbc_settings_calendar__get_section_url' )
507 ? wpbc_settings_calendar__get_section_url( 'tooltips' )
508 : wpbc_get_settings_url() . '&tab=calendar_settings&wpbc_calendar_section=tooltips';
509 $onclick = "";
510
511 ?><div class="wpbc_ui_settings__card wpbc_ui_settings__card_text_small wpbc_ui_settings__card_divider_right wpbc_ui_settings_panel__card__tooltips_in_days">
512 <div class="wpbc_ui_settings__text_row">
513 <i class="menu_icon icon-1x wpbc-bi-chat-square-dots"></i>
514 <h1>
515 <a onclick="<?php
516 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
517 echo $onclick; ?>" href="<?php
518 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
519 echo $permalink; ?>">
520 <span class="0wpbc_ui_settings__text_color__black2"><?php echo esc_html( $title ); ?></span>
521 </a>
522 </h1>
523 </div>
524 <div class="wpbc_ui_settings__text_row">
525 <a class="wpbc_ui_settings__text_color__black" onclick="<?php
526 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
527 echo $onclick; ?>" href="<?php
528 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
529 echo $permalink; ?>"> <?php esc_html_e( 'Configure tooltips to display information like booked times, costs, details, and availability when hovering over calendar days.', 'booking' ); ?>
530 </a>
531 </div>
532 </div><?php
533
534 }
535
536 /**
537 * Show == Dashboard Card - General Availability ==
538 *
539 * @return void
540 */
541 function wpbc_ui_settings_panel__card__general_availability( $params = array() ){
542
543 $title = esc_attr__( 'General Availability', 'booking' );
544
545 $permalink = function_exists( 'wpbc_get_general_availability_url' ) ? wpbc_get_general_availability_url() : admin_url( 'admin.php?page=wpbc-availability&tab=general_availability' );
546 $onclick = "";
547
548 ?><div class="wpbc_ui_settings__card wpbc_ui_settings__card_text_small wpbc_ui_settings__card_divider_right wpbc_ui_settings_panel__card__general_availability">
549 <div class="wpbc_ui_settings__text_row">
550 <i class="menu_icon icon-1x wpbc-bi-calendar-check bi-calendar2-day"></i>
551 <h1>
552 <a onclick="<?php
553 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
554 echo $onclick; ?>" href="<?php
555 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
556 echo $permalink; ?>">
557 <span class="0wpbc_ui_settings__text_color__black2"><?php echo esc_html( $title ); ?></span>
558 </a>
559 </h1>
560 </div>
561 <div class="wpbc_ui_settings__text_row">
562 <a class="wpbc_ui_settings__text_color__black" onclick="<?php
563 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
564 echo $onclick; ?>" href="<?php
565 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
566 echo $permalink; ?>"> <?php esc_html_e( 'Define unavailable weekdays, add booking buffers, and customize unavailable day options.', 'booking' ); ?>
567 </a>
568 </div>
569 </div><?php
570
571 }
572
573 /**
574 * Show == Dashboard Card - General Availability ==
575 *
576 * @return void
577 */
578 function wpbc_ui_settings_panel__card__capacity( $params = array() ){
579
580 $title = esc_attr__( 'Booking Capacity', 'booking' );
581 $permalink = function_exists( 'wpbc_get_resource_capacity_url' ) ? wpbc_get_resource_capacity_url() : wpbc_get_resources_url() . '&tab=capacity';
582 $onclick = "";
583
584 ?><div class="wpbc_ui_settings__card wpbc_ui_settings__card_text_small wpbc_ui_settings__card_divider_right wpbc_ui_settings_panel__card__capacity">
585 <div class="wpbc_ui_settings__text_row">
586 <i class="menu_icon icon-1x wpbc_icn_filter_none"></i>
587 <h1>
588 <a onclick="<?php
589 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
590 echo $onclick; ?>" href="<?php
591 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
592 echo $permalink; ?>">
593 <span class="0wpbc_ui_settings__text_color__black2"><?php echo esc_html( $title ); ?></span>
594 </a>
595 </h1>
596 </div>
597 <div class="wpbc_ui_settings__text_row">
598 <a class="wpbc_ui_settings__text_color__black" onclick="<?php
599 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
600 echo $onclick; ?>" href="<?php
601 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
602 echo $permalink; ?>"> <?php esc_html_e( 'Manage the ability to accept multiple bookings for the same date or time slot.', 'booking' ); ?>
603 </a>
604 </div>
605 </div><?php
606
607 }
608
609 // ---------------------------------------------------------------------------------------------------------------------
610
611 /**
612 * Show Settings = Form = Panel
613 *
614 * @return void
615 */
616 function wpbc_ui_settings__panel__form( $params = array() ){
617
618 ?><div class="wpbc_ui_settings__flex_container wpbc_ui_settings__panel__form"><?php
619
620 wpbc_ui_settings__panel_start();
621
622 if ( WPBC_Frontend_Settings::is_bfb_enabled( null ) ) {
623 wpbc_ui_settings_panel__card__bfb( $params );
624 } else {
625 wpbc_ui_settings_panel__card__form_fields( $params );
626 wpbc_ui_settings_panel__card__time_fields( $params );
627 wpbc_ui_settings_panel__card__time_slots_options( $params );
628 wpbc_ui_settings_panel__card__form_options( $params );
629 }
630
631 wpbc_ui_settings__panel_end();
632
633 ?></div><?php
634
635 }
636
637 /**
638 * Show == Dashboard Card - Booking Form Fields ==
639 *
640 * @return void
641 */
642 function wpbc_ui_settings_panel__card__form_fields( $params = array() ){
643
644 $onclick = '';// ' onclick="' . "javascript:wpbc_navigation_click_show_section(this,'#wpbc_general_settings_calendar_metabox' );" . '" ';
645 $url = ' href="' . esc_url( wpbc_get_settings_url() . '&tab=form' ) . '" ';
646
647 ?><div class="wpbc_ui_settings__card wpbc_ui_settings__card_text_small wpbc_ui_settings__card_divider_right wpbc_ui_settings_panel__card__form_fields">
648 <div class="wpbc_ui_settings__text_row">
649 <i class="menu_icon icon-1x wpbc_icn_dashboard"></i>
650 <h1>
651 <a onclick="<?php
652 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
653 echo $onclick; ?>" <?php
654 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
655 echo $url; ?>>
656 <span class="0wpbc_ui_settings__text_color__black2"><?php echo esc_html__('Booking Form Fields','booking'); ?></span>
657 </a>
658 </h1>
659 </div>
660 <div class="wpbc_ui_settings__text_row">
661 <a class="wpbc_ui_settings__text_color__black" onclick="<?php
662 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
663 echo $onclick; ?>" <?php
664 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
665 echo $url; ?>> <?php esc_html_e( 'Add, remove, or customize fields in your booking form.', 'booking' ); ?>
666 </a>
667 </div>
668 </div><?php
669
670 }
671
672
673 /**
674 * Show == Dashboard Card - Booking Form Fields ==
675 *
676 * @return void
677 */
678 function wpbc_ui_settings_panel__card__bfb( $params = array() ){
679
680 $onclick = '';// ' onclick="' . "javascript:wpbc_navigation_click_show_section(this,'#wpbc_general_settings_calendar_metabox' );" . '" ';
681 $url = ' href="' . esc_url( wpbc_get_settings_url() . '&tab=builder_booking_form' ) . '" ';
682
683 ?><div class="wpbc_ui_settings__card wpbc_ui_settings__card_text_small wpbc_ui_settings__card_divider_right wpbc_ui_settings_panel__card__form_fields">
684 <div class="wpbc_ui_settings__text_row">
685 <i class="menu_icon icon-1x wpbc_icn_dashboard"></i>
686 <h1>
687 <a onclick="<?php
688 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
689 echo $onclick; ?>" <?php
690 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
691 echo $url; ?>>
692 <span class="0wpbc_ui_settings__text_color__black2"><?php echo esc_html__('Drag & Drop Booking Form Builder','booking'); ?></span>
693 </a>
694 </h1>
695 </div>
696 <div class="wpbc_ui_settings__text_row">
697 <a class="wpbc_ui_settings__text_color__black" onclick="<?php
698 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
699 echo $onclick; ?>" <?php
700 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
701 echo $url; ?>> <?php esc_html_e( 'Add, remove, or customize fields in your booking form.', 'booking' ); ?>
702 </a>
703 </div>
704 </div><?php
705
706 }
707
708 /**
709 * Show == Dashboard Card - Time Fields ==
710 *
711 * @return void
712 */
713 function wpbc_ui_settings_panel__card__time_fields( $params = array() ){
714
715 $onclick = '';// ' onclick="' . "javascript:wpbc_navigation_click_show_section(this,'#wpbc_general_settings_calendar_metabox' );" . '" ';
716 $url = ' href="' . esc_url( wpbc_get_settings_url() . '&tab=form&field_type=timeslots' ) . '" ';
717
718 ?><div class="wpbc_ui_settings__card wpbc_ui_settings__card_text_small wpbc_ui_settings__card_divider_right wpbc_ui_settings_panel__card__time_fields">
719 <div class="wpbc_ui_settings__text_row">
720 <i class="menu_icon icon-1x wpbc_icn_schedule"></i>
721 <h1>
722 <a onclick="<?php
723 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
724 echo $onclick; ?>" <?php
725 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
726 echo $url; ?>>
727 <span class="0wpbc_ui_settings__text_color__black2"><?php echo esc_html__('Time Slot Configuration','booking'); ?></span>
728 </a>
729 </h1>
730 </div>
731 <div class="wpbc_ui_settings__text_row">
732 <a class="wpbc_ui_settings__text_color__black" onclick="<?php
733 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
734 echo $onclick; ?>" <?php
735 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
736 echo $url; ?>> <?php esc_html_e( 'Enable and configure time selection fields in your booking form.', 'booking' ); ?>
737 </a>
738 </div>
739 </div><?php
740
741 }
742
743
744 /**
745 * Show == Dashboard Card - Form Options ==
746 *
747 * @return void
748 */
749 function wpbc_ui_settings_panel__card__form_options( $params = array() ){
750
751 $title = esc_attr__( 'Booking Form Options', 'booking' );
752
753 if ( ! empty( $params['is_use_permalink'] ) ) {
754 $permalink = wpbc_get_settings_url() . '&scroll_to_section=wpbc_general_settings_form_tab';
755 $onclick = '';
756 } else {
757 $permalink = 'javascript:void(0);';
758 $onclick = "javascript:wpbc_ui_settings__panel__click( '#wpbc_general_settings_form_tab a' ,'#wpbc_general_settings_form_metabox', '" . $title . "' );";
759 }
760 $onclick = '';
761 $permalink = wpbc_get_settings_url() . '&tab=form&subtab=form_options';
762
763 ?><div class="wpbc_ui_settings__card wpbc_ui_settings__card_text_small wpbc_ui_settings__card_divider_right wpbc_ui_settings_panel__card__form_options">
764 <div class="wpbc_ui_settings__text_row">
765 <i class="menu_icon icon-1x wpbc-bi-toggle2-off"></i>
766 <h1>
767 <a onclick="<?php
768 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
769 echo $onclick; ?>" href="<?php
770 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
771 echo $permalink; ?>">
772 <span class="0wpbc_ui_settings__text_color__black2"><?php echo esc_html( $title ); ?></span>
773 </a>
774 </h1>
775 </div>
776 <div class="wpbc_ui_settings__text_row">
777 <a class="wpbc_ui_settings__text_color__black" onclick="<?php
778 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
779 echo $onclick; ?>" href="<?php
780 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
781 echo $permalink; ?>">
782 <?php esc_html_e( 'Enable CAPTCHA, auto-fill fields, and customize the form\'s color theme.', 'booking' ); ?>
783 </a>
784 </div>
785 </div><?php
786 }
787
788 /**
789 * Show == Dashboard Card - Time Slots Options ==
790 *
791 * @return void
792 */
793 function wpbc_ui_settings_panel__card__time_slots_options( $params = array() ){
794
795 $title = esc_attr__( 'Time Slot Appearance', 'booking' );
796
797 if ( ! empty( $params['is_use_permalink'] ) ) {
798 $permalink = wpbc_get_settings_url() . '&scroll_to_section=wpbc_general_settings_time_slots_tab';
799 $onclick = '';
800 } else {
801 $permalink = 'javascript:void(0);';
802 $onclick = "javascript:wpbc_ui_settings__panel__click( '#wpbc_general_settings_time_slots_tab a' ,'#wpbc_general_settings_time_slots_metabox', '" . $title . "' );";
803 }
804 $permalink = function_exists( 'wpbc_get_settings_themes_url' ) ? wpbc_get_settings_themes_url() : wpbc_get_settings_url() . '&tab=themes';
805 $onclick = '';
806
807 ?><div class="wpbc_ui_settings__card wpbc_ui_settings__card_text_small wpbc_ui_settings__card_divider_right wpbc_ui_settings_panel__card__time_slots_options">
808 <div class="wpbc_ui_settings__text_row">
809 <i class="menu_icon icon-1x wpbc_icn_more_time"></i>
810 <h1>
811 <a onclick="<?php
812 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
813 echo $onclick; ?>" href="<?php
814 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
815 echo $permalink; ?>">
816 <span class="0wpbc_ui_settings__text_color__black2"><?php echo esc_html( $title ); ?></span>
817 </a>
818 </h1>
819 </div>
820 <div class="wpbc_ui_settings__text_row">
821 <a class="wpbc_ui_settings__text_color__black" onclick="<?php
822 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
823 echo $onclick; ?>" href="<?php
824 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
825 echo $permalink; ?>"> <?php esc_html_e( 'Choose how time slots are shown in the form: as a dropdown list or a time picker, and set a color theme.', 'booking' ); ?>
826 </a>
827 </div>
828 </div><?php
829 }
830
831 // ---------------------------------------------------------------------------------------------------------------------
832
833 /**
834 * Show Settings = Booking Confirmation = Panel
835 *
836 * @return void
837 */
838 function wpbc_ui_settings__panel__booking_confirmation( $params = array() ){
839
840 ?><div class="wpbc_ui_settings__flex_container wpbc_ui_settings__panel__booking_confirmation"><?php
841
842 wpbc_ui_settings__panel_start();
843
844 wpbc_ui_settings_panel__card__booking_confirmation( $params );
845
846 wpbc_ui_settings__panel_end();
847
848 ?></div><?php
849
850 }
851
852 /**
853 * Show == Dashboard Card - Booking Confirmation ==
854 *
855 * @return void
856 */
857 function wpbc_ui_settings_panel__card__booking_confirmation( $params = array() ){
858
859 $title = esc_attr__( 'Booking Confirmation', 'booking' );
860
861 if ( ! empty( $params['is_use_permalink'] ) ) {
862 $permalink = wpbc_get_settings_url() . '&scroll_to_section=wpbc_general_settings_booking_confirmation_tab';
863 $onclick = "";
864 } else {
865 $permalink = 'javascript:void(0);';
866 $onclick = "javascript:wpbc_ui_settings__panel__click( '#wpbc_general_settings_booking_confirmation_tab a' ,'#wpbc_general_settings_booking_confirmation_metabox,#wpbc_general_settings_booking_confirmation_left_metabox,#wpbc_general_settings_booking_confirmation_right_metabox,#wpbc_general_settings_booking_confirmation_help_metabox', '" . $title . "' );";
867 }
868
869 ?><div class="wpbc_ui_settings__card wpbc_ui_settings__card_text_small wpbc_ui_settings__card_divider_right wpbc_ui_settings_panel__card__booking_confirmation">
870 <div class="wpbc_ui_settings__text_row">
871 <i class="menu_icon icon-1x wpbc-bi-card-checklist 0_icn_grading 0receipt"></i>
872 <h1>
873 <a onclick="<?php
874 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
875 echo $onclick; ?>" href="<?php
876 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
877 echo $permalink; ?>">
878 <span class="0wpbc_ui_settings__text_color__black2"><?php echo esc_html( $title ); ?></span>
879 </a>
880 </h1>
881 </div>
882 <div class="wpbc_ui_settings__text_row">
883 <a class="wpbc_ui_settings__text_color__black" onclick="<?php
884 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
885 echo $onclick; ?>" href="<?php
886 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
887 echo $permalink; ?>"> <?php esc_html_e( 'Customize how the booking summary is displayed after a booking is created.', 'booking' ); ?>
888 </a>
889 </div>
890 </div><?php
891 }
892
893 // ---------------------------------------------------------------------------------------------------------------------
894
895 /**
896 * Show Settings = Emails = Panel
897 *
898 * @return void
899 */
900 function wpbc_ui_settings__panel__notifications( $params = array() ){
901
902 ?><div class="wpbc_ui_settings__flex_container wpbc_ui_settings__panel__notifications"><?php
903
904 wpbc_ui_settings__panel_start();
905
906 wpbc_ui_settings_panel__card__emails( $params );
907
908 wpbc_ui_settings__panel_end();
909
910 ?></div><?php
911
912 }
913
914 /**
915 * Show == Dashboard Card - Emails ==
916 *
917 * @return void
918 */
919 function wpbc_ui_settings_panel__card__emails( $params = array() ){
920
921 $onclick = '';// ' onclick="' . "javascript:wpbc_navigation_click_show_section(this,'#wpbc_general_settings_calendar_metabox' );" . '" ';
922 $url = ' href="' . esc_url( wpbc_get_settings_url() . '&tab=email' ) . '" ';
923
924 ?><div class="wpbc_ui_settings__card wpbc_ui_settings__card_text_small wpbc_ui_settings__card_divider_right wpbc_ui_settings_panel__card__emails">
925 <div class="wpbc_ui_settings__text_row">
926 <i class="menu_icon icon-1x wpbc-bi-envelope-at 0paper _icn_mail_outline"></i>
927 <h1>
928 <a onclick="<?php
929 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
930 echo $onclick; ?>" <?php
931 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
932 echo $url; ?>>
933 <span class="0wpbc_ui_settings__text_color__black2"><?php echo esc_html__('Emails','booking'); ?></span>
934 </a>
935 </h1>
936 </div>
937 <div class="wpbc_ui_settings__text_row">
938 <a class="wpbc_ui_settings__text_color__black" onclick="<?php
939 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
940 echo $onclick; ?>" <?php
941 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
942 echo $url; ?>> <?php esc_html_e( 'Set up automatic email notifications for different booking actions.', 'booking' ); ?>
943 </a>
944 </div>
945 </div><?php
946
947 }
948
949 // ---------------------------------------------------------------------------------------------------------------------
950
951 /**
952 * Show Settings = Sync = Panel
953 *
954 * @return void
955 */
956 function wpbc_ui_settings__panel__sync_setup( $params = array() ){
957
958 ?><div class="wpbc_ui_settings__flex_container wpbc_ui_settings__panel__sync_setup"><?php
959
960 wpbc_ui_settings__panel_start();
961
962 wpbc_ui_settings_panel__card__sync_options( $params );
963 wpbc_ui_settings_panel__card__import_ics( $params );
964 wpbc_ui_settings_panel__card__export_ics( $params );
965 wpbc_ui_settings_panel__card__import_google_cal( $params );
966
967 wpbc_ui_settings__panel_end();
968
969 ?></div><?php
970
971 }
972
973 /**
974 * Show == Dashboard Card - Sync Options ==
975 *
976 * @return void
977 */
978 function wpbc_ui_settings_panel__card__sync_options( $params = array() ){
979
980 $onclick = '';// ' onclick="' . "javascript:wpbc_navigation_click_show_section(this,'#wpbc_general_settings_calendar_metabox' );" . '" ';
981 $url = ' href="' . esc_url( wpbc_get_settings_url() . '&tab=sync&subtab=general' ) . '" ';
982
983 ?><div class="wpbc_ui_settings__card wpbc_ui_settings__card_text_small wpbc_ui_settings__card_divider_right wpbc_ui_settings_panel__card__sync_options">
984 <div class="wpbc_ui_settings__text_row">
985 <i class="menu_icon icon-1x wpbc_icn_sync_alt"></i>
986 <h1>
987 <a onclick="<?php
988 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
989 echo $onclick; ?>" <?php
990 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
991 echo $url; ?>>
992 <span class="0wpbc_ui_settings__text_color__black2"><?php echo esc_html__('Sync Options','booking'); ?></span>
993 </a>
994 </h1>
995 </div>
996 <div class="wpbc_ui_settings__text_row">
997 <a class="wpbc_ui_settings__text_color__black" onclick="<?php
998 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
999 echo $onclick; ?>" <?php
1000 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
1001 echo $url; ?>> <?php esc_html_e( 'Configure import/export rules, timezones, and which fields to include in sync operations.', 'booking' ); ?>
1002 </a>
1003 </div>
1004 </div><?php
1005
1006 }
1007
1008
1009 /**
1010 * Show == Dashboard Card - Import - .ics ==
1011 *
1012 * @return void
1013 */
1014 function wpbc_ui_settings_panel__card__import_ics( $params = array() ){
1015
1016 $onclick = '';// ' onclick="' . "javascript:wpbc_navigation_click_show_section(this,'#wpbc_general_settings_calendar_metabox' );" . '" ';
1017 $url = ' href="' . esc_url( wpbc_get_settings_url() . '&tab=sync&subtab=import' ) . '" ';
1018
1019 ?><div class="wpbc_ui_settings__card wpbc_ui_settings__card_text_small wpbc_ui_settings__card_divider_right wpbc_ui_settings_panel__card__import_ics">
1020 <div class="wpbc_ui_settings__text_row">
1021 <i class="menu_icon icon-1x wpbc-bi-box-arrow-in-down-right"></i>
1022 <h1>
1023 <a onclick="<?php
1024 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
1025 echo $onclick; ?>" <?php
1026 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
1027 echo $url; ?>>
1028 <span class="0wpbc_ui_settings__text_color__black2"><?php echo esc_html__('Import Bookings via .ics','booking'); ?></span>
1029 </a>
1030 </h1>
1031 </div>
1032 <div class="wpbc_ui_settings__text_row">
1033 <a class="wpbc_ui_settings__text_color__black" onclick="<?php
1034 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
1035 echo $onclick; ?>" <?php
1036 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
1037 echo $url; ?>> <?php esc_html_e( 'Set up and configure the import of events using .ics feeds.', 'booking' ); ?>
1038 </a>
1039 </div>
1040 </div><?php
1041
1042 }
1043
1044
1045 /**
1046 * Show == Dashboard Card - Export - .ics ==
1047 *
1048 * @return void
1049 */
1050 function wpbc_ui_settings_panel__card__export_ics( $params = array() ){
1051
1052 $onclick = '';// ' onclick="' . "javascript:wpbc_navigation_click_show_section(this,'#wpbc_general_settings_calendar_metabox' );" . '" ';
1053 $url = ' href="' . esc_url( wpbc_get_settings_url() . '&tab=sync&subtab=export' ) . '" ';
1054
1055 ?><div class="wpbc_ui_settings__card wpbc_ui_settings__card_text_small wpbc_ui_settings__card_divider_right wpbc_ui_settings_panel__card__export_ics">
1056 <div class="wpbc_ui_settings__text_row">
1057 <i class="menu_icon icon-1x wpbc-bi-box-arrow-up-right"></i>
1058 <h1>
1059 <a onclick="<?php
1060 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
1061 echo $onclick; ?>" <?php
1062 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
1063 echo $url; ?>>
1064 <span class="0wpbc_ui_settings__text_color__black2"><?php echo esc_html__('Export Bookings via .ics','booking'); ?></span>
1065 </a>
1066 </h1>
1067 </div>
1068 <div class="wpbc_ui_settings__text_row">
1069 <a class="wpbc_ui_settings__text_color__black" onclick="<?php
1070 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
1071 echo $onclick; ?>" <?php
1072 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
1073 echo $url; ?>> <?php esc_html_e( 'Set up and configure the export of bookings into .ics feeds.', 'booking' ); ?>
1074 </a>
1075 </div>
1076 </div><?php
1077
1078 }
1079
1080
1081 /**
1082 * Show == Dashboard Card - Import - .ics ==
1083 *
1084 * @return void
1085 */
1086 function wpbc_ui_settings_panel__card__import_google_cal( $params = array() ){
1087
1088 $onclick = '';// ' onclick="' . "javascript:wpbc_navigation_click_show_section(this,'#wpbc_general_settings_calendar_metabox' );" . '" ';
1089 $url = ' href="' . esc_url( wpbc_get_settings_url() . '&tab=sync&subtab=gcal' ) . '" ';
1090
1091 ?><div class="wpbc_ui_settings__card wpbc_ui_settings__card_text_small wpbc_ui_settings__card_divider_right wpbc_ui_settings_panel__card__import_google_cal">
1092 <div class="wpbc_ui_settings__text_row">
1093 <i class="menu_icon icon-1x wpbc_icn_event"></i>
1094 <h1>
1095 <a onclick="<?php
1096 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
1097 echo $onclick; ?>" <?php
1098 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
1099 echo $url; ?>>
1100 <span class="0wpbc_ui_settings__text_color__black2"><?php echo esc_html__('Import Google Calendar Events','booking'); ?></span>
1101 </a>
1102 </h1>
1103 </div>
1104 <div class="wpbc_ui_settings__text_row">
1105 <a class="wpbc_ui_settings__text_color__black" onclick="<?php
1106 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
1107 echo $onclick; ?>" <?php
1108 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
1109 echo $url; ?>> <?php esc_html_e( 'Set up and configure the import of Google Calendar events using the API.', 'booking' ); ?>
1110 </a>
1111 </div>
1112 </div><?php
1113
1114 }
1115
1116 // ---------------------------------------------------------------------------------------------------------------------
1117
1118 /**
1119 * Show Settings = Payment Setup = Panel
1120 *
1121 * @return void
1122 */
1123 function wpbc_ui_settings__panel__payment_setup( $params = array() ){
1124
1125 ?><div class="wpbc_ui_settings__flex_container wpbc_ui_settings__panel__payment_setup"><?php
1126
1127 wpbc_ui_settings__panel_start();
1128
1129 wpbc_ui_settings_panel__card__payment_setup( $params );
1130 wpbc_ui_settings_panel__card__currency( $params );
1131 wpbc_ui_settings_panel__card__payment_options( $params );
1132
1133 wpbc_ui_settings__panel_end();
1134
1135 ?></div><?php
1136
1137 }
1138
1139 /**
1140 * Show == Dashboard Card - Payment Gateways ==
1141 *
1142 * @return void
1143 */
1144 function wpbc_ui_settings_panel__card__payment_setup( $params = array() ){
1145
1146 if ( class_exists( 'wpdev_bk_biz_s' ) ) {
1147 $onclick = '';// ' onclick="' . "javascript:wpbc_navigation_click_show_section(this,'#wpbc_general_settings_calendar_metabox' );" . '" ';
1148 $url = ' href="' . esc_url( wpbc_get_settings_url() . '&tab=payment' ) . '" ';
1149 } else {
1150 $onclick = '';
1151 $url = ' href="https://wpbookingcalendar.com/features/#payments" ';
1152 }
1153
1154 ?><div class="wpbc_ui_settings__card wpbc_ui_settings__card_text_small wpbc_ui_settings__card_divider_right wpbc_ui_settings_panel__card__payment_setup">
1155 <div class="wpbc_ui_settings__text_row">
1156 <i class="menu_icon icon-1x wpbc-bi-credit-card-2-back"></i>
1157 <h1>
1158 <a <?php
1159 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
1160 echo $url; ?> <?php
1161 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
1162 echo $onclick; ?> >
1163 <span class="0wpbc_ui_settings__text_color__black2"><?php echo esc_html__('Payment Gateways','booking'); ?></span>
1164 </a>
1165 </h1>
1166 <?php if ( ! class_exists( 'wpdev_bk_biz_s' ) ) { ?>
1167 <div class="wpbc_ui_settings__text_right"><a href="https://wpbookingcalendar.com/features/#payments" class="wpbc_ui_settings__text_pro" target="_blank"><?php esc_html_e('Pro','booking'); ?></a></div>
1168 <?php } ?>
1169 </div>
1170 <div class="wpbc_ui_settings__text_row">
1171 <a class="wpbc_ui_settings__text_color__black" <?php
1172 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
1173 echo $url; ?> <?php
1174 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
1175 echo $onclick; ?> >
1176 <?php
1177 /* translators: 1: ... */
1178 echo wp_kses_post( sprintf( __( 'Set up payment methods such as %s','booking') , 'Stripe, PayPal, iDeal, Authorize.Net, Opayo - Elavon, Bank Transfer, Pay in Cash, iPay88, ...') ); ?>
1179 </a>
1180 </div>
1181 </div><?php
1182
1183 }
1184
1185 /**
1186 * Show == Dashboard Card - Currency ==
1187 *
1188 * @return void
1189 */
1190 function wpbc_ui_settings_panel__card__currency( $params = array() ){
1191
1192 if ( class_exists( 'wpdev_bk_biz_s' ) ) {
1193 $onclick = '';// ' onclick="' . "javascript:wpbc_navigation_click_show_section(this,'#wpbc_general_settings_calendar_metabox' );" . '" ';
1194 $url = ' href="' . esc_url( wpbc_get_settings_url() . '&tab=payment#wpbc_settings_payment_currency_metabox' ) . '" ';
1195 } else {
1196 $onclick = '';
1197 $url = ' href="https://wpbookingcalendar.com/features/#payments" ';
1198 }
1199
1200 ?><div class="wpbc_ui_settings__card wpbc_ui_settings__card_text_small wpbc_ui_settings__card_divider_right wpbc_ui_settings_panel__card__currency">
1201 <div class="wpbc_ui_settings__text_row">
1202 <i class="menu_icon icon-1x wpbc-bi-currency-exchange _icn_attach_money"></i>
1203 <h1>
1204 <a <?php
1205 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
1206 echo $url; ?> <?php
1207 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
1208 echo $onclick; ?> >
1209 <span class="0wpbc_ui_settings__text_color__black2"><?php echo esc_html__('Set Currency','booking'); ?></span>
1210 </a>
1211 </h1>
1212 <?php if ( ! class_exists( 'wpdev_bk_biz_s' ) ) { ?>
1213 <div class="wpbc_ui_settings__text_right"><a href="https://wpbookingcalendar.com/features/#payments" class="wpbc_ui_settings__text_pro" target="_blank"><?php esc_html_e('Pro','booking'); ?></a></div>
1214 <?php } ?>
1215 </div>
1216 <div class="wpbc_ui_settings__text_row">
1217 <a class="wpbc_ui_settings__text_color__black" <?php
1218 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
1219 echo $url; ?> <?php
1220 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
1221 echo $onclick; ?> > <?php esc_html_e( 'Configure the currency used for bookings and payments.', 'booking' ); ?>
1222 </a>
1223 </div>
1224 </div><?php
1225
1226 }
1227
1228 /**
1229 * Show == Dashboard Card - Payment Options ==
1230 *
1231 * @return void
1232 */
1233 function wpbc_ui_settings_panel__card__payment_options( $params = array() ){
1234
1235 if ( class_exists( 'wpdev_bk_biz_s' ) ) {
1236 $onclick = '';// ' onclick="' . "javascript:wpbc_navigation_click_show_section(this,'#wpbc_general_settings_calendar_metabox' );" . '" ';
1237 $url = ' href="' . esc_url( wpbc_get_settings_url() . '&tab=payment#wpbc_settings_payment_options_metabox' ) . '" ';
1238 } else {
1239 $onclick = '';
1240 $url = ' href="https://wpbookingcalendar.com/features/#payments" ';
1241 }
1242
1243 ?><div class="wpbc_ui_settings__card wpbc_ui_settings__card_text_small wpbc_ui_settings__card_divider_right wpbc_ui_settings_panel__card__payment_options">
1244 <div class="wpbc_ui_settings__text_row">
1245 <i class="menu_icon icon-1x wpbc-bi-cash-coin wallet2"></i>
1246 <h1>
1247 <a <?php
1248 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
1249 echo $url; ?> <?php
1250 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
1251 echo $onclick; ?> >
1252 <span class="0wpbc_ui_settings__text_color__black2"><?php echo esc_html__('Payment Options','booking'); ?></span>
1253 </a>
1254 </h1>
1255 <?php if ( ! class_exists( 'wpdev_bk_biz_s' ) ) { ?>
1256 <div class="wpbc_ui_settings__text_right"><a href="https://wpbookingcalendar.com/features/#payments" class="wpbc_ui_settings__text_pro" target="_blank"><?php esc_html_e('Pro','booking'); ?></a></div>
1257 <?php } ?>
1258 </div>
1259 <div class="wpbc_ui_settings__text_row">
1260 <a class="wpbc_ui_settings__text_color__black" <?php
1261 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
1262 echo $url; ?> <?php
1263 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
1264 echo $onclick; ?> >
1265 <?php esc_html_e('Configure cost per day or night, and set up different payment methods and pricing options.' , 'booking'); ?>
1266 </a>
1267 </div>
1268 </div><?php
1269
1270 }
1271
1272
1273
1274 /**
1275 * Show Settings = Search Availability = Panel
1276 *
1277 * @return void
1278 */
1279 function wpbc_ui_settings__panel__search_availability( $params = array() ){
1280
1281 ?><div class="wpbc_ui_settings__flex_container wpbc_ui_settings__panel__search_availability"><?php
1282
1283 wpbc_ui_settings__panel_start();
1284
1285 wpbc_ui_settings_panel__card__search_availability( $params );
1286
1287 wpbc_ui_settings__panel_end();
1288
1289 ?></div><?php
1290
1291 }
1292
1293 /**
1294 * Show == Dashboard Card - Search Availability ==
1295 *
1296 * @return void
1297 */
1298 function wpbc_ui_settings_panel__card__search_availability( $params = array() ){
1299
1300 if ( class_exists( 'wpdev_bk_biz_l' ) ) {
1301 $url = ' href="' . esc_url( wpbc_get_settings_url() . '&tab=search' ) . '" ';
1302 } else {
1303 $url = ' href="https://wpbookingcalendar.com/features/#search" ';
1304 }
1305
1306 ?><div class="wpbc_ui_settings__card wpbc_ui_settings__card_text_small wpbc_ui_settings__card_divider_right wpbc_ui_settings_panel__card__search_availability">
1307 <div class="wpbc_ui_settings__text_row">
1308 <i class="menu_icon icon-1x wpbc_icn_youtube_searched_for"></i>
1309 <h1>
1310 <a <?php
1311 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
1312 echo $url; ?>>
1313 <span class="0wpbc_ui_settings__text_color__black2"><?php echo esc_html__('Search Availability','booking'); ?></span>
1314 </a>
1315 </h1>
1316 <?php if ( ! class_exists( 'wpdev_bk_biz_l' ) ) { ?>
1317 <div class="wpbc_ui_settings__text_right"><a href="https://wpbookingcalendar.com/features/#search" class="wpbc_ui_settings__text_pro" target="_blank"><?php esc_html_e('Pro','booking'); ?></a></div>
1318 <?php } ?>
1319 </div>
1320 <div class="wpbc_ui_settings__text_row">
1321 <a class="wpbc_ui_settings__text_color__black" <?php
1322 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
1323 echo $url; ?>> <?php esc_html_e( 'Configure the layout and functionality of both the search form and search results', 'booking' ); ?>.
1324 </a>
1325 </div>
1326 </div><?php
1327 }
1328
1329 // ---------------------------------------------------------------------------------------------------------------------
1330
1331 /**
1332 * Show Settings = MultiUser = Panel
1333 *
1334 * @return void
1335 */
1336 function wpbc_ui_settings__panel__mu( $params = array() ){
1337
1338 ?><div class="wpbc_ui_settings__flex_container wpbc_ui_settings__panel__mu"><?php
1339
1340 wpbc_ui_settings__panel_start();
1341
1342 wpbc_ui_settings_panel__card__mu( $params );
1343
1344 wpbc_ui_settings__panel_end();
1345
1346 ?></div><?php
1347
1348 }
1349
1350 /**
1351 * Show == Dashboard Card - MultiUser ==
1352 *
1353 * @return void
1354 */
1355 function wpbc_ui_settings_panel__card__mu( $params = array() ){
1356
1357 if ( class_exists( 'wpdev_bk_multiuser' ) ) {
1358 $url = ' href="' . esc_url( wpbc_get_settings_url() . '&tab=users' ) . '" ';
1359 } else {
1360 $url = ' href="https://wpbookingcalendar.com/features/#multiuser" ';
1361 }
1362
1363 ?><div class="wpbc_ui_settings__card wpbc_ui_settings__card_text_small wpbc_ui_settings__card_divider_right wpbc_ui_settings_panel__card__mu">
1364 <div class="wpbc_ui_settings__text_row">
1365 <i class="menu_icon icon-1x wpbc_icn_people_alt"></i>
1366 <h1>
1367 <a <?php
1368 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
1369 echo $url; ?>>
1370 <span class="0wpbc_ui_settings__text_color__black2"><?php echo esc_html__('Multiuser Admin Panels','booking'); ?></span>
1371 </a>
1372 </h1>
1373 <?php if ( ! class_exists( 'wpdev_bk_multiuser' ) ) { ?>
1374 <div class="wpbc_ui_settings__text_right"><a href="https://wpbookingcalendar.com/features/#multiuser" class="wpbc_ui_settings__text_pro" target="_blank"><?php esc_html_e('Pro','booking'); ?></a></div>
1375 <?php } ?>
1376 </div>
1377 <div class="wpbc_ui_settings__text_row">
1378 <a class="wpbc_ui_settings__text_color__black" <?php
1379 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
1380 echo $url; ?>> <?php esc_html_e( 'Enable separate booking admin panels for different WordPress users.', 'booking' ); ?>
1381 </a>
1382 </div>
1383 </div><?php
1384
1385 }
1386
1387
1388 // ---------------------------------------------------------------------------------------------------------------------
1389
1390 /**
1391 * Show Settings = Manage Bookings = Panel
1392 *
1393 * @return void
1394 */
1395 function wpbc_ui_settings__panel__manage_bookings( $params = array() ){
1396
1397 ?><div class="wpbc_ui_settings__flex_container wpbc_ui_settings__panel__manage_bookings"><?php
1398
1399 wpbc_ui_settings__panel_start();
1400
1401 wpbc_ui_settings_panel__card__timeline_front_end( $params );
1402 wpbc_ui_settings_panel__card__manage_bookings( $params );
1403 wpbc_ui_settings_panel__card__auto_cancel_approve( $params );
1404
1405 wpbc_ui_settings__panel_end();
1406
1407 ?></div><?php
1408
1409 }
1410
1411 /**
1412 * Show == Dashboard Card - TimeLine Front-End ==
1413 *
1414 * @return void
1415 */
1416 function wpbc_ui_settings_panel__card__timeline_front_end( $params = array() ){
1417
1418 $title = esc_attr__( 'Timeline (Front-End)', 'booking' );
1419
1420 if ( ! empty( $params['is_use_permalink'] ) ) {
1421 $permalink = wpbc_get_settings_url() . '&scroll_to_section=wpbc_general_settings_booking_timeline_tab';
1422 $onclick = "";
1423 } else {
1424 $permalink = 'javascript:void(0);';
1425 $onclick = "javascript:wpbc_ui_settings__panel__click( '#wpbc_general_settings_booking_timeline_tab a' ,'#wpbc_general_settings_booking_timeline_metabox', '" . $title . "' );";
1426 }
1427
1428 ?><div class="wpbc_ui_settings__card wpbc_ui_settings__card_text_small wpbc_ui_settings__card_divider_right wpbc_ui_settings_panel__card__timeline_front_end">
1429 <div class="wpbc_ui_settings__text_row">
1430 <i class="menu_icon icon-1x wpbc_icn_rotate_90 wpbc_icn_align_vertical_bottom"></i>
1431 <h1>
1432 <a onclick="<?php
1433 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
1434 echo $onclick; ?>" href="<?php
1435 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
1436 echo $permalink; ?>">
1437 <span class="0wpbc_ui_settings__text_color__black2"><?php echo esc_html( $title ); ?></span>
1438 </a>
1439 </h1>
1440 </div>
1441 <div class="wpbc_ui_settings__text_row">
1442 <a class="wpbc_ui_settings__text_color__black" onclick="<?php
1443 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
1444 echo $onclick; ?>" href="<?php
1445 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
1446 echo $permalink; ?>"> <?php esc_html_e( 'Customize timeline options, including the display of booking details.', 'booking' ); ?>
1447 <?php if ( ! class_exists( 'wpdev_bk_personal' ) ) { ?>
1448 <div class="wpbc_ui_settings__text_right" style="font-size: 10px;"><a href="https://wpbookingcalendar.com/features/#show-booking-details" class="wpbc_ui_settings__text_pro" target="_blank"><?php esc_html_e('Pro','booking'); ?></a></div>
1449 <?php } ?>
1450
1451 </a>
1452 </div>
1453 </div><?php
1454 }
1455
1456 /**
1457 * Show == Dashboard Card - Manage Bookings ==
1458 *
1459 * @return void
1460 */
1461 function wpbc_ui_settings_panel__card__manage_bookings( $params = array() ){
1462
1463 $dismiss_id = 'wpbc_is_dismissed__card__manage_bookings';
1464 list( $is_panel_visible, $dismiss_x_button ) = wpbc_is_dissmissed__in_settings_panel_card( $dismiss_id, 'wpdev_bk_personal' );
1465 if ( ! $is_panel_visible ) { return; }
1466
1467 $title = esc_attr__( 'Manage Bookings', 'booking' );
1468
1469 if ( class_exists( 'wpdev_bk_personal' ) ) {
1470 $onclick = ' onclick="';
1471 $onclick .= "javascript:wpbc_ui_settings__panel__click( '#wpbc_general_settings_bookings_options_tab a' ,'#wpbc_general_settings_bookings_options_metabox', '" . $title . "' );";
1472 //$onclick .= " wpbc_blink_element('.wpbc_tr_set_gen_booking_range_selection_time_is_active', 4, 350); ";
1473 $onclick .= '" ';
1474
1475 $url = ' href="javascript:void(0);" ';
1476
1477 if ( ! empty( $params['is_use_permalink'] ) ) {
1478 $url = ' href="'. esc_url( wpbc_get_settings_url() ) . '&scroll_to_section=wpbc_general_settings_bookings_options_tab" ';
1479 $onclick = "";
1480 }
1481
1482 } else {
1483 $onclick = '';
1484 $url = ' href="https://wpbookingcalendar.com/features/#manage-bookings" ';
1485 }
1486
1487 ?><div id="<?php echo esc_attr( $dismiss_id ); ?>" class="wpbc_ui_settings__card wpbc_ui_settings__card_text_small wpbc_ui_settings__card_divider_right wpbc_ui_settings_panel__card__manage_bookings">
1488 <div class="wpbc_ui_settings__text_row">
1489 <i class="menu_icon icon-1x wpbc_icn_app_registration mode_edit_outline edit_calendar"></i>
1490 <h1>
1491 <a <?php
1492 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
1493 echo $url; ?> <?php
1494 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
1495 echo $onclick; ?> >
1496 <span class="0wpbc_ui_settings__text_color__black2"><?php echo esc_html( $title ); ?></span>
1497 </a>
1498 </h1>
1499 <?php if ( ! class_exists( 'wpdev_bk_personal' ) ) { ?>
1500 <div class="wpbc_ui_settings__text_right"><a href="https://wpbookingcalendar.com/faq/configure-editing-cancel-payment-bookings-for-visitors/" class="wpbc_ui_settings__text_pro" target="_blank"><?php esc_html_e('Pro','booking'); ?></a></div>
1501 <?php
1502 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
1503 echo $dismiss_x_button; ?>
1504 <?php } ?>
1505 </div>
1506 <div class="wpbc_ui_settings__text_row">
1507 <a class="wpbc_ui_settings__text_color__black" <?php
1508 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
1509 echo $url; ?> <?php
1510 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
1511 echo $onclick; ?> > <?php esc_html_e( 'Allow customers to edit or cancel their own bookings.', 'booking' ); ?>
1512 </a>
1513 </div>
1514 </div><?php
1515
1516 }
1517
1518 /**
1519 * Show == Dashboard Card - Auto Cancellation / Auto Approval ==
1520 *
1521 * @return void
1522 */
1523 function wpbc_ui_settings_panel__card__auto_cancel_approve( $params = array() ){
1524
1525 $dismiss_id = 'wpbc_is_dismissed__card__auto_cancel_approve';
1526 list( $is_panel_visible, $dismiss_x_button ) = wpbc_is_dissmissed__in_settings_panel_card( $dismiss_id, 'wpdev_bk_biz_s' );
1527 if ( ! $is_panel_visible ) { return; }
1528
1529 $title = esc_attr__( 'Auto Cancellation / Auto Approval', 'booking' );
1530
1531 if ( class_exists( 'wpdev_bk_biz_s' ) ) {
1532 $onclick = ' onclick="';
1533 $onclick .= "javascript:wpbc_ui_settings__panel__click( '#wpbc_general_settings_auto_cancelation_approval_tab a' ,'#wpbc_general_settings_auto_cancelation_approval_metabox', '" . $title . "' );";
1534 //$onclick .= " wpbc_blink_element('.wpbc_tr_set_gen_booking_range_selection_time_is_active', 4, 350); ";
1535 $onclick .= '" ';
1536 $url = ' href="javascript:void(0);" ';
1537
1538 if ( ! empty( $params['is_use_permalink'] ) ) {
1539 $url = ' href="'. esc_url( wpbc_get_settings_url() ) . '&scroll_to_section=wpbc_general_settings_auto_cancelation_approval_tab" ';
1540 $onclick = "";
1541 }
1542
1543 } else {
1544 $onclick = '';
1545 $url = ' href="https://wpbookingcalendar.com/features/#auto-cancellation" ';
1546 }
1547
1548 ?><div id="<?php echo esc_attr( $dismiss_id ); ?>" class="wpbc_ui_settings__card wpbc_ui_settings__card_text_small wpbc_ui_settings__card_divider_right wpbc_ui_settings_panel__card__auto_cancel_approve">
1549 <div class="wpbc_ui_settings__text_row">
1550 <i class="menu_icon icon-1x wpbc_icn_published_with_changes"></i>
1551 <h1>
1552 <a <?php
1553 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
1554 echo $url; ?> <?php
1555 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
1556 echo $onclick; ?> >
1557 <span class="0wpbc_ui_settings__text_color__black2"><?php echo esc_html( $title ); ?></span>
1558 </a>
1559 </h1>
1560 <?php if ( ! class_exists( 'wpdev_bk_biz_s' ) ) { ?>
1561 <div class="wpbc_ui_settings__text_right"><a href="https://wpbookingcalendar.com/features/#auto-cancellation" class="wpbc_ui_settings__text_pro" target="_blank"><?php esc_html_e('Pro','booking'); ?></a></div>
1562 <?php
1563 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
1564 echo $dismiss_x_button; ?>
1565 <?php } ?>
1566 </div>
1567 <div class="wpbc_ui_settings__text_row">
1568 <a class="wpbc_ui_settings__text_color__black" <?php
1569 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
1570 echo $url; ?> <?php
1571 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
1572 echo $onclick; ?> > <?php esc_html_e( 'Enable automatic approval or cancellation of bookings.', 'booking' ); ?>
1573 </a>
1574 </div>
1575 </div><?php
1576 }
1577
1578
1579 // ---------------------------------------------------------------------------------------------------------------------
1580
1581 /**
1582 * Show Settings = Admin Panel = Panel
1583 *
1584 * @return void
1585 */
1586 function wpbc_ui_settings__panel__admin_panel( $params = array() ){
1587
1588 ?><div class="wpbc_ui_settings__flex_container wpbc_ui_settings__panel__admin_panel"><?php
1589
1590 wpbc_ui_settings__panel_start();
1591
1592 wpbc_ui_settings_panel__card__admin_panel( $params );
1593 wpbc_ui_settings_panel__card__plugin_menu_permistions( $params );
1594 wpbc_ui_settings_panel__card__translations( $params );
1595 wpbc_ui_settings_panel__card__timeline_back_end( $params );
1596 wpbc_ui_settings_panel__card__date_time_format( $params );
1597
1598 wpbc_ui_settings__panel_end();
1599
1600 ?></div><?php
1601
1602 }
1603
1604
1605 /**
1606 * Show == Dashboard Card - Admin Panel ==
1607 *
1608 * @return void
1609 */
1610 function wpbc_ui_settings_panel__card__admin_panel( $params = array() ){
1611
1612 $title = esc_attr__( 'Admin Panel', 'booking' );
1613
1614 if ( ! empty( $params['is_use_permalink'] ) ) {
1615 $permalink = wpbc_get_settings_url() . '&scroll_to_section=wpbc_general_settings_booking_listing_tab';
1616 $onclick = "";
1617 } else {
1618 $permalink = 'javascript:void(0);';
1619 $onclick = "javascript:wpbc_ui_settings__panel__click( '#wpbc_general_settings_booking_listing_tab a' ,'#wpbc_general_settings_booking_listing_metabox', '" . $title . "' );";
1620 }
1621
1622 ?><div class="wpbc_ui_settings__card wpbc_ui_settings__card_text_small wpbc_ui_settings__card_divider_right wpbc_ui_settings_panel__card__admin_panel">
1623 <div class="wpbc_ui_settings__text_row">
1624 <i class="menu_icon icon-1x wpbc-bi-speedometer2"></i>
1625 <h1>
1626 <a onclick="<?php
1627 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
1628 echo $onclick; ?>" href="<?php
1629 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
1630 echo $permalink; ?>">
1631 <span class="0wpbc_ui_settings__text_color__black2"><?php echo esc_html( $title ); ?></span>
1632 </a>
1633 </h1>
1634 </div>
1635 <div class="wpbc_ui_settings__text_row">
1636 <a class="wpbc_ui_settings__text_color__black" onclick="<?php
1637 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
1638 echo $onclick; ?>" href="<?php
1639 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
1640 echo $permalink; ?>"> <?php esc_html_e( 'Configure various options and settings in the admin panel.', 'booking' ); ?>
1641 </a>
1642 </div>
1643 </div><?php
1644 }
1645
1646 /**
1647 * Show == Dashboard Card - TimeLine Back-End ==
1648 *
1649 * @return void
1650 */
1651 function wpbc_ui_settings_panel__card__timeline_back_end( $params = array() ){
1652
1653 $title = esc_attr__('Timeline View','booking') . ' (' . esc_attr__('Back-End','booking') . ')';
1654
1655 if ( ! empty( $params['is_use_permalink'] ) ) {
1656 $permalink = wpbc_get_settings_url() . '&scroll_to_section=wpbc_general_settings_booking_calendar_overview_tab';
1657 $onclick = "";
1658 } else {
1659 $permalink = 'javascript:void(0);';
1660 $onclick = "javascript:wpbc_ui_settings__panel__click( '#wpbc_general_settings_booking_calendar_overview_tab a' ,'#wpbc_general_settings_booking_calendar_overview_metabox', '" . $title . "' );";
1661 }
1662
1663 ?><div class="wpbc_ui_settings__card wpbc_ui_settings__card_text_small wpbc_ui_settings__card_divider_right wpbc_ui_settings_panel__card__timeline_back_end">
1664 <div class="wpbc_ui_settings__text_row">
1665 <i class="menu_icon icon-1x wpbc-bi-bar-chart-steps _icn_timeline 0wpbc_icn_rotate_45 0wpbc_icn_align_vertical_bottom"></i>
1666 <h1>
1667 <a onclick="<?php
1668 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
1669 echo $onclick; ?>" href="<?php
1670 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
1671 echo $permalink; ?>">
1672 <span class="0wpbc_ui_settings__text_color__black2"><?php echo esc_html( $title ); ?></span>
1673 </a>
1674 </h1>
1675 </div>
1676 <div class="wpbc_ui_settings__text_row">
1677 <a class="wpbc_ui_settings__text_color__black" onclick="<?php
1678 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
1679 echo $onclick; ?>" href="<?php
1680 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
1681 echo $permalink; ?>"> <?php esc_html_e( 'Customize timeline options in the admin panel, including displaying booking details.', 'booking' ); ?>
1682 </a>
1683 </div>
1684 </div><?php
1685 }
1686
1687
1688 /**
1689 * Show == Dashboard Card - TimeLine Back-End ==
1690 *
1691 * @return void
1692 */
1693 function wpbc_ui_settings_panel__card__date_time_format( $params = array() ){
1694
1695 $title = esc_attr__( 'Date and Time Formats', 'booking' );
1696
1697 if ( ! empty( $params['is_use_permalink'] ) ) {
1698 $permalink = wpbc_get_settings_url() . '&scroll_to_section=wpbc_general_settings_datestimes_tab';
1699 $onclick = "";
1700 } else {
1701 $permalink = 'javascript:void(0);';
1702 $onclick = "javascript:wpbc_ui_settings__panel__click( '#wpbc_general_settings_datestimes_tab a' ,'#wpbc_general_settings_datestimes_metabox', '" . $title . "' );";
1703 }
1704
1705 ?><div class="wpbc_ui_settings__card wpbc_ui_settings__card_text_small wpbc_ui_settings__card_divider_right wpbc_ui_settings_panel__card__date_time_format">
1706 <div class="wpbc_ui_settings__text_row">
1707 <i class="menu_icon icon-1x wpbc-bi-braces-asterisk _icn_password"></i>
1708 <h1>
1709 <a onclick="<?php
1710 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
1711 echo $onclick; ?>" href="<?php
1712 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
1713 echo $permalink; ?>">
1714 <span class="0wpbc_ui_settings__text_color__black2"><?php echo esc_html( $title ); ?></span>
1715 </a>
1716 </h1>
1717 </div>
1718 <div class="wpbc_ui_settings__text_row">
1719 <a class="wpbc_ui_settings__text_color__black" onclick="<?php
1720 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
1721 echo $onclick; ?>" href="<?php
1722 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
1723 echo $permalink; ?>"> <?php esc_html_e( 'Customize the display format for dates and times.', 'booking' ); ?>
1724 </a>
1725 </div>
1726 </div><?php
1727 }
1728
1729
1730 /**
1731 * Show == Dashboard Card - Plugin Menu / Permissions ==
1732 *
1733 * @return void
1734 */
1735 function wpbc_ui_settings_panel__card__plugin_menu_permistions( $params = array() ){
1736
1737 $title = esc_attr__( 'Plugin Menu / Permissions', 'booking' );
1738
1739 if ( ! empty( $params['is_use_permalink'] ) ) {
1740 $permalink = wpbc_get_settings_url() . '&scroll_to_section=wpbc_general_settings_permissions_tab';
1741 $onclick = "";
1742 } else {
1743 $permalink = 'javascript:void(0);';
1744 $onclick = "javascript:wpbc_ui_settings__panel__click( '#wpbc_general_settings_permissions_tab a' ,'#wpbc_general_settings_permissions_metabox', '" . $title . "' );";
1745 }
1746
1747 ?><div class="wpbc_ui_settings__card wpbc_ui_settings__card_text_small wpbc_ui_settings__card_divider_right wpbc_ui_settings_panel__card__plugin_menu_permistions">
1748 <div class="wpbc_ui_settings__text_row">
1749 <i class="menu_icon icon-1x wpbc-bi-key"></i>
1750 <h1>
1751 <a onclick="<?php
1752 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
1753 echo $onclick; ?>" href="<?php
1754 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
1755 echo $permalink; ?>">
1756 <span class="0wpbc_ui_settings__text_color__black2"><?php echo esc_html( $title ); ?></span>
1757 </a>
1758 </h1>
1759 </div>
1760 <div class="wpbc_ui_settings__text_row">
1761 <a class="wpbc_ui_settings__text_color__black" onclick="<?php
1762 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
1763 echo $onclick; ?>" href="<?php
1764 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
1765 echo $permalink; ?>"> <?php esc_html_e( 'Set user permissions for accessing plugin menu pages and configure the menu position.', 'booking' ); ?>
1766 </a>
1767 </div>
1768 </div><?php
1769 }
1770
1771
1772 /**
1773 * Show == Dashboard Card - Translations ==
1774 *
1775 * @return void
1776 */
1777 function wpbc_ui_settings_panel__card__translations( $params = array() ){
1778
1779 $title = esc_attr__( 'Translations', 'booking' );
1780
1781 if ( ! empty( $params['is_use_permalink'] ) ) {
1782 $permalink = wpbc_get_settings_url() . '&scroll_to_section=wpbc_general_settings_translations_tab';
1783 $onclick = "";
1784 } else {
1785 $permalink = 'javascript:void(0);';
1786 $onclick = "javascript:wpbc_ui_settings__panel__click( '#wpbc_general_settings_translations_tab a' ,'#wpbc_general_settings_translations_metabox', '" . $title . "' );";
1787 }
1788
1789 ?><div class="wpbc_ui_settings__card wpbc_ui_settings__card_text_small wpbc_ui_settings__card_divider_right wpbc_ui_settings_panel__card__translations">
1790 <div class="wpbc_ui_settings__text_row">
1791 <i class="menu_icon icon-1x wpbc_icn_translate 0wpbc-bi-translate"></i>
1792 <h1>
1793 <a onclick="<?php
1794 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
1795 echo $onclick; ?>" href="<?php
1796 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
1797 echo $permalink; ?>">
1798 <span class="0wpbc_ui_settings__text_color__black2"><?php echo esc_html( $title ); ?></span>
1799 </a>
1800 </h1>
1801 </div>
1802 <div class="wpbc_ui_settings__text_row">
1803 <a class="wpbc_ui_settings__text_color__black" onclick="<?php
1804 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
1805 echo $onclick; ?>" href="<?php
1806 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
1807 echo $permalink; ?>"> <?php esc_html_e( 'Choose whether to use local translations or WordPress translations.', 'booking' ); ?>
1808 </a>
1809 </div>
1810 </div><?php
1811 }
1812
1813
1814 // ---------------------------------------------------------------------------------------------------------------------
1815
1816 /**
1817 * Show Settings = Advanced Settings = Panel
1818 *
1819 * @return void
1820 */
1821 function wpbc_ui_settings__panel__advanced_settings( $params = array() ){
1822
1823 ?><div class="wpbc_ui_settings__flex_container wpbc_ui_settings__panel__advanced_settings"><?php
1824
1825 wpbc_ui_settings__panel_start();
1826
1827 wpbc_ui_settings_panel__card__advanced_settings( $params );
1828 wpbc_ui_settings_panel__card__uninstall( $params );
1829 wpbc_ui_settings_panel__card__info_news( $params );
1830 //wpbc_ui_settings_panel__card__tools( $params );
1831
1832 wpbc_ui_settings__panel_end();
1833
1834 ?></div><?php
1835
1836 }
1837
1838
1839 /**
1840 * Show == Dashboard Card - Advanced ==
1841 *
1842 * @return void
1843 */
1844 function wpbc_ui_settings_panel__card__advanced_settings( $params = array() ){
1845
1846 $title = esc_attr__( 'Advanced Options', 'booking' );
1847
1848 if ( ! empty( $params['is_use_permalink'] ) ) {
1849 $permalink = wpbc_get_settings_url() . '&scroll_to_section=wpbc_general_settings_advanced_tab';
1850 $onclick = "";
1851 } else {
1852 $permalink = 'javascript:void(0);';
1853 $onclick = "javascript:wpbc_ui_settings__panel__click( '#wpbc_general_settings_advanced_tab a' ,'#wpbc_general_settings_advanced_metabox', '" . $title . "' );";
1854 }
1855
1856 ?><div class="wpbc_ui_settings__card wpbc_ui_settings__card_text_small wpbc_ui_settings__card_divider_right wpbc_ui_settings_panel__card__advanced_settings">
1857 <div class="wpbc_ui_settings__text_row">
1858 <i class="menu_icon icon-1x wpbc-bi-gear _icn_adjust 0wpbc-bi-translate"></i>
1859 <h1>
1860 <a onclick="<?php
1861 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
1862 echo $onclick; ?>" href="<?php
1863 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
1864 echo $permalink; ?>">
1865 <span class="0wpbc_ui_settings__text_color__black2"><?php echo esc_html( $title ); ?></span>
1866 </a>
1867 </h1>
1868 </div>
1869 <div class="wpbc_ui_settings__text_row">
1870 <a class="wpbc_ui_settings__text_color__black" onclick="<?php
1871 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
1872 echo $onclick; ?>" href="<?php
1873 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
1874 echo $permalink; ?>"> <?php esc_html_e( 'Configure loading of CSS/JavaScript files, set the number of simultaneous requests, and other advanced options.', 'booking' ); ?>
1875 </a>
1876 </div>
1877 </div><?php
1878 }
1879
1880 /**
1881 * Show == Dashboard Card - Advanced ==
1882 *
1883 * @return void
1884 */
1885 function wpbc_ui_settings_panel__card__uninstall( $params = array() ){
1886
1887 $title = esc_attr__( 'Uninstall / Deactivation', 'booking' );
1888
1889 if ( ! empty( $params['is_use_permalink'] ) ) {
1890 $permalink = wpbc_get_settings_url() . '&scroll_to_section=wpbc_general_settings_uninstall_tab';
1891 $onclick = "";
1892 } else {
1893 $permalink = 'javascript:void(0);';
1894 $onclick = "javascript:wpbc_ui_settings__panel__click( '#wpbc_general_settings_uninstall_tab a' ,'#wpbc_general_settings_uninstall_metabox', '" . $title . "' );";
1895 }
1896
1897 ?><div class="wpbc_ui_settings__card wpbc_ui_settings__card_text_small wpbc_ui_settings__card_divider_right wpbc_ui_settings_panel__card__uninstall">
1898 <div class="wpbc_ui_settings__text_row">
1899 <i class="menu_icon icon-1x wpbc-bi-trash _icn_adjust 0wpbc-bi-translate"></i>
1900 <h1>
1901 <a onclick="<?php
1902 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
1903 echo $onclick; ?>" href="<?php
1904 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
1905 echo $permalink; ?>">
1906 <span class="0wpbc_ui_settings__text_color__black2"><?php echo esc_html( $title ); ?></span>
1907 </a>
1908 </h1>
1909 </div>
1910 <div class="wpbc_ui_settings__text_row">
1911 <a class="wpbc_ui_settings__text_color__black" onclick="<?php
1912 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
1913 echo $onclick; ?>" href="<?php
1914 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
1915 echo $permalink; ?>"> <?php esc_html_e( 'Enable the option to fully erase booking data when the plugin is deactivated.', 'booking' ); ?>
1916 </a>
1917 </div>
1918 </div><?php
1919 }
1920
1921
1922 /**
1923 * Show == Dashboard Card - Advanced ==
1924 *
1925 * @return void
1926 */
1927 function wpbc_ui_settings_panel__card__info_news( $params = array() ){
1928
1929 $title = esc_attr__( 'Plugin Info & News', 'booking' );
1930
1931 if ( ! empty( $params['is_use_permalink'] ) ) {
1932 $permalink = wpbc_get_settings_url() . '&scroll_to_section=wpbc_general_settings_information_tab';
1933 $onclick = "";
1934 } else {
1935 $permalink = 'javascript:void(0);';
1936 $onclick = "javascript:wpbc_ui_settings__panel__click( '#wpbc_general_settings_information_tab a' ,'#wpbc_general_settings_information_metabox', '" . $title . "' );";
1937 }
1938
1939 ?><div class="wpbc_ui_settings__card wpbc_ui_settings__card_text_small wpbc_ui_settings__card_divider_right wpbc_ui_settings_panel__card__info_news">
1940 <div class="wpbc_ui_settings__text_row">
1941 <i class="menu_icon icon-1x wpbc_icn_newspaper -bi-newspaper _icn_news 0wpbc-bi-translate"></i>
1942 <h1>
1943 <a onclick="<?php
1944 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
1945 echo $onclick; ?>" href="<?php
1946 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
1947 echo $permalink; ?>">
1948 <span class="0wpbc_ui_settings__text_color__black2"><?php echo esc_html( $title ); ?></span>
1949 </a>
1950 </h1>
1951 </div>
1952 <div class="wpbc_ui_settings__text_row">
1953 <a class="wpbc_ui_settings__text_color__black" onclick="<?php
1954 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
1955 echo $onclick; ?>" href="<?php
1956 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
1957 echo $permalink; ?>"> <?php esc_html_e( 'Stay informed with the latest news and details about the plugin.', 'booking' ); ?>
1958 </a>
1959 </div>
1960 </div><?php
1961 }
1962
1963
1964 /**
1965 * Show == Dashboard Card - Advanced ==
1966 *
1967 * @return void
1968 */
1969 function wpbc_ui_settings_panel__card__tools( $params = array() ){
1970
1971 $title = esc_attr__( 'Tools', 'booking' );
1972
1973 if ( ! empty( $params['is_use_permalink'] ) ) {
1974 $permalink = wpbc_get_settings_url() . '&scroll_to_section=wpbc_general_settings_help_tab';
1975 $onclick = "";
1976 } else {
1977 $permalink = 'javascript:void(0);';
1978 $onclick = "javascript:wpbc_ui_settings__panel__click( '#wpbc_general_settings_help_tab a' ,'#wpbc_general_settings_help_metabox', '" . $title . "' );";
1979 }
1980
1981 ?><div class="wpbc_ui_settings__card wpbc_ui_settings__card_text_small wpbc_ui_settings__card_divider_right wpbc_ui_settings_panel__card__tools">
1982 <div class="wpbc_ui_settings__text_row">
1983 <i class="menu_icon icon-1x wpbc-bi-wrench-adjustable-circle 0wpbc-bi-translate"></i>
1984 <h1>
1985 <a onclick="<?php
1986 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
1987 echo $onclick; ?>" href="<?php
1988 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
1989 echo $permalink; ?>">
1990 <span class="0wpbc_ui_settings__text_color__black2"><?php echo esc_html( $title ); ?></span>
1991 </a>
1992 </h1>
1993 </div>
1994 <div class="wpbc_ui_settings__text_row">
1995 <a class="wpbc_ui_settings__text_color__black" onclick="<?php
1996 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
1997 echo $onclick; ?>" href="<?php
1998 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
1999 echo $permalink; ?>"> <?php esc_html_e( 'View system information and recover lost bookings or booking resources.', 'booking' ); ?>
2000 </a>
2001 </div>
2002 </div><?php
2003 }
2004
2005
2006
2007
2008
2009 // =====================================================================================================================
2010 // == Other Panels ==
2011 // =====================================================================================================================
2012
2013 // ---------------------------------------------------------------------------------------------------------------------
2014 // Panel == Plugin Version | & Buttons ==
2015 // ---------------------------------------------------------------------------------------------------------------------
2016
2017 /**
2018 * Show Settings Statistic | Agenda Panel
2019 *
2020 * @return void
2021 */
2022 function wpbc_ui_settings__panel__plugin_version(){
2023
2024 ?><div class="wpbc_ui_settings__flex_container"><?php
2025
2026 wpbc_ui_settings__panel_start();
2027
2028 wpbc_ui_settings_panel__card__setup_wizard();
2029
2030 wpbc_ui_settings_panel__card__transaltion_download();
2031
2032 wpbc_ui_settings_panel__card__transaltion_status();
2033
2034 wpbc_ui_settings_panel__card__version();
2035
2036 wpbc_ui_settings__panel_end();
2037
2038 ?></div><?php
2039 }
2040
2041 // ---------------------------------------------------------------------------------------------------------------------
2042 // Panel == Statistic | Agenda ==
2043 // ---------------------------------------------------------------------------------------------------------------------
2044
2045 /**
2046 * Show Settings Statistic | Agenda Panel
2047 *
2048 * @return void
2049 */
2050 function wpbc_ui_settings__panel__statistic(){
2051
2052 $is_panel_visible = wpbc_is_dismissed_panel_visible( 'wpbc_dashboard_section_statistic' ); // FixIn: 9.9.0.8.
2053
2054 if (! $is_panel_visible) {
2055 return;
2056 }
2057
2058 $statistic_cards_arr = ( $is_panel_visible ) ? wpbc_db_dashboard_get_bookings_count_arr() : array();
2059
2060
2061 ?><div id="wpbc_dashboard_section_statistic" class="wpbc_ui_settings__flex_container"><?php
2062
2063 wpbc_ui_settings__panel_start();
2064
2065 ?><div style="padding: 5px 8px 0 0;flex: 1 1 100%;margin-bottom: -100%;"><?php
2066 $is_panel_visible = wpbc_is_dismissed( 'wpbc_dashboard_section_statistic' ); // Close Panel
2067 ?></div><?php
2068
2069 //foreach ( array("all","new","pending","approved","booking_today","was_made_today","check_in_today","check_out_today","check_in_tomorrow","check_out_tomorrow") as $card_name ) {
2070 foreach ( array( "all", "new", "pending", "approved" ) as $card_name ) { // FixIn: 10.6.2.2.
2071 wpbc_ui_settings_panel__card__statistic( $card_name , $statistic_cards_arr );
2072 }
2073 wpbc_ui_settings__panel_end();
2074
2075 /* ?>
2076 <div class="wpbc_ui_settings__row">
2077 <div class="wpbc_ui_settings__panel"><?php
2078 foreach ( array("check_in_today","check_out_today","check_in_tomorrow","check_out_tomorrow") as $card_name ) {
2079 wpbc_ui_settings_panel__card__statistic( $card_name , $statistic_cards_arr );
2080 }
2081 ?></div>
2082 </div>
2083 <?php */ ?>
2084 </div>
2085 <?php
2086 }
2087
2088 function wpbc_ui_settings_panel__card__setup_wizard() {
2089 ?>
2090 <div class="wpbc_ui_settings__card wpbc_ui_settings__card_divider_right">
2091 <div class="wpbc_ui_settings__center wpbc_container wpbc_container_booking_form">
2092 <a class="wpbc_button_light button-primary wpbc_button_green tooltip_top" style="padding: 12px 24px;"
2093 title="<?php echo esc_attr( sprintf( __('We\'ll guide you through the steps to set up WP Booking Calendar on your site.','booking'), '<strong>WP Booking Calendar</strong>' ) ); ?>"
2094 href="<?php echo esc_url( wpbc_get_settings_url() . '&wpbc_setup_wizard=reset&_wpnonce=' . wp_create_nonce( 'wpbc_settings_url_nonce' ) ); ?>"><?php
2095 esc_html_e( 'Start Setup Wizard', 'booking' )
2096 ?></a>
2097 </div>
2098 </div>
2099 <?php
2100 }
2101
2102 function wpbc_ui_settings_panel__card__transaltion_download() {
2103 ?>
2104 <div class="wpbc_ui_settings__card wpbc_ui_settings__card_divider_right">
2105 <div class="wpbc_ui_settings__center">
2106 <a class="button tooltip_top"
2107 title="<?php
2108 /* translators: 1: ... */
2109 echo esc_attr( sprintf( __( 'Download translation PO files from %s and update the current translation version.', 'booking' ), 'wp.org / wpbookingcalendar.com' ) );?>"
2110 href="<?php echo esc_url( wpbc_get_settings_url() . '&system_info=show&_wpnonce='. wp_create_nonce( 'wpbc_settings_url_nonce' ) )
2111 .'&update_translations=1#wpbc_general_settings_system_info_metabox'; ?>"><?php
2112 esc_html_e( 'Update Translations', 'booking' )
2113 ?></a>
2114 </div>
2115 </div>
2116 <?php
2117 }
2118
2119 function wpbc_ui_settings_panel__card__transaltion_status() {
2120 ?>
2121 <div class="wpbc_ui_settings__card wpbc_ui_settings__card_divider_right">
2122 <div class="wpbc_ui_settings__center">
2123 <a class="button tooltip_top"
2124 title="<?php echo esc_attr( __( 'Show exist translations status', 'booking' ) );?>"
2125 href="<?php echo esc_url( wpbc_get_settings_url() . '&system_info=show&_wpnonce='. wp_create_nonce( 'wpbc_settings_url_nonce' ) )
2126 .'&show_translation_status=1#wpbc_general_settings_system_info_metabox'; ?>"><?php
2127 esc_html_e( 'Show translations status', 'booking' )
2128 ?></a>
2129 </div>
2130 </div>
2131 <?php
2132 }
2133
2134 /**
2135 * Show Version card in top panel
2136 *
2137 * @return void
2138 */
2139 function wpbc_ui_settings_panel__card__version( $params_btn = array() ){
2140
2141 $defaults = array(
2142 'is_show_wizard_button' => false,
2143 );
2144 $params_btn = wp_parse_args( $params_btn, $defaults );
2145
2146 // Version.
2147 $version_title = '';
2148
2149 if ( class_exists( 'wpdev_bk_personal' ) ) {
2150 $version_title .= wpbc_dashboard_info_get_version_type_readable();
2151 }
2152 if ( wpbc_is_this_demo() ) {
2153 $version_title .= ' (Demo)';
2154 } else {
2155 if ( 'free' != wpbc_dashboard_info_get_version_type() ) {
2156 $version_title .= ' (' . __( 'for', 'booking' ) . ' ' . trim( wpbc_dashboard_info_get_version_type_sites() ) . ')';
2157 }
2158 }
2159
2160 ?><div class="wpbc_ui_settings__card wpbc_ui_settings__card_divider_right" style="align-items: center;">
2161 <div class="wpbc_ui_settings__text_row" style="justify-content: center;margin-left:-1em;">
2162 <i class="menu_icon icon-1x wpbc_icn_numbers -bi-balloon-heart bi-activity"></i>
2163 <h1>
2164 <a class="" href="https://wpbookingcalendar.com/changelog/#<?php
2165 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
2166 echo wpbc_get_slug_format( trim( wpbc_dashboard_info_get_version_type_readable() . '_' . wpbc_dashboard_info_get_version_type_sites() . '_' . esc_attr( WP_BK_VERSION_NUM ) ) ); ?>">
2167 <span class="wpbc_ui_settings__text_color__black2"><?php echo esc_attr( WP_BK_VERSION_NUM ); ?></span>
2168 </a>
2169 </h1>
2170 </div>
2171 <div class="wpbc_ui_settings__text_row" style="justify-content: center;">
2172 <a class="wpbc_ui_settings__text_color__purple2"
2173 href="https://wpbookingcalendar.com/faq/difference-single-developer-multi-site/#<?php
2174 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
2175 echo wpbc_get_slug_format( trim( wpbc_dashboard_info_get_version_type_readable() . '_' . wpbc_dashboard_info_get_version_type_sites() . '_' . esc_attr( WP_BK_VERSION_NUM ) ) ); ?>"
2176 ><?php
2177 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
2178 echo $version_title
2179 ?></a>
2180 </div>
2181
2182 <?php if ( $params_btn['is_show_wizard_button'] ) { ?>
2183 <div class="wpbc_ui_settings__center wpbc_container wpbc_container_booking_form" style="flex: 1 1 auto;">
2184 <a class="wpbc_button_light button-primary wpbc_button_green tooltip_top" style="padding: 12px 24px;"
2185 title="<?php echo esc_attr( sprintf( __('We\'ll guide you through the steps to set up WP Booking Calendar on your site.','booking'), '<strong>WP Booking Calendar</strong>' ) ); ?>"
2186 href="<?php echo esc_url( wpbc_get_settings_url() . '&wpbc_setup_wizard=reset&_wpnonce=' . wp_create_nonce( 'wpbc_settings_url_nonce' ) ); ?>"><?php
2187 esc_html_e( 'Start Setup Wizard', 'booking' )
2188 ?></a>
2189 </div>
2190 <?php } ?>
2191 </div><?php
2192 }
2193
2194 /**
2195 * Show Version card in top panel
2196 *
2197 * @return void
2198 */
2199 function wpbc_ui_settings_panel__top_path__version(){
2200 // Version ---------------------------------------------------------------------------------------------------------
2201
2202 $version_title = '';
2203
2204 if ( class_exists( 'wpdev_bk_personal' ) ) {
2205 $version_title .= wpbc_dashboard_info_get_version_type_readable();
2206 }
2207 if ( wpbc_is_this_demo() ) {
2208 $version_title .= ' (Demo)';
2209 } else {
2210 if ( 'free' != wpbc_dashboard_info_get_version_type() ) {
2211 $version_title .= ' (' . __( 'for', 'booking' ) . ' ' . trim( wpbc_dashboard_info_get_version_type_sites() ) . ')';
2212 }
2213 }
2214
2215 ?><style type="text/css">
2216 .wpbc_settings_path_el .wpbc_icn_numbers::before{
2217 font-size: 12px;
2218 vertical-align: -.19em;
2219 }
2220 </style>
2221 <div class="wpbc_settings_path_el wpbc_ui_settings__flex_container" style="margin-left:auto;flex-flow: row nowrap;">
2222 <a class="" href="https://wpbookingcalendar.com/changelog/#<?php
2223 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
2224 echo wpbc_get_slug_format( trim( wpbc_dashboard_info_get_version_type_readable() . '_' . wpbc_dashboard_info_get_version_type_sites() . '_' . esc_attr( WP_BK_VERSION_NUM ) ) ); ?>">
2225 <span class="wpbc_ui_settings__text_color__green"><i class="menu_icon icon-1x wpbc_icn_numbers -bi-balloon-heart bi-activity"></i> <?php
2226 // echo esc_attr( WP_BK_VERSION_NUM );
2227 echo esc_attr( wpbc_get_wpbc_versions_numbers() );
2228 ?></span>
2229 </a>
2230 <a class="wpbc_ui_settings__text_color__purple2" style="margin-left:1em;"
2231 href="https://wpbookingcalendar.com/faq/difference-single-developer-multi-site/#<?php
2232 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
2233 echo wpbc_get_slug_format( trim( wpbc_dashboard_info_get_version_type_readable() . '_' . wpbc_dashboard_info_get_version_type_sites() . '_' . esc_attr( WP_BK_VERSION_NUM ) ) ); ?>"
2234 ><?php
2235 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
2236 echo $version_title
2237 ?></a>
2238 </div><?php
2239 }
2240
2241 /**
2242 * Show statistic card in top panel
2243 *
2244 * @param $card_name
2245 * @param $statistic_cards_arr
2246 *
2247 * @return void
2248 */
2249 function wpbc_ui_settings_panel__card__statistic( $card_name , $statistic_cards_arr ){
2250
2251 if ( ( empty( $statistic_cards_arr ) ) || ( ! isset( $statistic_cards_arr[ $card_name ] ) ) ) {
2252 return;
2253 }
2254
2255 $bk_admin_url = wpbc_get_bookings_url();
2256 $count_name = $card_name;
2257 $count_num = $statistic_cards_arr[ $card_name ];
2258
2259
2260 switch ( $count_name ) {
2261 case 'all':
2262
2263 ?><div class="wpbc_ui_settings__card wpbc_ui_settings__card_divider_right">
2264 <div class="wpbc_ui_settings__text_row">
2265 <i class="menu_icon icon-1x wpbc_icn_trending_up"></i>
2266 <h1>
2267 <a href="<?php echo esc_url( $bk_admin_url .'&wh_trash=0&wh_booking_date[0]=3&tab=vm_booking_listing&overwrite=1' ); ?>">
2268 <span class="wpbc_ui_settings__text_color__black2"><?php echo esc_html( $statistic_cards_arr[$count_name] ); ?></span>
2269 </a>
2270 </h1>
2271 </div>
2272 <div class="wpbc_ui_settings__text_row">
2273 <a class="wpbc_ui_settings__text_color__black2" style="font-weight: 600;"
2274 href="<?php echo esc_url( $bk_admin_url .'&wh_trash=0&wh_booking_date[0]=3&tab=vm_booking_listing&overwrite=1' ); ?>"> <?php esc_html_e( 'All Bookings', 'booking' ); ?>
2275 </a>
2276 </div>
2277 </div><?php
2278
2279 break;
2280
2281 case 'new':
2282
2283 ?><div class="wpbc_ui_settings__card wpbc_ui_settings__card_divider_right">
2284 <div class="wpbc_ui_settings__text_row">
2285 <i class="menu_icon icon-1x wpbc-bi-eye"></i>
2286 <h1>
2287 <a href="<?php echo esc_url( $bk_admin_url .'&wh_what_bookings=new&wh_trash=0&wh_booking_date[]=3&tab=vm_booking_listing&overwrite=1' ); ?>">
2288 <span class="wpbc_ui_settings__text_color__black2"><?php echo esc_html( $statistic_cards_arr[$count_name] ); ?></span>
2289 </a>
2290 </h1>
2291 </div>
2292 <div class="wpbc_ui_settings__text_row">
2293 <a class="wpbc_ui_settings__text_color__blue" href="<?php echo esc_url( $bk_admin_url .'&wh_what_bookings=new&wh_trash=0&wh_booking_date[]=3&tab=vm_booking_listing&overwrite=1' ); ?>"> <?php esc_html_e( 'New (unverified) booking(s)', 'booking' ); ?>
2294 </a>
2295 </div>
2296 </div><?php
2297
2298 break;
2299
2300 case 'pending':
2301
2302 ?><div class="wpbc_ui_settings__card wpbc_ui_settings__card_divider_right">
2303 <div class="wpbc_ui_settings__text_row">
2304 <i class="menu_icon icon-1x wpbc-bi-slash-circle 0wpbc_icn_block"></i>
2305 <h1>
2306 <a href="<?php echo esc_url( $bk_admin_url .'&wh_approved=0&wh_trash=0&wh_booking_date[]=3&tab=vm_booking_listing&overwrite=1' ); ?>">
2307 <span class="wpbc_ui_settings__text_color__black2"><?php echo esc_html( $statistic_cards_arr[$count_name] ); ?></span>
2308 </a>
2309 </h1>
2310 </div>
2311 <div class="wpbc_ui_settings__text_row">
2312 <a class="wpbc_ui_settings__text_color__orange" href="<?php echo esc_url( $bk_admin_url .'&wh_approved=0&wh_trash=0&wh_booking_date[]=3&tab=vm_booking_listing&overwrite=1' ); ?>">
2313 <?php esc_html_e( 'Pending booking(s)' ,'booking'); ?>
2314 </a>
2315 </div>
2316 </div><?php
2317
2318 break;
2319
2320 case 'approved':
2321
2322 ?><div class="wpbc_ui_settings__card wpbc_ui_settings__card_divider_right">
2323 <div class="wpbc_ui_settings__text_row">
2324 <i class="menu_icon icon-1x wpbc-bi-check2-circle 0check-circle 0wpbc_icn_check_circle_outline"></i>
2325 <h1>
2326 <a href="<?php echo esc_url( $bk_admin_url .'&wh_approved=1&wh_trash=0&wh_booking_date[]=3&tab=vm_booking_listing&overwrite=1' ); ?>">
2327 <span class="wpbc_ui_settings__text_color__black2"><?php echo esc_html( $statistic_cards_arr[$count_name] ); ?></span>
2328 </a>
2329 </h1>
2330 </div>
2331 <div class="wpbc_ui_settings__text_row">
2332 <a class="wpbc_ui_settings__text_color__green" href="<?php echo esc_url( $bk_admin_url .'&wh_approved=1&wh_trash=0&wh_booking_date[]=3&tab=vm_booking_listing&overwrite=1' ); ?>">
2333 <?php esc_html_e( 'Approved booking(s)' ,'booking'); ?>
2334 </a>
2335 </div>
2336 </div><?php
2337
2338 break;
2339
2340 case 'booking_today':
2341 ?><div class="wpbc_ui_settings__card wpbc_ui_settings__card_divider_right">
2342 <div class="wpbc_ui_settings__text_row">
2343 <i class="menu_icon icon-1x wpbc_icn_tune"></i>
2344 <h1>
2345 <a href="<?php echo esc_url( $bk_admin_url .'&wh_trash=0&wh_booking_date[]=1&tab=vm_booking_listing&overwrite=1' ); ?>">
2346 <span class="wpbc_ui_settings__text_color__black2"><?php echo esc_html( $statistic_cards_arr[$count_name] ); ?></span>
2347 </a>
2348 </h1>
2349 </div>
2350 <div class="wpbc_ui_settings__text_row">
2351 <a class="wpbc_ui_settings__text_color__green" href="<?php echo esc_url( $bk_admin_url .'&wh_trash=0&wh_booking_date[]=1&tab=vm_booking_listing&overwrite=1' ); ?>">
2352 <?php esc_html_e( 'Booking(s) for today' ,'booking');?>
2353 </a>
2354 </div>
2355 </div><?php
2356
2357 break;
2358
2359 case 'was_made_today':
2360
2361 ?><div class="wpbc_ui_settings__card wpbc_ui_settings__card_divider_right">
2362 <div class="wpbc_ui_settings__text_row">
2363 <i class="menu_icon icon-1x wpbc_icn_tune"></i>
2364 <h1>
2365 <a href="<?php echo esc_url( $bk_admin_url .'&wh_trash=0&wh_modification_date[]=1&wh_booking_date[]=3&tab=vm_booking_listing&overwrite=1' ); ?>">
2366 <span class="wpbc_ui_settings__text_color__black2"><?php echo esc_html( $statistic_cards_arr[$count_name] ); ?></span>
2367 </a>
2368 </h1>
2369 </div>
2370 <div class="wpbc_ui_settings__text_row">
2371 <a class="wpbc_ui_settings__text_color__red" href="<?php echo esc_url( $bk_admin_url . '&wh_trash=0&wh_modification_date[]=1&wh_booking_date[]=3&tab=vm_booking_listing&overwrite=1' ); ?>"> <?php esc_html_e( 'New booking(s) made today', 'booking' ); ?>
2372 </a>
2373 </div>
2374 </div><?php
2375
2376 break;
2377
2378 case 'check_in_today':
2379
2380 ?><div class="wpbc_ui_settings__card wpbc_ui_settings__card_divider_right">
2381 <div class="wpbc_ui_settings__text_row">
2382 <i class="menu_icon icon-1x wpbc_icn_tune"></i>
2383 <h1>
2384 <a href="<?php echo esc_url( $bk_admin_url .'&wh_trash=0&wh_booking_date[]=10&tab=vm_booking_listing&overwrite=1' ); ?>">
2385 <span class="wpbc_ui_settings__text_color__black2"><?php echo esc_html( $statistic_cards_arr[$count_name] ); ?></span>
2386 </a>
2387 </h1>
2388 </div>
2389 <div class="wpbc_ui_settings__text_row">
2390 <a class="wpbc_ui_settings__text_color__red2" href="<?php echo esc_url( $bk_admin_url .'&wh_trash=0&wh_booking_date[]=10&tab=vm_booking_listing&overwrite=1' ); ?>"> <?php esc_html_e( 'Check in - Today', 'booking' ); ?>
2391 </a>
2392 </div>
2393 </div><?php
2394
2395 break;
2396
2397 case 'check_out_today':
2398
2399 ?><div class="wpbc_ui_settings__card wpbc_ui_settings__card_divider_right">
2400 <div class="wpbc_ui_settings__text_row">
2401 <i class="menu_icon icon-1x wpbc_icn_tune"></i>
2402 <h1>
2403 <a href="<?php echo esc_url( $bk_admin_url .'&wh_trash=0&wh_booking_date[]=11&tab=vm_booking_listing&overwrite=1' ); ?>">
2404 <span class="wpbc_ui_settings__text_color__black2"><?php echo esc_html( $statistic_cards_arr[$count_name] ); ?></span>
2405 </a>
2406 </h1>
2407 </div>
2408 <div class="wpbc_ui_settings__text_row">
2409 <a class="wpbc_ui_settings__text_color__blue2" href="<?php echo esc_url( $bk_admin_url .'&wh_trash=0&wh_booking_date[]=11&tab=vm_booking_listing&overwrite=1' ); ?>"> <?php esc_html_e( 'Check out - Today', 'booking' ); ?>
2410 </a>
2411 </div>
2412 </div><?php
2413
2414 break;
2415
2416 case 'check_in_tomorrow':
2417
2418 ?><div class="wpbc_ui_settings__card wpbc_ui_settings__card_divider_right">
2419 <div class="wpbc_ui_settings__text_row">
2420 <i class="menu_icon icon-1x wpbc_icn_tune"></i>
2421 <h1>
2422 <a href="<?php echo esc_url( $bk_admin_url .'&wh_trash=0&wh_booking_date[]=7&tab=vm_booking_listing&overwrite=1' ); ?>">
2423 <span class="wpbc_ui_settings__text_color__black2"><?php echo esc_html( $statistic_cards_arr[$count_name] ); ?></span>
2424 </a>
2425 </h1>
2426 </div>
2427 <div class="wpbc_ui_settings__text_row">
2428 <a class="wpbc_ui_settings__text_color__orange2" href="<?php echo esc_url( $bk_admin_url .'&wh_trash=0&wh_booking_date[]=7&tab=vm_booking_listing&overwrite=1' ); ?>"> <?php esc_html_e( 'Check in - Tomorrow', 'booking' ); ?>
2429 </a>
2430 </div>
2431 </div><?php
2432
2433 break;
2434
2435 case 'check_out_tomorrow':
2436
2437 ?><div class="wpbc_ui_settings__card wpbc_ui_settings__card_divider_right">
2438 <div class="wpbc_ui_settings__text_row">
2439 <i class="menu_icon icon-1x wpbc_icn_tune"></i>
2440 <h1>
2441 <a href="<?php echo esc_url( $bk_admin_url .'&wh_trash=0&wh_booking_date[]=8&tab=vm_booking_listing&overwrite=1' ); ?>">
2442 <span class="wpbc_ui_settings__text_color__black2"><?php echo esc_html( $statistic_cards_arr[$count_name] ); ?></span>
2443 </a>
2444 </h1>
2445 </div>
2446 <div class="wpbc_ui_settings__text_row">
2447 <a class="wpbc_ui_settings__text_color__green2" href="<?php echo esc_url( $bk_admin_url .'&wh_trash=0&wh_booking_date[]=8&tab=vm_booking_listing&overwrite=1' ); ?>"> <?php esc_html_e( 'Check out - Tomorrow', 'booking' ); ?>
2448 </a>
2449 </div>
2450 </div><?php
2451
2452 break;
2453 }
2454
2455 }
2456