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 / locwdays.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
locwdays.php
69 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 $config = VAPFactory::getConfig();
28
29 ?>
30
31 <ul class="wizard-step-summary">
32 <?php
33 $assoc = $step->getAssignments();
34
35 // display at most 3 assignments
36 for ($i = 0; $i < min(array(3, count($assoc))); $i++)
37 {
38 if (VAPDateHelper::isNull($assoc[$i]->tsdate))
39 {
40 // get day of the week
41 $date = JFactory::getDate()->dayToString($assoc[$i]->day, $abbr = true);
42 }
43 else
44 {
45 // get date of the year
46 $date = JHtml::fetch('date', $assoc[$i]->tsdate, $config->get('dateformat'));
47 }
48
49 $from = JHtml::fetch('vikappointments.min2time', $assoc[$i]->fromts);
50 $to = JHtml::fetch('vikappointments.min2time', $assoc[$i]->endts);
51 ?>
52 <li>
53 <b><?php echo $assoc[$i]->name; ?></b> - <?php echo $date; ?>, <?php echo $from; ?> - <?php echo $to; ?>
54 </li>
55 <?php
56 }
57
58 // count remaining records
59 $remaining = count($assoc) - 3;
60
61 if ($remaining > 0)
62 {
63 ?>
64 <li><?php echo JText::plural('VAPWIZARDOTHER_N_ITEMS', $remaining); ?></li>
65 <?php
66 }
67 ?>
68 </ul>
69