_header.liquid 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. <!-- _header.template -->
  2. <div class="header">
  3. <!-- Top Bar -->
  4. <div class="top-navbar">
  5. <div class="container">
  6. <div class="row">
  7. <div class="col-md-6">
  8. </div>
  9. <div class="col-md-6">
  10. <nav class="top-navbar-menu">
  11. <ul class="top-menu">
  12. </ul>
  13. </nav>
  14. </div>
  15. </div>
  16. </div>
  17. </div>
  18. <!-- Global Search -->
  19. <section id="sctGlobalSearch" class="global-search global-search-overlay">
  20. <div class="container">
  21. <div class="global-search-backdrop mask-dark--style-2"></div>
  22. <!-- Search form -->
  23. <form class="form-horizontal form-global-search z-depth-2-top" role="form">
  24. <div class="px-4">
  25. <div class="row">
  26. <div class="col-12">
  27. <input type="text" class="search-input" placeholder="Type and hit enter ...">
  28. </div>
  29. </div>
  30. </div>
  31. <a href="#" class="close-search" data-toggle="global-search" title="Close search bar"></a>
  32. </form>
  33. </div>
  34. </section>
  35. <!-- Navbar -->
  36. <nav class="navbar navbar-expand-lg navbar--bold navbar--style-2 navbar-light bg-default navbar--shadow">
  37. <div class="container navbar-container">
  38. <!-- Brand/Logo -->
  39. <a class="navbar-brand" href="/">
  40. {% if site.dist.logo %}
  41. <img src="{{ site.image_base_url }}{{ site.dist.logo }}" alt="logo" class="" alt="mtb" style="height: 50px;">
  42. {% else %}
  43. <div class="logo-placeholder no-image-logo-thumbnail">
  44. No Logo
  45. </div>
  46. {% endif %}
  47. </a>
  48. <div class="d-inline-block">
  49. <!-- Navbar toggler -->
  50. <button class="navbar-toggler hamburger hamburger-js hamburger--spring" type="button" data-toggle="collapse" data-target="#navbar_main" aria-controls="navbarsExampleDefault" aria-expanded="false" aria-label="Toggle navigation">
  51. <span class="hamburger-box">
  52. <span class="hamburger-inner"></span>
  53. </span>
  54. </button>
  55. </div>
  56. <div class="collapse navbar-collapse align-items-center justify-content-center" id="navbar_main">
  57. <!-- Navbar search - For small resolutions -->
  58. <div class="navbar-search-widget b-xs-bottom py-3 d-lg-none d-none">
  59. <form class="" role="form">
  60. <div class="input-group input-group-lg">
  61. <input type="text" class="form-control" placeholder="Search for...">
  62. <span class="input-group-btn">
  63. <button class="btn btn-base-3" type="button">Go!</button>
  64. </span>
  65. </div>
  66. </form>
  67. </div>
  68. <!-- Navbar links -->
  69. <!-------------menus--------------->
  70. <ul class="navbar-nav">
  71. {% for menu in site.menus_header %}
  72. <li class="nav-item dropdown {% if menu.children and menu.children.size == 0 %}megamenu{% endif %}">
  73. <a class="nav-link {% if menu.children and menu.children.size > 0 %}dropdown-toggle{% endif %}"
  74. href="{% if menu.children and menu.children.size > 0 %}#{% else %}{{ menu.uri }}{% endif %}"
  75. {% if menu.children and menu.children.size > 0 %}data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"{% endif %}>
  76. {{ menu.title }}
  77. </a>
  78. {% if menu.children and menu.children.size > 0 %}
  79. <div class="dropdown-menu dropdown-menu-xl py-0 px-0 overflow--hidden" aria-labelledby="navbar_{{ menu.id }}_dropdown">
  80. <div class="list-group rounded">
  81. {% for child in menu.children %}
  82. <a href="{% if child.children and child.children.size > 0 %}#{% else %}{{ child.uri }}{% endif %}"
  83. class="list-group-item list-group-item-action d-flex align-items-center">
  84. <div class="list-group-content">
  85. <div class="list-group-heading heading heading-6 mb-1">{{ child.title }}</div>
  86. <p class="text-sm mb-0">{{ child.title }}</p>
  87. </div>
  88. </a>
  89. {% endfor %}
  90. </div>
  91. </div>
  92. {% endif %}
  93. </li>
  94. {% endfor %}
  95. </ul>
  96. </div>
  97. </div>
  98. </nav>
  99. </div>