| @@ -1,19 +1,25 @@ | ||
| 1 | -<?php defined( 'ABSPATH' ) || exit; ?> | |
| 1 | +<?php | |
| 2 | +defined( 'ABSPATH' ) || exit; | |
| 2 | 3 | |
| 4 | +/** | |
| 5 | + * @var array $items | |
| 6 | + */ | |
| 7 | +?> | |
| 8 | + | |
| 3 | 9 | <?php if ($items) : ?> |
| 4 | 10 | <h4><?php esc_html_e('Customer Details', 'fluent-booking'); ?></h4> |
| 5 | 11 | <table class="table fluent_booking_table input_items_table table_bordered"> |
| 6 | 12 | <tbody> |
| 7 | - <?php foreach ($items as $item) : ?> | |
| 8 | - <?php if ((isset($item['value']) && $item['value'] !== '' && isset($item['label']))) : ?> | |
| 13 | + <?php foreach ($items as $fluentBookingItem) : ?> | |
| 14 | + <?php if ((isset($fluentBookingItem['value']) && $fluentBookingItem['value'] !== '' && isset($fluentBookingItem['label']))) : ?> | |
| 9 | 15 | <tr> |
| 10 | - <th><?php echo wp_kses_post($item['label']); ?></th> | |
| 16 | + <th><?php echo wp_kses_post($fluentBookingItem['label']); ?></th> | |
| 11 | 17 | <td><?php |
| 12 | - if (is_array($item['value'])) { | |
| 13 | - echo wp_kses_post(implode(', ', $item['value'])); | |
| 18 | + if (is_array($fluentBookingItem['value'])) { | |
| 19 | + echo wp_kses_post(implode(', ', $fluentBookingItem['value'])); | |
| 14 | 20 | } else { |
| 15 | - echo wp_kses_post($item['value']); | |
| 21 | + echo wp_kses_post($fluentBookingItem['value']); | |
| 16 | 22 | }; ?> |
| 17 | 23 | </td> |
| 18 | 24 | </tr> |
| 19 | 25 | <?php endif; ?> |