PluginProbe ʕ •ᴥ•ʔ
Booking for Appointments and Events Calendar – Amelia / 1.2.20
Booking for Appointments and Events Calendar – Amelia v1.2.20
2.4.4 2.4.3 2.4.2 2.4.1 2.4 trunk 1.2.1 1.2.10 1.2.11 1.2.12 1.2.13 1.2.14 1.2.15 1.2.16 1.2.17 1.2.18 1.2.19 1.2.2 1.2.20 1.2.21 1.2.22 1.2.23 1.2.24 1.2.25 1.2.26 1.2.27 1.2.28 1.2.29 1.2.3 1.2.30 1.2.31 1.2.32 1.2.33 1.2.34 1.2.35 1.2.36 1.2.37 1.2.38 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9 2.0 2.0.1 2.0.2 2.1 2.1.1 2.1.2 2.1.3 2.2 2.2.1 2.3
ameliabooking / view / frontend / step-booking.inc.php
ameliabooking / view / frontend Last commit date
booking.inc.php 4 years ago catalog-booking.inc.php 2 years ago catalog.inc.php 4 years ago category.inc.php 4 years ago events-list-booking.inc.php 2 years ago events.inc.php 2 years ago service.inc.php 4 years ago step-booking.inc.php 2 years ago
step-booking.inc.php
56 lines
1 <?php
2 /**
3 * @copyright © TMS-Plugins. All rights reserved.
4 * @licence See LICENCE.md for license details.
5 */
6
7 ?>
8
9 <script>
10 if (typeof hasAmeliaEntitiesApiCall === 'undefined' && '<?php echo esc_js($params['trigger']); ?>' === '') {
11 var hasAmeliaEntitiesApiCall = true;
12 }
13 var ameliaShortcodeData = (typeof ameliaShortcodeData === 'undefined') ? [] : ameliaShortcodeData;
14 ameliaShortcodeData.push(
15 {
16 'hasApiCall': (typeof hasAmeliaEntitiesApiCall !== 'undefined') && hasAmeliaEntitiesApiCall,
17 'trigger': '<?php echo esc_js($params['trigger']); ?>',
18 'trigger_type': '<?php echo esc_js($params['trigger_type']); ?>',
19 'triggered_form': 'sbsNew',
20 'in_dialog': '<?php echo esc_js($params['in_dialog']); ?>',
21 'show': '<?php echo esc_js($params['show']); ?>',
22 'counter': '<?php echo esc_js($params['counter']); ?>',
23 'category': '<?php echo esc_js($params['category']); ?>',
24 'service': '<?php echo esc_js($params['service']); ?>',
25 'employee': '<?php echo esc_js($params['employee']); ?>',
26 'location': '<?php echo esc_js($params['location']); ?>',
27 'package': '<?php echo esc_js($params['package']); ?>'
28 }
29 );
30
31 var ameliaShortcodeDataTriggered = (typeof ameliaShortcodeDataTriggered === 'undefined') ? [] : ameliaShortcodeDataTriggered;
32 if (ameliaShortcodeData[ameliaShortcodeData.length - 1].trigger !== '') {
33 if (ameliaShortcodeDataTriggered.filter(a => a.counter === ameliaShortcodeData[ameliaShortcodeData.length - 1].counter).length === 0) {
34 ameliaShortcodeDataTriggered.push(ameliaShortcodeData.pop());
35 } else {
36 ameliaShortcodeData.pop()
37 }
38 }
39 if (typeof hasAmeliaEntitiesApiCall !== 'undefined' && hasAmeliaEntitiesApiCall) {
40 hasAmeliaEntitiesApiCall = false;
41 }
42 </script>
43
44 <div
45 id="amelia-v2-booking-<?php echo esc_attr($params['counter']); ?>"
46 class="amelia-v2-booking<?php echo $params['trigger'] !== '' ? ' amelia-skip-load amelia-skip-load-' . esc_attr($params['counter']) : ''; ?>"
47 >
48 <?php
49 if(!$params['in_dialog']) {
50 echo '<step-form-wrapper></step-form-wrapper>';
51 } else {
52 echo '<dialog-forms></dialog-forms>';
53 }
54 ?>
55 </div>
56