PluginProbe ʕ •ᴥ•ʔ
Booking for Appointments and Events Calendar – Amelia / trunk
Booking for Appointments and Events Calendar – Amelia vtrunk
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 / booking.inc.php
ameliabooking / view / frontend Last commit date
booking.inc.php 4 years ago catalog-booking.inc.php 2 weeks ago catalog.inc.php 4 years ago category.inc.php 4 years ago events-list-booking.inc.php 2 weeks ago events.inc.php 2 years ago service.inc.php 4 years ago step-booking.inc.php 2 weeks ago
booking.inc.php
42 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 hasAmeliaAppointment === 'undefined') {
11 var hasAmeliaAppointment = true;
12 }
13 if (typeof hasAppointmentApiCall === 'undefined' && '<?php echo esc_js($atts['trigger']); ?>' === '') {
14 var hasAppointmentApiCall = true;
15 }
16 var hasBookingShortcode = (typeof hasBookingShortcode === 'undefined') ? false : true;
17 var bookingEntitiesIds = (typeof bookingEntitiesIds === 'undefined') ? [] : bookingEntitiesIds;
18 bookingEntitiesIds.push(
19 {
20 'hasApiCall': (typeof hasAppointmentApiCall !== 'undefined') && hasAppointmentApiCall,
21 'trigger': '<?php echo esc_js($atts['trigger']); ?>',
22 'show': '<?php echo esc_js($atts['show']); ?>',
23 'counter': '<?php echo esc_js($atts['counter']); ?>',
24 'category': '<?php echo esc_js($atts['category']); ?>',
25 'service': '<?php echo esc_js($atts['service']); ?>',
26 'employee': '<?php echo esc_js($atts['employee']); ?>',
27 'location': '<?php echo esc_js($atts['location']); ?>'
28 }
29 );
30 var lazyBookingEntitiesIds = (typeof lazyBookingEntitiesIds === 'undefined') ? [] : lazyBookingEntitiesIds;
31 if (bookingEntitiesIds[bookingEntitiesIds.length - 1].trigger !== '') {
32 lazyBookingEntitiesIds.push(bookingEntitiesIds.pop());
33 }
34 if (typeof hasAppointmentApiCall !== 'undefined' && hasAppointmentApiCall) {
35 hasAppointmentApiCall = false;
36 }
37 </script>
38
39 <div id="amelia-app-booking<?php echo esc_attr($atts['counter']); ?>" class="amelia-booking amelia-frontend amelia-app-booking<?php echo $atts['trigger'] !== '' ? ' amelia-skip-load amelia-skip-load-' . esc_attr($atts['counter']) : ''; ?>">
40 <booking id="amelia-step-booking<?php echo esc_attr($atts['counter']); ?>"></booking>
41 </div>
42