{% extends "base.html.twig" %}
{% set canonical_url = url(app.request.get('_route'), app.request.get('_route_params')) %}
{# Page title #}
{% block title %} {{ "%s.%s.%s"|format('layout.app_name'|trans, 'neighborhoods.prices_guide'|trans, location.title) }}{% endblock %}
{% block meta_description %}
{{ 'neighborhoods.prices_description'|trans({'%location%': location.title}, 'messages') }}
{% 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'})) }}"/>
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:site" content="{{ "%s%s"|format('@', 'layout.app_name'|trans) }}" />
<meta name="twitter:creator" content="{{ "%s%s"|format('@', 'layout.app_name'|trans) }}" />
<meta property="og:title" content="{{ "%s.%s.%s"|format('layout.app_name'|trans, 'neighborhoods.prices_guide'|trans, location.title) }}"/>
<meta property="og:description" content="{{ 'neighborhoods.sharing.description_location'|trans({'%location%': location.title}) }}" />
<meta property="og:image" content="{% if location.mainPhoto %}{{ custom_vich_uploader_asset(location.mainPhoto.file, 'file') | thumbnail('large')}}{% endif %}" />
<meta property="og:url" content="{{ url('neighborhood_main_page', {'location_slug': location.slug}) }}" />
<meta property="og:site_name" content="{{ 'layout.app_name'|trans }}" />
<meta property="fb:app_id" content="{{ facebook_app_id }}"/>
<link rel="canonical" href="{{ canonical_url }}"/>
{% endblock %}
{% block body %}
<section id="{{ app.request.get('_route') }}">
<div class="container">
<div class="row">
<div class="col-md-12">
<div id="neighborhood-cover"{% if location.mainPhoto %} style="background-image: url({{ custom_vich_uploader_asset(location.mainPhoto.file, 'file') | thumbnail('large') }});"{% endif %}>
<h1 class="text-center">{{ 'layout.neighporhood.home'|trans({'%location%': location.title}, 'messages') }}</h1>
</div>
</div>
</div>
</div><!-- end of .container (cover & breadcrumb) -->
<div class="container">
<div class="row">
<div class="col-md-12 hidden-xs">
{% if location.compoundFilter %}
{% set compound = 1 %}
{% else %}
{% set compound = null %}
{% endif %}
{% set neighborhood_breadcrumb = knp_menu_get( 'aqarmap.neighborhood.breadcrumb' , [], {"location": location , "compound": compound}) %}
{{ knp_menu_render(neighborhood_breadcrumb , {
'allow_safe_labels': true,
'template': 'knp_menu_ordered.html.twig',
'currentClass': 'active'
}) }}
</div>
{% for neighborhood in location.getChildrenSortedById({'neighborhoodFilter': true}) %}
<div class="col-md-4 col-sm-6">
{% include '@AqarmapNeighborhoodBundle/card.html.twig' with {'neighborhood': neighborhood} %}
</div>
{% endfor %}
</div>
<div class="discussions col-md-12">
<div class="tab-content searchResultsContainer interested-listings subsLinks more-locations-container">
{% include "@AqarmapMainBundle/Default/locationsSubLinks.html.twig" %}
</div>
</div>
</div>
</section>
{% endblock %}
{% block footer %}
{% include "footer.v2.html.twig" %}
{% endblock %}