PluginProbe
Booking Calendar / 11.8.3
Booking Calendar v11.8.3
11.8.3 11.8.2 11.8.1 11.8 11.7 11.6.1 11.6 11.5 11.4.3 11.4.2 11.4.1 11.4 11.3 11.2.1 11.2 11.1 11.0 10.15.7 10.15.6 10.1.3 10.10 10.10.1 10.10.2 10.11 10.11.2 All 203 releases
← All changes | core/wpbc_welcome.php +66 -76 10.10.211.8.3 View file →
@@ -1,4 +1,4 @@
1 1 <?php
2 2 /**
3 3 * @version 1.0
4 4 * @package Booking Calendar
@@ -16,17 +16,25 @@
16 16
17 17
18 18 // <editor-fold defaultstate="collapsed" desc=" == Welcome Content 2 == 2024-11-06 " >
19 19
20 -function wpbc_welcome_panel() {
21 -
22 - if ( ! wpbc_is_user_can_access_wizard_page() ){
23 - return;
24 - }
25 -
26 - ?><script type="text/javascript">
27 - jQuery( document ).ready( function (){
28 - setTimeout( function (){
20 +function wpbc_welcome_panel() {
21 +
22 + if ( ! wpbc_is_user_can_access_wizard_page() ){
23 + return;
24 + }
25 +
26 + $is_live_demo = wpbc_is_this_demo();
27 +
28 + ?><script type="text/javascript">
29 + jQuery( document ).ready( function (){
30 + jQuery( document ).on( 'click.wpbcWelcomePanelDemo', '[data-wpbc-welcome-panel-demo-dismiss]', function () {
31 + jQuery( '#wpbc_welcome_panel__version2' ).slideUp( 500 );
32 + } );
33 + setTimeout( function (){
34 + if ( jQuery( '[data-wpbc-booking-pages-open-dialog]' ).length ) {
35 + return;
36 + }
29 37 if ( jQuery( '#wpbc_welcome_panel__version2' ).is( ':visible' ) ){
30 38 jQuery( '#wpbc_welcome_panel__version2' ).slideUp( 1000 );
31 39 }
32 40 }, 60000 );
@@ -31,27 +39,45 @@
31 39 }
32 40 }, 60000 );
33 41 } );
34 42 </script>
35 - <div id="wpbc_welcome_panel__version2" style="display:none;">
36 - <?php
37 - $is_panel_visible = wpbc_is_dismissed( 'wpbc_welcome_panel__version2', array(
38 - 'title' => '<i class="menu_icon icon-1x wpbc_icn_close"></i> ',
39 - 'hint' => __( 'Dismiss', 'booking' ),
40 - 'class' => 'wpbc_panel_get_started_dismiss0',
41 - 'css' => 'text-decoration: none;font-weight: 600;float:right;background: #fff;border-radius: 7px;z-index: 1;position: relative;margin: 16px 15px 0 -32px;'
42 - ));
43 - if ( $is_panel_visible ) {
44 - wpbc_welcome_panel__version2__content();
45 - }
43 + <div id="wpbc_welcome_panel__version2" style="display:<?php echo esc_attr( $is_live_demo ? 'block' : 'none' ); ?>;">
44 + <?php
45 + if ( $is_live_demo ) {
46 + $is_panel_visible = true;
47 + ?>
48 + <button
49 + type="button"
50 + class="wpbc_panel_get_started_dismiss0 wpbc_welcome_panel__dismiss"
51 + data-wpbc-welcome-panel-demo-dismiss="1"
52 + aria-label="<?php esc_attr_e( 'Dismiss', 'booking' ); ?>"
53 + title="<?php esc_attr_e( 'Dismiss', 'booking' ); ?>"
54 + >
55 + <i class="menu_icon icon-1x wpbc_icn_close" aria-hidden="true"></i>
56 + </button>
57 + <?php
58 + } else {
59 + $is_panel_visible = wpbc_is_dismissed(
60 + 'wpbc_welcome_panel__version2',
61 + array(
62 + 'title' => '<i class="menu_icon icon-1x wpbc_icn_close" aria-hidden="true"></i><span class="screen-reader-text">' . esc_html__( 'Dismiss', 'booking' ) . '</span>',
63 + 'hint' => __( 'Dismiss', 'booking' ),
64 + 'class' => 'wpbc_panel_get_started_dismiss0 wpbc_welcome_panel__dismiss',
65 + 'css' => '',
66 + )
67 + );
68 + }
69 + if ( $is_panel_visible ) {
70 + wpbc_welcome_panel__version2__content();
71 + }
46 72 ?>
47 73 </div><?php
48 74 }
49 75
50 -function wpbc_welcome_panel__version2__content() {
76 +function wpbc_welcome_panel__version2__content() {
77 +
78 + ?><div class="wpbc_welcome_panel"><?php
51 79
52 - ?><div class="wpbc_welcome_panel" style="margin: 0 0 20px;"><?php
53 -
54 80 wpbc_ui_settings__panel__welcome();
55 81
56 82 ?></div><?php
57 83 }
@@ -65,82 +91,46 @@
65 91 * Show Settings Statistic | Agenda Panel
66 92 *
67 93 * @return void
68 94 */
69 -function wpbc_ui_settings__panel__welcome(){
95 +function wpbc_ui_settings__panel__welcome(){
96 +
97 + ?><div class="wpbc_ui_settings__flex_container wpbc_ui_settings__panel__welcome"><?php
70 98
99 + wpbc_ui_settings__panel_start();
71 100
72 - ?><style type="text/css">
73 - .wpbc_ui_settings__panel__welcome .wpbc_ajx_toolbar.wpbc_no_borders{
74 - margin-top: 5px !important;
75 - }
76 - .wpbc_ui_settings__panel__welcome .wpbc_ui_settings__card_text_small h1{
77 - line-height: 1.2;
78 - margin: 0;
79 - }
80 - .wpbc_ui_settings__panel__welcome .about-description {
81 - flex: 100%;
82 - margin: 0;
83 - color: #8a8a8a;
84 - font-size: 20px;
85 - font-weight: 600;
86 - border-bottom: 1px solid #eee;
87 - padding: 10px 20px;
88 - }
89 - .wpbc_ui_settings__panel__welcome .wpbc_ajx_toolbar .ui_container.ui_container_small .ui_group .ui_element .wpbc_ui_button {
90 - white-space: wrap;
91 - flex-flow: row nowrap;
92 - height: auto;
93 - padding: 5px 15px;
94 - line-height: 1.74;
95 - }
96 - .wpbc_ui_settings__panel__welcome .wpbc_ui_settings__panel h1 {
97 - margin: 0;
98 - }
99 - </style><?php
101 + wpbc_ui_settings__panel__welcome__header();
100 102
101 - ?><div class="wpbc_ui_settings__flex_container wpbc_ui_settings__panel__welcome"><?php
102 103
103 - wpbc_ui_settings__panel_start();
104 + wpbc_ui_settings_panel__card__open_test_pages_popup();
104 105
105 - wpbc_ui_settings__panel__welcome__header();
106 -
107 106 wpbc_ui_settings_panel__card__setup_wizard();
108 107
109 108 wpbc_ui_settings_panel__card__version();
110 109
111 - wpbc_ui_settings_panel__card__welcome__have_questions();
112 -
113 - //Info: If needs to show "Shortcode Popup Dialog" and create new Pages, please uncomment all rows marked with: // FixIn: 10.6.6.2.
114 - // wpbc_ui_settings_panel__card__publish_into_new( array() ); // FixIn: 10.6.6.2.
115 -
116 110 ?><div style="flex:100%;border-bottom: 1px solid #eeeff1;"></div><?php // Divider
117 111
118 - if ( ! empty( wpbc_stp_wiz__is_exist_published_page_with_booking_form() ) ) {
119 - wpbc_ui_settings_panel__card__publish_into_exist( array() );
120 - }
121 -
122 112 wpbc_ui_settings_panel__card__integreate_into_new();
123 113 wpbc_ui_settings_panel__card__shortcodes_help();
114 + wpbc_ui_settings_panel__card__welcome__have_questions();
124 115
125 116 //wpbc_ui_settings_panel__card__welcome__next_steps();
117 + wpbc_ui_settings__panel_end();
126 118
127 -
128 -
129 -
130 -
131 - wpbc_ui_settings__panel_end();
132 -
133 119 ?></div><?php
134 120 }
135 121
136 122
137 - function wpbc_ui_settings__panel__welcome__header() {
123 + function wpbc_ui_settings__panel__welcome__header() {
124 +
125 + ?><div class="wpbc_ui_settings__panel__welcome_header">
126 + <p class="about-description"><?php esc_html_e( 'We&#8217;ve assembled some links to get you started:', 'booking' ); ?></p>
127 + </div><?php
128 + }
138 129
139 - ?><p class="about-description"><?php esc_html_e( 'We&#8217;ve assembled some links to get you started:', 'booking' ); ?></p><?php
140 - }
141 130
142 131
132 +
143 133 /**
144 134 * Show == Dashboard Card - integreate into new ==
145 135 *
146 136 * @return void
@@ -268,15 +258,15 @@
268 258
269 259 <li><div class="welcome-icon"><?php
270 260 /* translators: 1: ... */
271 261 echo esc_html( sprintf( __( 'Check %1$sBooking Listing%2$s page for new bookings.', 'booking' )
272 - , '<a href="' . esc_url( wpbc_get_bookings_url(true, false) . '&view_mode=vm_listing' ) . '">', '</a>'
262 + , '<a href="' . esc_url( wpbc_get_bookings_url(true, false) . '&tab=vm_booking_listing' ) . '">', '</a>'
273 263 ) );
274 264 ?></div></li>
275 265 <li><div class="welcome-icon"><?php
276 266 /* translators: 1: ... */
277 267 echo esc_html( sprintf( __( 'Configure %1$sForm Fields%2$s, %3$sEmails%4$s and other %5$sSettings%6$s.', 'booking' )
278 - , '<a href="' . esc_url( wpbc_get_settings_url(true, false) . '&tab=form' ) . '">', '</a>'
268 + , '<a href="' . esc_url( wpbc_get_settings_url(true, false) . '&tab=builder_booking_form' ) . '">', '</a>'
279 269 , '<a href="' . esc_url( wpbc_get_settings_url(true, false) . '&tab=email' ) . '">', '</a>'
280 270 , '<a href="' . esc_url( wpbc_get_settings_url(true, false) ) . '">', '</a>'
281 271 ) );
282 272 ?></div></li>