HeaderNav.html 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <header class="am-topbar am-topbar-inverse am-topbar-fixed-top">
  2. <div class="nav-header" <if condition="!empty($max_width_style)">style="{{$max_width_style}}"</if>>
  3. <!-- logo start -->
  4. <h1 class="am-topbar-brand">
  5. <a href="{{:__MY_URL__}}">
  6. <img src="{{$image_host}}{{:MyC('home_site_logo')}}" alt="{{:MyC('home_seo_site_title')}}" id="home_site_logo" />
  7. </a>
  8. </h1>
  9. <!-- logo end -->
  10. <!-- mobile nav button start -->
  11. <include file="Public/NavBar" />
  12. <!-- mobile nav button end -->
  13. <div class="am-collapse am-topbar-collapse" id="doc-topbar-collapse">
  14. <!-- nav start -->
  15. <ul class="am-nav am-nav-pills am-topbar-nav">
  16. <li <if condition="$nav_pid eq 0 and $nav_id eq 0">class="am-active"</if>>
  17. <a href="{{:__MY_URL__}}">{{:L('common_home_text')}}</a>
  18. </li>
  19. <foreach name="nav_header" key="k" item="v">
  20. <if condition="empty($v['item'])">
  21. <li class="<if condition="$nav_pid eq $v['id'] or $nav_id eq $v['id']">am-active</if>">
  22. <a href="{{$v.url}}" <if condition="$v['is_new_window_open'] eq 1">target="_blank"</if>>{{$v.name}}</a>
  23. </li>
  24. <else />
  25. <li class="am-dropdown <if condition="$nav_pid eq $v['id'] or $nav_id eq $v['id']">nav-active</if>" data-am-dropdown>
  26. <a class="am-dropdown-toggle" data-am-dropdown-toggle href="javascript:;">
  27. {{$v.name}}
  28. <span class="am-icon-caret-down"></span>
  29. </a>
  30. <ul class="am-dropdown-content">
  31. <foreach name="v.item" item="vs">
  32. <li <if condition="$nav_id eq $vs['id']">class="am-active"</if>><a href="{{$vs.url}}" <if condition="$vs['is_new_window_open'] eq 1">target="_blank"</if>>{{$vs.name}}</a></li>
  33. </foreach>
  34. </ul>
  35. </li>
  36. </if>
  37. </foreach>
  38. </ul>
  39. <!-- nav end -->
  40. <!-- search start -->
  41. <!-- <include file="Public/NavSearch" /> -->
  42. <!-- search end -->
  43. <!-- user start -->
  44. <include file="Public/UserNav" />
  45. <!-- user end -->
  46. </div>
  47. </div>
  48. </header>