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 / site / layouts / form / fields / separator.php
vikappointments / site / layouts / form / fields Last commit date
checkbox.php 2 days ago color.php 2 days ago date.php 2 days ago editor.php 2 days ago file.php 2 days ago hidden.php 2 days ago html.php 2 days ago index.html 2 days ago number.php 2 days ago select.php 2 days ago separator.php 2 days ago tel.php 2 days ago text.php 2 days ago textarea.php 2 days ago
separator.php
37 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 $label = isset($displayData['label']) ? $displayData['label'] : '';
15 $description = isset($displayData['description']) ? $displayData['description'] : '';
16 $id = !empty($displayData['id']) ? $displayData['id'] : $name;
17 $class = isset($displayData['class']) ? $displayData['class'] : '';
18
19 $class = trim('vapseparatorcf ' . $class);
20 ?>
21
22 <div class="<?php echo $this->escape($class); ?>" id="<?php echo $this->escape($id); ?>">
23 <?php
24 // make sure the label contains at least a character different than
25 // a blank space, an hyphen and an underscore
26 if (preg_match("/[^\s\-_]/", $label))
27 {
28 /**
29 * When specified, the description will be used in place of the label.
30 *
31 * @since 1.7.6
32 */
33 echo $description ?: ('<strong>' . $label . '</strong>');
34 }
35 ?>
36 </div>
37