28 lines
823 B
PHTML
Executable File
28 lines
823 B
PHTML
Executable File
<header class="narsPage-head">
|
|
<div class="headcenter">
|
|
<img
|
|
class="logico"
|
|
style="cursor:pointer;"
|
|
src="__PUBLIC__/web/images/logo_nas.png"
|
|
/>
|
|
<nav class="headnav">
|
|
{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>
|