{% extends "base.html.twig" %}
{% set SHARING_IMAGE = constant('Aqarmap\\Bundle\\NeighborhoodBundle\\Constant\\SharingConstant::IMAGE') %}
{# Page title #}
{% block title %}{{ 'neighborhoods.listing_prices'|trans }} • {{ parent() }}{% 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"|format('layout.app_name'|trans, 'neighborhoods.prices_guide'|trans) }}"/>
<meta property="og:description" content="{{ 'neighborhoods.sharing.description'|trans }}" />
<meta property="og:image" content="{{ SHARING_IMAGE }}" />
<meta property="og:url" content="{{ url('neighborhood_all_locations') }}" />
<meta property="og:site_name" content="{{ 'layout.app_name'|trans }}" />
<meta property="fb:app_id" content="{{ facebook_app_id }}"/>
{% endblock %}
{% block body %}
<section class="container {{ app.request.get('_route') }}">
<div class="row">
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
<div class="hidden-sm hidden-xs">
{% set NEIGHBORHOOD_BREADCRUMB = knp_menu_get('aqarmap.neighborhood.breadcrumb') %}
{{
knp_menu_render(NEIGHBORHOOD_BREADCRUMB , {
'allow_safe_labels': true,
'template': 'knp_breadcrumbs.html.twig',
'currentAsLink': true,
'currentClass': 'active',
})
}}
</div>
<div class="page-header">
<div class="row">
<div class="col-sm-6 col-xs-12 my-auto">
<h1>{{ 'neighborhoods.page_title'|trans }}</h1>
</div>
<div class="col-sm-6 col-xs-12 my-auto">
<small class=" flip header-title">
<span class="fa fa-star icon" aria-hidden="true"></span>
{{ 'neighborhoods.rating.scale'|trans }}
</small>
</div>
</div>
</div>
{% for neighborhood in locations %}
<a href="{{ path('neighborhood_main_page', {'location_slug': neighborhood.slug}) }}">
<div class="col-lg-4 col-md-4 col-sm-6 col-xs-12">
<div class="neighborhood-card-container">
<div class="location-info">
<h6 class="location-title">
{{ neighborhood.title }}
</h6>
{% if neighborhood.rating %} {% if neighborhood.rating.overall %}
<h6 class="location-rate">
<span>{{ neighborhood.rating.overall }}</span>
<span class="far fa-star rate-icon" aria-hidden="true"></span>
</h6>
{% endif %}{% endif %}
</div>
<div class="n-pic"{% if neighborhood.mainPhoto %} style="background-image: url('{{ custom_vich_uploader_asset(neighborhood.mainPhoto.file, 'file') | thumbnail('search-thumb') }}');"
{% else %} style="background-image: url('/images/location_blank.png');" {% endif %}>
</div>
</div>
</div>
</a>
{% endfor %}
</div>
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12 mobile-breadcrumb visible-sm visible-xs">
{% set NEIGHBORHOOD_BREADCRUMB = knp_menu_get('aqarmap.neighborhood.breadcrumb') %}
{{
knp_menu_render(NEIGHBORHOOD_BREADCRUMB, {
'allow_safe_labels': true,
'template': 'knp_breadcrumbs.html.twig',
'currentAsLink': true,
'currentClass': 'active'
})
}}
</div>
<div class="discussions col-lg-12 col-md-12 col-sm-12 col-xs-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 %}
{% block javascripts %}
{{ parent() }}
<script>
jQuery(document).ready(function ($) {
loadMoreInit('.sectionLoadMore');
});
</script>
{% endblock %}