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