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