_includes/appscms/navbars/toolbar.html in appscms-tools-theme-4.7.3 vs _includes/appscms/navbars/toolbar.html in appscms-tools-theme-4.7.4

- old
+ new

@@ -119,10 +119,11 @@ > {{ item.categoryName }} </span> <div class="list-item-dropdown"> <div class="row"> + {% if item.featuredLinks.size > 0 %} <div class="col-lg-4 col-md-6"> <div class="appscms-featured-tools"> <div class="category-tools"> <h4 class="expand_menu-name-categiry">FEATURED TOOLS</h4> {%- for i in item.featuredLinks -%} @@ -137,10 +138,12 @@ </a> {%- endfor -%} </div> </div> </div> + {%- endif -%} + {%- if item.links.size > 0 -%} <div class="col-md-8"> <div class="appscms-other-tools"> <div class="expand_menu-name-categiry">OTHER TOOLS</div> {% assign array_size = item.links | size %} @@ -176,10 +179,12 @@ </div> </div> </div> + {%- endif -%} + </div> </div> </li> {%- endfor -%} {%- endif -%} {%- for item in siteData.megaMenu.dropdown -%} @@ -189,10 +194,11 @@ > {{ item.categoryName }} </span> <div class="list-item-dropdown"> <div class="row"> + {%- if item.featuredLinks.size > 0 -%} <div class="col-lg-4 col-md-6"> <div class="appscms-featured-tools"> <div class="category-tools"> <h4 class="expand_menu-name-categiry">FEATURED TOOLS</h4> {%- for i in item.featuredLinks -%} @@ -207,45 +213,49 @@ </a> {%- endfor -%} </div> </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 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 second_half -%} - <li> - <a href="{{ i.url }}">{{ i.name }}</a> - - </li> - {%- endfor -%} - </ul> - </div> + {%- endif -%} + {%- if item.links.size > 0 -%} + <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> + <div class="row"> + <div class="col-md-6"> + <ul class="mega_menu"> + {%- 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 second_half -%} + <li> + <a href="{{ i.url }}">{{ i.name }}</a> + + </li> + {%- endfor -%} + </ul> + </div> + + </div> + </div> + </div> + {%- endif -%} + </div> </div> </li> {%- endfor -%} <button class="scroll-right">&#10095;</button> \ No newline at end of file