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 / menu / leftboard / item.php
vikappointments / admin / layouts / menu / leftboard Last commit date
body 2 days ago custom 2 days ago index.html 2 days ago item.php 2 days ago menu.php 2 days ago separator.php 2 days ago
item.php
39 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 extract($displayData);
15
16 /**
17 * Layout variables
18 * -----------------
19 * @var boolean $selected True whether the item is active.
20 * @var string $href The item HREF.
21 * @var string $icon The custom icon, if specified.
22 * @var string $title The item title.
23 */
24
25 ?>
26
27 <div class="item<?php echo $selected ? ' selected' : ''; ?>">
28
29 <a href="<?php echo $href; ?>">
30 <?php
31 if (strlen($icon))
32 {
33 ?><i class="fas fa-<?php echo $icon; ?>"></i><?php
34 }
35
36 ?><span><?php echo $title; ?></span>
37 </a>
38
39 </div>