2026-05-29 00:11:21 -05:00
|
|
|
<?php
|
|
|
|
|
/**
|
|
|
|
|
* Copyright (C) 2025 Moko Consulting <hello@mokoconsulting.tech>
|
|
|
|
|
*
|
|
|
|
|
* This file is part of a Moko Consulting project.
|
|
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Default menu — Separator item layout (sidebar/footer vertical lists)
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
defined('_JEXEC') or die;
|
|
|
|
|
|
|
|
|
|
$title = $item->anchor_title ? ' title="' . $item->anchor_title . '"' : '';
|
|
|
|
|
$anchor_css = $item->anchor_css ?: '';
|
|
|
|
|
|
|
|
|
|
$linktype = $item->title;
|
|
|
|
|
|
|
|
|
|
if ($item->menu_icon) {
|
2026-06-04 09:50:11 -05:00
|
|
|
// Strip Joomla-injected padding classes that conflict with FA icon sizing
|
|
|
|
|
$item->menu_icon = trim(preg_replace('/\bp-[0-5]\b/', '', $item->menu_icon));
|
2026-05-29 00:11:21 -05:00
|
|
|
if ($itemParams->get('menu_text', 1)) {
|
|
|
|
|
$linktype = '<span class="' . $item->menu_icon . '" aria-hidden="true"></span>' . $item->title;
|
|
|
|
|
} else {
|
|
|
|
|
$linktype = '<span class="' . $item->menu_icon . '" aria-hidden="true"></span><span class="visually-hidden">' . $item->title . '</span>';
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
?>
|
|
|
|
|
<hr class="mod-menu__separator <?php echo $anchor_css; ?>"<?php echo $title; ?> />
|