PluginProbe ʕ •ᴥ•ʔ
VikAppointments Services Booking Calendar / 1.2.21
VikAppointments Services Booking Calendar v1.2.21
1.2.21 1.2.20 trunk 1.2.17 1.2.18 1.2.19
vikappointments / admin / layouts / wizard / steps / subscriptions.php
vikappointments / admin / layouts / wizard / steps Last commit date
employees.php 5 days ago index.html 5 days ago locations.php 5 days ago locwdays.php 5 days ago options.php 5 days ago packages.php 5 days ago payments.php 5 days ago services.php 5 days ago subscriptions.php 5 days ago syspack.php 5 days ago syssubscr.php 5 days ago system.php 5 days ago taxes.php 5 days ago
subscriptions.php
53 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 /**
15 * Layout variables
16 * -----------------
17 * @var VAPWizardStep $step The wizard step instance.
18 */
19 extract($displayData);
20
21 if (!$step->isCompleted())
22 {
23 // go ahead only if the step is completed
24 return;
25 }
26 ?>
27
28 <ul class="wizard-step-summary">
29 <?php
30 $subscr = $step->getSubscriptions();
31
32 // display at most 3 subscriptions
33 for ($i = 0; $i < min(array(3, count($subscr))); $i++)
34 {
35 ?>
36 <li>
37 <b><?php echo $subscr[$i]->name; ?></b>
38 </li>
39 <?php
40 }
41
42 // count remaining subscriptions
43 $remaining = count($subscr) - 3;
44
45 if ($remaining > 0)
46 {
47 ?>
48 <li><?php echo JText::plural('VAPWIZARDOTHER_N_ITEMS', $remaining); ?></li>
49 <?php
50 }
51 ?>
52 </ul>
53