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 / payments.php
vikappointments / admin / layouts / wizard / steps Last commit date
employees.php 3 days ago index.html 3 days ago locations.php 3 days ago locwdays.php 3 days ago options.php 3 days ago packages.php 3 days ago payments.php 3 days ago services.php 3 days ago subscriptions.php 3 days ago syspack.php 3 days ago syssubscr.php 3 days ago system.php 3 days ago taxes.php 3 days ago
payments.php
55 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 completed
24 return;
25 }
26 ?>
27
28 <ul class="wizard-step-summary">
29 <?php
30 $payments = $step->getPayments();
31
32 // display at most 3 payments
33 for ($i = 0; $i < min(array(3, count($payments))); $i++)
34 {
35 ?>
36 <li>
37 <?php echo JHtml::fetch('vaphtml.admin.stateaction', $payments[$i]->published); ?>
38 <b><?php echo $payments[$i]->name; ?></b>
39 <span class="badge badge-info"><?php echo $payments[$i]->file; ?></span>
40 </li>
41 <?php
42 }
43
44 // count remaining payments
45 $remaining = count($payments) - 3;
46
47 if ($remaining > 0)
48 {
49 ?>
50 <li><?php echo JText::plural('VAPWIZARDOTHER_N_ITEMS', $remaining); ?></li>
51 <?php
52 }
53 ?>
54 </ul>
55