src/Aqarmap/Bundle/MainBundle/Resources/views/Default/locationsSubLinks.html.twig line 1

Open in your IDE?
  1. <div class="clearfix">
  2.     <div class="page-header">
  3.         <h3>
  4.             {% if location is defined and location %}
  5.                 {% if section is not defined or propertyType is not defined %}
  6.                     {{ 'listing.subs_location_links'|trans({'%location%': location.title}) }}
  7.                 {% else %}
  8.                     {{ 'listing.subs_locations_links'|trans({'%location%': location.title, '%property_type%': propertyType ? propertyType.title: null, '%section%': section ? section.title: ''}) }}
  9.                 {% endif %}
  10.             {% else %}
  11.                 {% if get_setting('general', 'country') == 'EG' %}
  12.                     {{ 'listing.search_inside_cities_eg'|trans }}
  13.                 {% elseif get_setting('general', 'country') == 'SA' %}
  14.                     {{ 'listing.search_inside_cities_sa'|trans }}
  15.                 {% endif %}
  16.             {% endif %}
  17.         </h3>
  18.     </div>
  19.     {% if subLinksSections is defined %}
  20.         <ul class="nav nav-pills">
  21.             {% for section in subLinksSections %}
  22.                 <li>
  23.                     <a data-toggle="pill" href="#sectionLinks{{ loop.index }}" {{ loop.first == true ? ' class="active"' : '' }}>{{ section.title }}</a>
  24.                 </li>
  25.             {% endfor %}
  26.         </ul>
  27.     {% endif %}
  28.     <div class="tab-content">
  29.         {% if location is defined and location and app.request.attributes.get('_route') in ["compound_search", "neighborhood_discussion_list", "neighborhood_all_locations", "neighborhood_main_page", "compound_search_with_location"] %}
  30.             {% include "@AqarmapMainBundle/Default/locationSectionIndexedSubLinks.html.twig" %}
  31.         {% else %}
  32.             {% if subLinksSections is defined %}
  33.                 {% include "@AqarmapMainBundle/Default/locationSectionIndexedSubLinks.html.twig" %}
  34.             {% elseif section is defined %}
  35.                 <div id='sectionLinks' class="tab-pane active">
  36.                     <div id="moreLocationsContainer" class="subsLinks sectionLoadMore">
  37.                         {% set sub_locations_links = knp_menu_get( 'aqarmap.subLocations_search.menus' ,[], {'attributes': {'id': 'sud-locations-links', 'section': section}}) %}
  38.                         {% if sub_locations_links.children %}
  39.                             <div class="clearfix">
  40.                                 {{ knp_menu_render(sub_locations_links, {'template': '@AqarmapListingBundle/ListingSearch/subLinksTemplate.html.twig'}) }}
  41.                             </div>
  42.                         {% endif %}
  43.                     </div>
  44.                 </div>
  45.             {% endif %}
  46.         {% endif %}
  47.     </div>
  48. </div>