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 / services.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
services.php
63 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 $progress = $step->getProgress();
22
23 if ($progress == 0)
24 {
25 // go ahead only if progress is not 0%
26 return;
27 }
28 ?>
29
30 <ul class="wizard-step-summary">
31 <?php
32 $services = $step->getServices();
33
34 // display at most 3 services
35 for ($i = 0; $i < min(array(3, count($services))); $i++)
36 {
37 ?>
38 <li>
39 <?php echo JHtml::fetch('vaphtml.admin.stateaction', $services[$i]->id_employee ? 1 : 0); ?>
40 <b><?php echo $services[$i]->name; ?></b>
41 </li>
42 <?php
43 }
44
45 // count remaining services
46 $remaining = count($services) - 3;
47
48 if ($remaining > 0)
49 {
50 ?>
51 <li><?php echo JText::plural('VAPWIZARDOTHER_N_ITEMS', $remaining); ?></li>
52 <?php
53 }
54 ?>
55 </ul>
56
57 <?php
58 if ($progress == 50)
59 {
60 // missing assigned employees, display warning message
61 echo VAPApplication::getInstance()->alert(JText::translate('VAP_WIZARD_STEP_SERVICES_EMPLOYEE_WARN'));
62 }
63