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
service.inc.php
38 lines
| 1 | <?php |
| 2 | /** |
| 3 | * @copyright © TMS-Plugins. All rights reserved. |
| 4 | * @licence See LICENCE.md for license details. |
| 5 | */ |
| 6 | |
| 7 | ?> |
| 8 | <script> |
| 9 | if (typeof hasAmeliaAppointment === 'undefined') { |
| 10 | var hasAmeliaAppointment = true; |
| 11 | } |
| 12 | if (typeof hasAppointmentApiCall === 'undefined' && '<?php echo esc_js($atts['trigger']); ?>' === '') { |
| 13 | var hasAppointmentApiCall = true; |
| 14 | } |
| 15 | var bookingEntitiesIds = (typeof bookingEntitiesIds === 'undefined') ? [] : bookingEntitiesIds; |
| 16 | bookingEntitiesIds.push( |
| 17 | { |
| 18 | 'hasApiCall': (typeof hasAppointmentApiCall !== 'undefined') && hasAppointmentApiCall, |
| 19 | 'trigger': '<?php echo esc_js($atts['trigger']); ?>', |
| 20 | 'counter': '<?php echo esc_js($atts['counter']); ?>', |
| 21 | 'service': '<?php echo esc_js($atts['service']); ?>', |
| 22 | 'employee': '<?php echo esc_js($atts['employee']); ?>', |
| 23 | 'location': '<?php echo esc_js($atts['location']); ?>' |
| 24 | } |
| 25 | ); |
| 26 | var lazyBookingEntitiesIds = (typeof lazyBookingEntitiesIds === 'undefined') ? [] : lazyBookingEntitiesIds; |
| 27 | if (bookingEntitiesIds[bookingEntitiesIds.length - 1].trigger !== '') { |
| 28 | lazyBookingEntitiesIds.push(bookingEntitiesIds.pop()); |
| 29 | } |
| 30 | if (typeof hasAppointmentApiCall !== 'undefined' && hasAppointmentApiCall) { |
| 31 | hasAppointmentApiCall = false; |
| 32 | } |
| 33 | </script> |
| 34 | |
| 35 | <div id="amelia-app-booking<?php echo esc_attr($atts['counter']); ?>" class="amelia-service amelia-frontend amelia-app-booking<?php echo $atts['trigger'] !== '' ? ' amelia-skip-load amelia-skip-load-' . esc_attr($atts['counter']) : ''; ?>"> |
| 36 | <service></service> |
| 37 | </div> |
| 38 |