_includes/appscms/navbars/toolbar.html in appscms-tools-theme-4.7.1 vs _includes/appscms/navbars/toolbar.html in appscms-tools-theme-4.7.2
- old
+ new
@@ -76,11 +76,12 @@
overflow-y: scroll;
z-index: 101;
display: none;
}
</style>
-{%- if site.newToolBar -%}
+
+{%- if site.newToolBar and page.lang == 'en' -%}
<div class="appscms-toolbar">
<div class="row">
<div class="col-11 mx-auto">
<div class="appscms-toolbar-list">
@@ -150,26 +151,27 @@
<div class="row">
<div class="col-md-6">
<ul class="mega_menu">
- {%- for i in second_half -%}
+ {%- for i in first_half | slice: 0, half -%}
<li>
<a href="{{ i.url }}">{{ i.name }}</a>
</li>
- {%- endfor -%}
+ {%- endfor -%}
+
</ul>
</div>
<div class="col-md-6">
<ul class="mega_menu">
- {%- for i in first_half | slice: 0, half -%}
+ {%- for i in second_half -%}
<li>
<a href="{{ i.url }}">{{ i.name }}</a>
</li>
- {%- endfor -%}
+ {%- endfor -%}
</ul>
</div>
</div>
@@ -208,24 +210,31 @@
</div>
</div>
<div class="col-lg-6">
<div class="appscms-other-tools">
<div class="expand_menu-name-categiry">OTHER TOOLS</div>
+ {% assign array_size = item.links | size %}
+ {% assign half_size = array_size | divided_by: 2 %}
+
+ {% assign first_half = item.links | slice: 0, half_size %}
+ {% assign second_half = item.links | slice: half_size, array_size %}
+
<div class="row">
<div class="col-md-6">
<ul class="mega_menu">
- {%- for i in second_half -%}
+ {%- for i in first_half | slice: 0, half -%}
<li>
<a href="{{ i.url }}">{{ i.name }}</a>
</li>
{%- endfor -%}
</ul>
</div>
<div class="col-md-6">
<ul class="mega_menu">
- {%- for i in first_half | slice: 0, half -%}
+
+ {%- for i in second_half -%}
<li>
<a href="{{ i.url }}">{{ i.name }}</a>
</li>
{%- endfor -%}
@@ -249,10 +258,11 @@
{%- else -%}
<div class="appscms-toolbar">
<div class="row">
<div class="col-11 mx-auto">
<div class="appscms-toolbar-list">
+ <button class="scroll-left">❮</button>
<div id="close-nav-ham" data-open="1" class="close-nav-ham">
<img class="mt-3" style="cursor: pointer;" height="30px" width="30px" src="/assets/images/close-button.svg" alt="close-button">
</div>
{%- if Data.megaMenu -%}
{%- for item in Data.megaMenu.dropdown -%}
@@ -319,10 +329,10 @@
{%- endfor -%}
</div>
</div>
</li>
{%- endfor -%}
-
+ <button class="scroll-right">❯</button>
</div>
</div>
</div>
</div>
{%- endif -%}
\ No newline at end of file