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

Open in your IDE?
  1. {% extends "base.html.twig" %}
  2. {# Page title #}
  3. {% block title %}{{ parent() }} • {{ ('layout.homepage_'~country) |trans }}{% endblock %}
  4. {% block htmlhead %}
  5.     <link rel="alternate" hreflang="ar"
  6.           href="{{ url(app.request.get('_route'), app.request.get('_route_params')|merge({'_locale': 'ar'})) }}"/>
  7.     <link rel="alternate" hreflang="en"
  8.           href="{{ url(app.request.get('_route'), app.request.get('_route_params')|merge({'_locale': 'en'})) }}"/>
  9.     <link rel="alternate" hreflang="x-default"
  10.           href="{{ url(app.request.get('_route'), app.request.get('_route_params')|merge({'_locale': 'ar'})) }}"/>
  11. {% endblock %}
  12. {% block body %}
  13.     <section class="container filterContainer {{ app.request.get('_route') }}">
  14.         <div class="row">
  15.             <div class="col-md-12">
  16.                 <div class="page-header">
  17.                     <h1>{{ 'layout.sitemap'|trans }}</h1>
  18.                 </div>
  19.                 <div class="container">
  20.                     {% if searchableSections is defined %}
  21.                         <ul>
  22.                             {% for searchableSection in searchableSections %}
  23.                                 <li>
  24.                                     <a title="{{ 'layout.title.search_short'|trans({'%property_type%': '','%section%': searchableSection.title}) }}"
  25.                                        href="{{ url('sitemap_section_flow', {section: searchableSection.slug}) }}">
  26.                                         {{ searchableSection.title }}
  27.                                     </a>
  28.                                 </li>
  29.                             {% endfor %}
  30.                         </ul>
  31.                     {% elseif section is defined %}
  32.                         <h2>
  33.                             {% if propertyType is defined and propertyType %}
  34.                                 <a href="{{ url('property_type_search', {section_slug: section.slug, property_type_slug: propertyType.slug}) }}">{{ propertyType.title }}</a>
  35.                             {% endif %}
  36.                             <a href="{{ url('homepage') }}">{{ section.title }}</a>
  37.                         </h2>
  38.                         {% if searchableProperties is defined and not propertyType %}
  39.                             <ul>
  40.                                 {% for searchableProperty in searchableProperties %}
  41.                                     <li>
  42.                                         <a href="{{ url('sitemap_section_property_type_flow', {section: section.slug, property_type: searchableProperty.propertyTypeSlug}) }}">
  43.                                             {{ searchableProperty.propertyTypeTitle }}
  44.                                         </a>
  45.                                     </li>
  46.                                 {% endfor %}
  47.                             </ul>
  48.                         {% endif %}
  49.                         {% if searchableLocations is defined and propertyType %}
  50.                             <ul class="col-md-12">
  51.                                 {% for searchableLocation in searchableLocations %}
  52.                                     <li class="col-md-4">
  53.                                         <a href="{{ url('sitemap_section_property_type_location_flow', {section: section.slug, property_type: propertyType.slug, location: searchableLocation.locationSlug}) }}">
  54.                                             {{ searchableLocation.locationTitle }}
  55.                                         </a>
  56.                                     </li>
  57.                                 {% endfor %}
  58.                             </ul>
  59.                         {% endif %}
  60.                         {% if parentLocationBuild is defined %}
  61.                             <ul class="breadcrumb">
  62.                                 {{ parentLocationBuild|raw }}
  63.                             </ul>
  64.                         {% endif %}
  65.                         {% if locationBuild is defined %}
  66.                             {{ locationBuild|raw }}
  67.                         {% endif %}
  68.                     {% endif %}
  69.                 </div>
  70.             </div>
  71.         </div>
  72.     </section>
  73. {% endblock %}
  74. {% block footer %}
  75.     {% include "footer.v2.html.twig" %}
  76. {% endblock %}