PluginProbe
Booking Calendar / 11.4.2
Booking Calendar v11.4.2
11.8.4 11.8.3 11.8.2 11.8.1 11.8 11.7 11.6.1 11.6 11.5 11.4.3 11.4.2 11.4.1 11.4 11.3 11.2.1 11.2 11.1 11.0 10.15.7 10.15.6 10.1.3 10.10 10.10.1 10.10.2 10.11 All 204 releases
booking / includes / page-setup / templates / 01.welcome__tpl.php

01.welcome__tpl.php in Booking Calendar 11.4.2, at includes/page-setup/templates/01.welcome__tpl.php

129 lines 6.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php /**
2 * @version 1.0
3 * @description Template for Setup pages
4 * @category Setup Templates
5 * @author wpdevelop
6 *
7 * @web-site http://oplugins.com/
8 * @email info@oplugins.com
9 *
10 * @modified 2024-09-10
11 */
12
13 if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
14
15
16 // -------------------------------------------------------------------------------------------------------------
17 // == Main - General Info ==
18 // -------------------------------------------------------------------------------------------------------------
19 /**
20 * Template - General Info - Step 01
21 *
22 * Help Tips:
23 *
24 * <script type="text/html" id="tmpl-template_name_a">
25 * Escaped: {{data.test_key}}
26 * HTML: {{{data.test_key}}}
27 * JS: <# if (true) { alert( 1 ); } #>
28 * </script>
29 *
30 * var template__var = wp.template( 'template_name_a' );
31 *
32 * jQuery( '.content' ).html( template__var( { 'test_key' => '<strong>Data</strong>' } ) );
33 *
34 * @return void
35 */
36 function wpbc_stp_wiz__template__welcome(){
37
38 ?><script type="text/html" id="tmpl-wpbc_stp_wiz__template__welcome">
39 <div class="wpbc_page_main_section wpbc_container wpbc_form wpbc_container_booking_form">
40 <div class="wpbc__form__div wpbc_swp_section wpbc_swp_section__welcome">
41 <div class="wpbc__row">
42 <div class="wpbc__field">
43 <h1 class="wpbc_swp_section_header"><?php
44 /* translators: 1: ... */
45 echo wp_kses_post( sprintf( __( 'Welcome to %s!', 'booking' ), 'WP Booking Calendar' ) ); ?></h1>
46 </div>
47 </div>
48 <div class="wpbc__row">
49 <div class="wpbc__field">
50 <p style="font-size:15px;line-height: 2.2;"><?php echo wp_kses_post( sprintf( __( 'We\'ll guide you through the steps to set up WP Booking Calendar on your site.','booking'), '<strong>WP Booking Calendar</strong>' ) ); ?></p>
51
52 <div class="wpbc-settings-notice notice-warning notice-helpful-info0" style="max-width: Min(450px, 100%);margin: auto;padding: 4px 15px 7px 20px;font-size: 14px;line-height: 28px;margin-bottom: 25px; border-left-color: #e2892b;margin: 20px 20px 5px 2px;">
53 <?php
54 echo '<span style="margin: 0 5px 0 0;color: #e2892b;" ><i class="menu_icon icon-1x wpbc_icn_warning_amber"></i></span>';
55 echo '<strong>' . esc_html__( 'Important!', 'booking' ) . '</strong> <br/>';
56 // echo '<strong>' . esc_html__('Important' ,'booking') . ' ' . esc_html__('Note' ,'booking') . '!</strong><br> ';
57 /* translators: 1: ... */
58 echo sprintf( __( 'If you have previously configured the Booking Calendar, this setup will override some of your settings. In this case, you can %1$sskip setup%2$s.', 'booking' ), // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
59 '<a href="javascript:void(0)" onclick=" wpbc_ajx__setup_wizard_page__send_request_with_params( { \'do_action\': \'skip_wizard\' } ); ">'
60 , '</a>' );
61 echo ' ';
62 ?>
63 </div>
64 </div>
65 </div>
66 <div class="wpbc__spacer" style="width:100%;clear:both;height:20px;margin-bottom:20px;border-bottom:1px solid #ccc;"></div>
67
68 <#
69 var currentStep = data.current_step || '';
70 var currentStepData = ( data.steps && data.steps[ currentStep ] ) ? data.steps[ currentStep ] : {};
71 var nextStep = currentStepData.next || '';
72 var doAction = currentStepData.do_action || 'none';
73 #>
74 <div class="wpbc__row wpbc_setup_wizard_page__section_footer">
75 <?php /** ?>
76 <div class="wpbc__field wpbc_container wpbc_container_booking_form">
77 <a class="wpbc_button_light" style=""
78 id="btn__toolbar__buttons_prior"
79 onclick=" wpbc_ajx__setup_wizard_page__send_request_with_params( { 'do_action': 'skip_wizard' } ); "
80 title="<?php esc_attr_e('Exist and skip the Setup Wizard','booking'); ?>"
81 ><i class="menu_icon icon-1x wpbc_icn_close"></i><span>&nbsp;&nbsp;&nbsp;<?php esc_html_e('Skip the Setup Wizard','booking'); ?></span></a>
82 </div>
83 <?php /**/ ?>
84 <div class="wpbc__field wpbc_container wpbc_container_booking_form">
85 <a style="margin: 0 auto;"
86 class="wpbc_button_light button-primary"
87 id="btn__toolbar__buttons_next"
88 onclick=" wpbc_ajx__setup_wizard_page__send_request_with_params( {
89 'current_step': '{{nextStep}}',
90 'do_action': '{{doAction}}',
91 'ui_clicked_element_id': 'btn__toolbar__buttons_next'
92 } );
93 wpbc_button_enable_loading_icon( this );
94 wpbc_admin_show_message_processing( '' );" ><span><?php esc_html_e('Let\'s Get Started','booking'); ?>&nbsp;&nbsp;&nbsp;</span><i class="menu_icon icon-1x wpbc_icn_arrow_forward_ios"></i></a>
95 </div>
96 </div>
97 <?php /**/ ?>
98 <div class="wpbc__row">
99 <div class="wpbc__field">
100 <p class="wpbc_exit_link_small">
101 <a href="javascript:void(0)"
102 onclick=" wpbc_ajx__setup_wizard_page__send_request_with_params( { 'do_action': 'skip_wizard' } ); "
103 title="<?php esc_attr_e('Exit and skip the setup wizard','booking'); ?>"
104 ><?php
105 esc_html_e('Exit and skip the setup wizard','booking');
106 ?></a>
107 <?php /* ?>
108 <a href="javascript:void(0)" class="wpbc_button_danger" style="margin: 25px 0 0; font-size: 12px;"
109 onclick=" wpbc_ajx__setup_wizard_page__send_request_with_params( { 'do_action': 'make_reset' } ); "
110 title="<?php esc_attr_e('Reset the Setup Wizard and start from beginning','booking'); ?>"
111 ><?php
112 esc_html_e('Reset Wizard','booking');
113 ?></a>
114 <?php */ ?>
115 </p>
116 </div>
117 </div>
118 <?php /**/ ?>
119 </div>
120 <style type="text/css">
121 .wpbc_ajx_page__container .wpbc_ajx_page__section_footer:not(.wpbc__row){ display: none;}
122 .wpbc_setup_wizard_page_container .wpbc_steps_for_timeline_container {display: none;}
123 .wpbc_setup_wizard_page_container .wpbc_swp_section__welcome {max-width: 420px}
124 </style>
125 </div>
126 </script><?php
127 }
128
129