{% for section in subLinksSections %}
<div id='sectionLinks{{ loop.index }}'
class="tab-pane {{ loop.first == true ? 'active' : '' }}">
<div id="moreLocationsContainer{{ loop.index }}" class="subsLinks sectionLoadMore">
{% if location is defined and location %}
{% set sub_locations_links = knp_menu_get( 'aqarmap.propertyTypes_search.menu' ,[], {'attributes': {'id': 'sud-locations-links', 'section': section, 'location': location }}) %}
{% else %}
{% set sub_locations_links = knp_menu_get( 'aqarmap.subLocations_search.menus' ,[], {'attributes': {'id': 'sud-locations-links', 'section': section }}) %}
{% endif %}
{% if sub_locations_links.children %}
<div class="clearfix">
{{ knp_menu_render(sub_locations_links, {'template': '@AqarmapListingBundle/ListingSearch/subLinksTemplate.html.twig'}) }}
</div>
{% endif %}
</div>
</div>
{% endfor %}