src/Aqarmap/Bundle/MainBundle/Resources/views/Default/sitemapFlow.html.twig line 1
{% extends "base.html.twig" %}{# Page title #}{% block title %}{{ parent() }} • {{ ('layout.homepage_'~country) |trans }}{% endblock %}{% block htmlhead %}<link rel="alternate" hreflang="ar"href="{{ url(app.request.get('_route'), app.request.get('_route_params')|merge({'_locale': 'ar'})) }}"/><link rel="alternate" hreflang="en"href="{{ url(app.request.get('_route'), app.request.get('_route_params')|merge({'_locale': 'en'})) }}"/><link rel="alternate" hreflang="x-default"href="{{ url(app.request.get('_route'), app.request.get('_route_params')|merge({'_locale': 'ar'})) }}"/>{% endblock %}{% block body %}{% set histogramMaxPrices = {'for-sale': [100000, 200000, 300000, 400000, 500000, 600000, 700000, 800000, 900000, 1000000,1250000, 1500000, 1750000, 2000000, 2250000, 2500000, 2750000, 3000000, 3250000,3500000, 3750000, 4000000, 4500000, 5000000, 6000000, 7000000, 8000000, 9000000,10000000, 15000000, 20000000, 30000000, 40000000, 50000000, 100000000, 250000000,500000000],'for-rent': [250, 500, 1000, 1500, 2000, 2500, 3000, 3500, 4000, 4500, 5000, 6000, 7000, 8000,9000, 10000, 15000, 20000, 30000, 40000, 50000, 75000, 100000, 250000, 500000]} %}<section class="container filterContainer {{ app.request.get('_route') }}"><div class="row"><div class="col-md-12"><div class="page-header"><h1>{{ 'layout.sitemap'|trans }}</h1></div><div class="container">{% if searchableSections is defined %}<ul>{% for searchableSection in searchableSections %}<li><a title="{{ 'layout.title.search_short'|trans({'%property_type%': '','%section%': searchableSection.title}) }}"href="{{ url('sitemap_section_flow', {section: searchableSection.slug}) }}">{{ searchableSection.title }}</a></li>{% endfor %}</ul>{% elseif section is defined %}<h2>{% if propertyType is defined and propertyType %}<a href="{{ url('property_type_search', {section_slug: section.slug, property_type_slug: propertyType.slug}) }}">{{ propertyType.title }}</a>{% endif %}<a href="{{ url('homepage') }}">{{ section.title }}</a></h2>{% if searchableProperties is defined and not propertyType %}<ul>{% for searchableProperty in searchableProperties %}<li><a href="{{ url('sitemap_section_property_type_flow', {section: section.slug, property_type: searchableProperty.propertyTypeSlug}) }}">{{ searchableProperty.propertyTypeTitle }}</a></li>{% endfor %}</ul>{% endif %}{% if not propertyType and section.slug in histogramMaxPrices|keys %}<h3>{{ 'search_filters.price_range'|trans }}</h3><ul>{% for maxPrice in attribute(histogramMaxPrices, section.slug) %}<li class="col-md-4"><a href="{{ url('property_type_search', {section_slug: section.slug, property_type_slug: 'property-type', maxPrice: maxPrice}) }}">{{ maxPrice|number_format(0, '.', ',') }}</a></li>{% endfor %}</ul>{% endif %}{% if searchableLocations is defined and propertyType %}<ul class="col-md-12">{% for searchableLocation in searchableLocations %}<li class="col-md-4"><a href="{{ url('sitemap_section_property_type_location_flow', {section: section.slug, property_type: propertyType.slug, location: searchableLocation.locationSlug}) }}">{{ searchableLocation.locationTitle }}</a></li>{% endfor %}</ul>{% endif %}{% if parentLocationBuild is defined %}<ul class="breadcrumb">{{ parentLocationBuild|raw }}</ul>{% endif %}{% if locationBuild is defined %}{{ locationBuild|raw }}{% endif %}{% endif %}</div></div></div></section>{% endblock %}{% block footer %}{% include "footer.v2.html.twig" %}{% endblock %}