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 / helpers / libraries / menu / leftboard / separator.php
vikappointments / site / helpers / libraries / menu / leftboard Last commit date
custom 3 days ago index.html 3 days ago item.php 3 days ago separator.php 3 days ago shape.php 3 days ago
separator.php
50 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 VAPLoader::import('libraries.menu.separator');
15
16 /**
17 * Extends the SeparatorItemShape class to handle a menu group.
18 *
19 * @since 1.5
20 * @since 1.6.3 Renamed from LeftBoardMenuSeparator to LeftboardSeparatorItemShape.
21 */
22 class LeftboardSeparatorItemShape extends SeparatorItemShape
23 {
24 /**
25 * @override
26 * Builds and returns the html structure of the separator that wraps the children.
27 * This method must be implemented to define a specific graphic of the separator.
28 *
29 * @param string $html The full structure of the children of the separator.
30 *
31 * @return string The html of the separator.
32 */
33 protected function buildHtml($html)
34 {
35 $data = array(
36 'selected' => $this->isSelected(),
37 'collapsed' => $this->isCollapsed(),
38 'href' => $this->getHref(),
39 'icon' => $this->getCustom(),
40 'title' => $this->getTitle(),
41 'children' => $this->children(),
42 'html' => $html,
43 );
44
45 $layout = new JLayoutFile('menu.leftboard.separator');
46
47 return $layout->render($data);
48 }
49 }
50