44 lines
1.6 KiB
PHTML
Executable File
44 lines
1.6 KiB
PHTML
Executable File
<header class="narsPage-head">
|
|
<div class="headcenter">
|
|
<img
|
|
class="logico"
|
|
style="cursor:pointer;"
|
|
src="__PUBLIC__/web/images/logo_nas.png"
|
|
onclick="location.href='{:url(\'TopsNas/index\')}'"
|
|
/>
|
|
<nav class="headnav">
|
|
<!-- {volist name="nav_header" id="vo"}
|
|
<div class="navitem">
|
|
<a href="{$vo.url}" {if condition="$vo.is_new_window_open"}target="_blank"{/if}>{$vo.name}</a>
|
|
{if condition="!empty($vo.items)"}
|
|
<img src="/frontend/weben/images/indeximg/black-down.png" class="downimg" alt="">
|
|
<ul class="children">
|
|
{volist name="vo.items" id="it"}
|
|
<li>
|
|
<a href="{$it.url}" {if condition="$it.is_new_window_open"}target="_blank"{/if}>{$it.name}</a>
|
|
</li>
|
|
{/volist}
|
|
</ul>
|
|
{/if}
|
|
</div>
|
|
{/volist} -->
|
|
{volist name="nav_header" id="vo"}
|
|
<a
|
|
class="navitem"
|
|
href="{$vo.url}" {if condition="$vo.is_new_window_open"}target="_blank"{/if}
|
|
>
|
|
{$vo.name}
|
|
</a>
|
|
{/volist}
|
|
</nav>
|
|
</div>
|
|
</header>
|
|
<script type="text/javascript">
|
|
document.querySelectorAll('.navitem').forEach(function(it) {
|
|
it.classList.remove('hover')
|
|
if (location.pathname.endsWith(it.getAttribute('href'))) {
|
|
it.classList.add('hover')
|
|
}
|
|
})
|
|
</script>
|