appscms-tools-theme 4.7.1 → 4.7.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -78,7 +78,8 @@
78
78
  display: none;
79
79
  }
80
80
  </style>
81
- {%- if site.newToolBar -%}
81
+
82
+ {%- if site.newToolBar and page.lang == 'en' -%}
82
83
  <div class="appscms-toolbar">
83
84
  <div class="row">
84
85
  <div class="col-11 mx-auto">
@@ -152,22 +153,23 @@
152
153
  <div class="row">
153
154
  <div class="col-md-6">
154
155
  <ul class="mega_menu">
155
- {%- for i in second_half -%}
156
+ {%- for i in first_half | slice: 0, half -%}
156
157
  <li>
157
158
  <a href="{{ i.url }}">{{ i.name }}</a>
158
159
 
159
160
  </li>
160
- {%- endfor -%}
161
+ {%- endfor -%}
162
+
161
163
  </ul>
162
164
  </div>
163
165
  <div class="col-md-6">
164
166
  <ul class="mega_menu">
165
- {%- for i in first_half | slice: 0, half -%}
167
+ {%- for i in second_half -%}
166
168
  <li>
167
169
  <a href="{{ i.url }}">{{ i.name }}</a>
168
170
 
169
171
  </li>
170
- {%- endfor -%}
172
+ {%- endfor -%}
171
173
  </ul>
172
174
  </div>
173
175
 
@@ -210,10 +212,16 @@
210
212
  <div class="col-lg-6">
211
213
  <div class="appscms-other-tools">
212
214
  <div class="expand_menu-name-categiry">OTHER TOOLS</div>
215
+ {% assign array_size = item.links | size %}
216
+ {% assign half_size = array_size | divided_by: 2 %}
217
+
218
+ {% assign first_half = item.links | slice: 0, half_size %}
219
+ {% assign second_half = item.links | slice: half_size, array_size %}
220
+
213
221
  <div class="row">
214
222
  <div class="col-md-6">
215
223
  <ul class="mega_menu">
216
- {%- for i in second_half -%}
224
+ {%- for i in first_half | slice: 0, half -%}
217
225
  <li>
218
226
  <a href="{{ i.url }}">{{ i.name }}</a>
219
227
 
@@ -223,7 +231,8 @@
223
231
  </div>
224
232
  <div class="col-md-6">
225
233
  <ul class="mega_menu">
226
- {%- for i in first_half | slice: 0, half -%}
234
+
235
+ {%- for i in second_half -%}
227
236
  <li>
228
237
  <a href="{{ i.url }}">{{ i.name }}</a>
229
238
 
@@ -251,6 +260,7 @@
251
260
  <div class="row">
252
261
  <div class="col-11 mx-auto">
253
262
  <div class="appscms-toolbar-list">
263
+ <button class="scroll-left">&#10094;</button>
254
264
  <div id="close-nav-ham" data-open="1" class="close-nav-ham">
255
265
  <img class="mt-3" style="cursor: pointer;" height="30px" width="30px" src="/assets/images/close-button.svg" alt="close-button">
256
266
  </div>
@@ -321,7 +331,7 @@
321
331
  </div>
322
332
  </li>
323
333
  {%- endfor -%}
324
-
334
+ <button class="scroll-right">&#10095;</button>
325
335
  </div>
326
336
  </div>
327
337
  </div>