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 / step.php
vikappointments / admin / layouts / wizard Last commit date
steps 3 days ago index.html 3 days ago step.php 3 days ago
step.php
121 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 ?>
22
23 <div class="wizard-step">
24
25 <!-- Wizard step top bar -->
26 <div class="wizard-step-top-bar<?php echo $step->isCompleted() ? ' completed' : ''; ?>">
27
28 <span class="top-bar-primary">
29 <?php
30 if ($icon = $step->getIcon())
31 {
32 ?>
33 <span class="wizard-step-icon"><?php echo $icon; ?></span>
34 <?php
35 }
36 ?>
37
38 <span class="wizard-step-title"><?php echo $step->getTitle(); ?></span>
39 </span>
40
41 <span class="top-bar-secondary pull-right badge badge-info">
42 <?php echo $step->getGroup(); ?>
43 </span>
44
45 </div>
46
47 <!-- Wizard step body -->
48 <div class="wizard-step-body">
49
50 <?php
51 if ($step->canExecute())
52 {
53 ?>
54 <div class="wizard-step-body-inner">
55 <?php
56 if ($description = $step->getDescription())
57 {
58 ?>
59 <div class="wizard-step-desc">
60 <?php echo $description; ?>
61 </div>
62 <?php
63 }
64
65 echo $step->display();
66 ?>
67 </div>
68 <?php
69 }
70 else
71 {
72 // inform the user that the step cannot be processed yet
73 ?>
74 <div class="wizard-step-body-dep">
75 <?php echo JText::translate('VAPWIZARDDEPEND'); ?>
76
77 <ul>
78 <?php
79 foreach ($step->getDependencies() as $dep)
80 {
81 ?><li><b><?php echo $dep->getTitle(); ?></b></li><?php
82 }
83 ?>
84 </ul>
85 </div>
86 <?php
87 }
88 ?>
89 </div>
90
91 <!-- Wizard step footer bar -->
92 <div class="wizard-step-footer-bar">
93 <?php
94 if ($step->isCompleted())
95 {
96 // step completed, display button to dismiss it
97 ?>
98 <button type="button" class="btn pull-left" data-role="dismiss"><?php echo JText::translate('VAPWIZARDBTNDISMISS'); ?></button>
99 <?php
100 }
101 else
102 {
103 if ($step->canIgnore())
104 {
105 // step can be ignored, display button to skip it
106 ?>
107 <button type="button" class="btn pull-left" data-role="ignore"><?php echo JText::translate('VAPWIZARDBTNIGNORE'); ?></button>
108 <?php
109 }
110
111 if ($step->canExecute())
112 {
113 // display button to process the step
114 echo $step->getExecuteButton();
115 }
116 }
117 ?>
118 </div>
119
120 </div>
121