PluginProbe
Booking Calendar / 11.8.4
Booking Calendar v11.8.4
11.8.4 11.8.3 11.8.2 11.8.1 11.8 11.7 11.6.1 11.6 11.5 11.4.3 11.4.2 11.4.1 11.4 11.3 11.2.1 11.2 11.1 11.0 10.15.7 10.15.6 10.1.3 10.10 10.10.1 10.10.2 10.11 All 204 releases
← All changes | includes/_toolbar_ui/ui__settings_panel.php +76 -35 11.4.211.8.4 View file →
@@ -430,9 +430,9 @@
430 430 <a class="wpbc_ui_settings__text_color__black" onclick="<?php
431 431 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
432 432 echo $onclick; ?>" href="<?php
433 433 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
434 - echo $permalink; ?>"> <?php esc_html_e( 'Choose how users can select a single day, separate multiple days, or an unrestricted date range with two mouse clicks.', 'booking' ); ?>
434 + echo $permalink; ?>"> <?php esc_html_e( 'Choose how users can select a single day, separate multiple days, or an unrestricted date range with two mouse clicks.', 'booking' ); ?>
435 435 </a>
436 436 </div>
437 437 </div><?php
438 438
@@ -539,9 +539,9 @@
539 539 * @return void
540 540 */
541 541 function wpbc_ui_settings_panel__card__general_availability( $params = array() ){
542 542
543 - $title = esc_attr__( 'General Availability', 'booking' );
543 + $title = esc_attr__( 'Schedule & Rules', 'booking' );
544 544
545 545 $permalink = function_exists( 'wpbc_get_general_availability_url' ) ? wpbc_get_general_availability_url() : admin_url( 'admin.php?page=wpbc-availability&tab=general_availability' );
546 546 $onclick = "";
547 547
@@ -616,29 +616,29 @@
616 616 function wpbc_ui_settings__panel__form( $params = array() ){
617 617
618 618 ?><div class="wpbc_ui_settings__flex_container wpbc_ui_settings__panel__form"><?php
619 619
620 - wpbc_ui_settings__panel_start();
621 -
622 - wpbc_ui_settings_panel__card__bfb( $params );
623 -
624 - wpbc_ui_settings__panel_end();
625 -
626 - ?></div><?php
627 -
628 -}
629 -
630 - /**
631 - * Show == Dashboard Card - Booking Form Builder ==
632 - *
633 - * @return void
634 - */
620 + wpbc_ui_settings__panel_start();
621 +
622 + wpbc_ui_settings_panel__card__bfb( $params );
623 +
624 + wpbc_ui_settings__panel_end();
625 +
626 + ?></div><?php
627 +
628 +}
629 +
630 + /**
631 + * Show == Dashboard Card - Booking Form Builder ==
632 + *
633 + * @return void
634 + */
635 635 function wpbc_ui_settings_panel__card__bfb( $params = array() ){
636 636
637 637 $onclick = '';// ' onclick="' . "javascript:wpbc_navigation_click_show_section(this,'#wpbc_general_settings_calendar_metabox' );" . '" ';
638 638 $url = ' href="' . esc_url( wpbc_get_settings_url() . '&tab=builder_booking_form' ) . '" ';
639 639
640 - ?><div class="wpbc_ui_settings__card wpbc_ui_settings__card_text_small wpbc_ui_settings__card_divider_right wpbc_ui_settings_panel__card__bfb">
640 + ?><div class="wpbc_ui_settings__card wpbc_ui_settings__card_text_small wpbc_ui_settings__card_divider_right wpbc_ui_settings_panel__card__bfb">
641 641 <div class="wpbc_ui_settings__text_row">
642 642 <i class="menu_icon icon-1x wpbc_icn_dashboard"></i>
643 643 <h1>
644 644 <a onclick="<?php
@@ -657,14 +657,14 @@
657 657 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
658 658 echo $url; ?>> <?php esc_html_e( 'Add, remove, or customize fields in your booking form.', 'booking' ); ?>
659 659 </a>
660 660 </div>
661 - </div><?php
662 -
663 - }
664 -
665 -// ---------------------------------------------------------------------------------------------------------------------
661 + </div><?php
666 662
663 + }
664 +
665 +// ---------------------------------------------------------------------------------------------------------------------
666 +
667 667 /**
668 668 * Show Settings = Booking Confirmation = Panel
669 669 *
670 670 * @return void
@@ -1918,15 +1918,20 @@
1918 1918 </div>
1919 1919 <?php
1920 1920 }
1921 1921
1922 - function wpbc_ui_settings_panel__card__setup_wizard() {
1923 - ?>
1924 - <div class="wpbc_ui_settings__card wpbc_ui_settings__card_divider_right">
1925 - <div class="wpbc_ui_settings__center wpbc_container wpbc_container_booking_form">
1926 - <a class="wpbc_button_light button-primary wpbc_button_green tooltip_top" style="padding: 12px 24px;"
1927 - 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>' ) ); ?>"
1928 - href="<?php echo esc_url( wpbc_get_settings_url() . '&wpbc_setup_wizard=reset&_wpnonce=' . wp_create_nonce( 'wpbc_settings_url_nonce' ) ); ?>"><?php
1922 + /**
1923 + * Render the administration card that opens the Setup Wizard.
1924 + *
1925 + * @return void
1926 + */
1927 + function wpbc_ui_settings_panel__card__setup_wizard() {
1928 + ?>
1929 + <div class="wpbc_ui_settings__card wpbc_ui_settings__card_divider_right">
1930 + <div class="wpbc_ui_settings__center">
1931 + <a class="wpbc_admin_button wpbc_admin_button--success tooltip_top"
1932 + 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>' ) ); ?>"
1933 + href="<?php echo esc_url( wpbc_get_settings_url() . '&wpbc_setup_wizard=reset&_wpnonce=' . wp_create_nonce( 'wpbc_settings_url_nonce' ) ); ?>"><?php
1929 1934 esc_html_e( 'Start Setup Wizard', 'booking' )
1930 1935 ?></a>
1931 1936 </div>
1932 1937 </div>
@@ -1932,8 +1937,42 @@
1932 1937 </div>
1933 1938 <?php
1934 1939 }
1935 1940
1941 +
1942 + /**
1943 + * Show the starter-page testing action.
1944 + *
1945 + * The manual starter-page action is intentionally available only on a site
1946 + * retained as a genuine first installation with at least one currently valid
1947 + * starter page. It reopens the dialog without changing its automatic prompt
1948 + * state and never creates or repairs a missing page.
1949 + *
1950 + * @return void
1951 + */
1952 + function wpbc_ui_settings_panel__card__open_test_pages_popup() {
1953 +
1954 + $can_open_booking_pages = class_exists( 'WPBC_Setup_Wizard_First_Run_Popup' ) && WPBC_Setup_Wizard_First_Run_Popup::can_manually_open_booking_pages_dialog();
1955 +
1956 + if ( $can_open_booking_pages ) :
1957 + ?>
1958 + <div class="wpbc_ui_settings__card wpbc_ui_settings__card_divider_right">
1959 + <div class="wpbc_ui_settings__center">
1960 + <button
1961 + type="button"
1962 + class="wpbc_admin_button wpbc_admin_button--primary"
1963 + data-wpbc-booking-pages-open-dialog="1"
1964 + >
1965 + <?php
1966 + esc_html_e( 'Test your booking pages', 'booking' ); ?>
1967 + </button>
1968 + </div>
1969 + </div>
1970 + <?php
1971 + endif;
1972 +
1973 + }
1974 +
1936 1975 function wpbc_ui_settings_panel__card__transaltion_download() {
1937 1976 ?>
1938 1977 <div class="wpbc_ui_settings__card wpbc_ui_settings__card_divider_right">
1939 1978 <div class="wpbc_ui_settings__center">
@@ -1967,9 +2006,11 @@
1967 2006
1968 2007 /**
1969 2008 * Show Version card in top panel
1970 2009 *
1971 - * @return void
2010 + * @param array $params_btn Optional version-card presentation parameters.
2011 + *
2012 + * @return void
1972 2013 */
1973 2014 function wpbc_ui_settings_panel__card__version( $params_btn = array() ){
1974 2015
1975 2016 $defaults = array(
@@ -2012,12 +2053,12 @@
2012 2053 echo $version_title
2013 2054 ?></a>
2014 2055 </div>
2015 2056
2016 - <?php if ( $params_btn['is_show_wizard_button'] ) { ?>
2017 - <div class="wpbc_ui_settings__center wpbc_container wpbc_container_booking_form" style="flex: 1 1 auto;">
2018 - <a class="wpbc_button_light button-primary wpbc_button_green tooltip_top" style="padding: 12px 24px;"
2019 - 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>' ) ); ?>"
2057 + <?php if ( $params_btn['is_show_wizard_button'] ) { ?>
2058 + <div class="wpbc_ui_settings__center" style="flex: 1 1 auto;">
2059 + <a class="wpbc_admin_button wpbc_admin_button--success tooltip_top"
2060 + 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>' ) ); ?>"
2020 2061 href="<?php echo esc_url( wpbc_get_settings_url() . '&wpbc_setup_wizard=reset&_wpnonce=' . wp_create_nonce( 'wpbc_settings_url_nonce' ) ); ?>"><?php
2021 2062 esc_html_e( 'Start Setup Wizard', 'booking' )
2022 2063 ?></a>
2023 2064 </div>