2024-01-20 14:22:20
This commit is contained in:
43
app/us/view/include/top-header-nas.phtml
Executable file
43
app/us/view/include/top-header-nas.phtml
Executable file
@@ -0,0 +1,43 @@
|
||||
<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>
|
||||
Reference in New Issue
Block a user