PluginProbe ʕ •ᴥ•ʔ
VikAppointments Services Booking Calendar / 1.2.20
VikAppointments Services Booking Calendar v1.2.20
1.2.21 1.2.20 trunk 1.2.17 1.2.18 1.2.19
vikappointments / site / views / confirmapp / tmpl / default_attendees.php
vikappointments / site / views / confirmapp / tmpl Last commit date
default.php 1 month ago default.xml 1 month ago default_attendees.php 1 month ago default_cart.php 1 month ago default_coupon.php 1 month ago default_fields.php 1 month ago default_login.php 1 month ago default_payments.php 1 month ago index.html 1 month ago
default_attendees.php
49 lines
1 <?php
2 /**
3 * @package VikAppointments
4 * @subpackage core
5 * @author E4J s.r.l.
6 * @copyright Copyright (C) 2021 E4J s.r.l. All Rights Reserved.
7 * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
8 * @link https://vikwp.com
9 */
10
11 // No direct access
12 defined('ABSPATH') or die('No script kiddies please!');
13
14 $vik = VAPApplication::getInstance();
15
16 /**
17 * Count the total number of attendees and, in case it is higher than 1,
18 * display the custom fields to collect the information of the other guests.
19 *
20 * @since 1.7
21 */
22 $attendees = VAPCartUtils::getAttendees($this->cart->getItemsList());
23
24 if ($attendees > 1 && VAPCustomFieldsRenderer::hasRepeatableFields($this->customFields))
25 {
26 // iterate fields for any other attendee (excluded the first one)
27 for ($attendee = 1; $attendee < $attendees; $attendee++)
28 {
29 ?>
30 <div class="vapcompleteorderdiv">
31
32 <!-- TITLE -->
33
34 <h3 class="vap-confirmapp-h3"><?php echo JText::sprintf('VAP_N_ATTENDEE', $attendee + 1); ?></h3>
35
36 <!-- FIELDS -->
37
38 <div class="vapcustomfields attendee-fieldset">
39 <?php
40 // render the custom fields form by using the apposite helper
41 echo VAPCustomFieldsRenderer::displayAttendee($attendee, $this->customFields);
42 ?>
43 </div>
44
45 </div>
46 <?php
47 }
48 }
49