megamenu e menu mobile

This commit is contained in:
2025-01-01 19:55:19 +01:00
parent 934dd6bf52
commit bf9a138579
12 changed files with 1053 additions and 103 deletions

View File

@ -50,12 +50,6 @@
$attributes['class'] = 'nav-link '.$item_active;
}
if(
($item->title == "Panoramica")
)
{
$attributes['data-element'] = 'overview';
}
if ($item->menu_icon) {
// The link is an icon
@ -90,13 +84,9 @@
}
if ($item->deeper){
echo HTMLHelper::_('link', OutputFilter::ampReplace(htmlspecialchars($item->flink, ENT_COMPAT, 'UTF-8', false)), '<span>' . $linktype . '</span>
<svg class="icon icon-xs">
<use href="' . $baseImagePath . 'sprites.svg#it-expand"></use>
</svg>
', $attributes);
echo '<span>' . $linktype . '</span>';
}elseif ($item->level >= 2){
echo HTMLHelper::_('link', OutputFilter::ampReplace(htmlspecialchars($item->flink, ENT_COMPAT, 'UTF-8', false)), '<span>' . $linktype . '</span>', $attributes);
echo '<span>' . $linktype . '</span>';
} else {
echo HTMLHelper::_('link', OutputFilter::ampReplace(htmlspecialchars($item->flink, ENT_COMPAT, 'UTF-8', false)), $linktype, $attributes);
echo '<span>' . $linktype . '</span>';
}