PluginProbe ʕ •ᴥ•ʔ
VikAppointments Services Booking Calendar / 1.2.20
VikAppointments Services Booking Calendar v1.2.20
1.2.21 1.2.20 trunk 1.2.17 1.2.18 1.2.19
vikappointments / site / views / serviceslist / tmpl / default_group.php
vikappointments / site / views / serviceslist / tmpl Last commit date
default.php 1 month ago default.xml 1 month ago default_group.php 1 month ago default_service.php 1 month ago index.html 1 month ago
default_group.php
45 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 * @todo Should we use a default label for
16 * the group with no name (e.g. "uncategorized")?
17 *
18 * A default label should be used only in case
19 * there are other services assigned to a specific group.
20 * This because if the owner doesn't need to use groups,
21 * it is not correct to display the "uncategorised" group.
22 *
23 * Anyhow, it could be helpful to evaluate the uncategorised
24 * label within the view.html.php and to decide if it should
25 * be used within this template file.
26 */
27
28 if ($this->group->name)
29 {
30 ?>
31 <div class="vapsergroupdiv">
32 <?php echo $this->group->name; ?>
33 </div>
34
35 <?php
36 if (trim((string) $this->group->description))
37 {
38 ?>
39 <div class="vapsergroupdescriptiondiv">
40 <?php echo VikAppointments::renderHtmlDescription($this->group->description, 'serviceslist'); ?>
41 </div>
42 <?php
43 }
44 }
45