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 / form / control / open.php
vikappointments / admin / layouts / form / control Last commit date
close.php 2 days ago index.html 2 days ago open.php 2 days ago
open.php
34 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 $vik = VAPApplication::getInstance();
15
16 $label = isset($displayData['label']) ? $displayData['label'] : '';
17 $required = isset($displayData['required']) ? $displayData['required'] : false;
18
19 if ($required && $label)
20 {
21 $label .= '*';
22 }
23
24 if (!empty($displayData['description']))
25 {
26 // append tooltip to label
27 $label .= $vik->createPopover(array(
28 'title' => $label,
29 'content' => $displayData['description'],
30 ));
31 }
32
33 echo $vik->openControl($label);
34