src/Aqarmap/Bundle/NeighborhoodBundle/Resources/views/Default/location_neighborhood_level.html.twig line 1

Open in your IDE?
  1. {% extends "base.html.twig" %}
  2. {% set canonical_url = url(app.request.get('_route'), app.request.get('_route_params')) %}
  3. {# Page title #}
  4. {% block title %} {{ "%s.%s.%s"|format('layout.app_name'|trans, 'neighborhoods.prices_guide'|trans, location.title) }}{% endblock %}
  5. {% block meta_description %}
  6.     {{ 'neighborhoods.prices_description'|trans({'%location%': location.title}, 'messages') }}
  7. {% endblock %}
  8. {% block htmlhead %}
  9.     <link rel="alternate" hreflang="ar" href="{{ url(app.request.get('_route'), app.request.get('_route_params')|merge({'_locale': 'ar'})) }}" />
  10.     <link rel="alternate" hreflang="en" href="{{ url(app.request.get('_route'), app.request.get('_route_params')|merge({'_locale': 'en'})) }}" />
  11.     <link rel="alternate" hreflang="x-default"
  12.         href="{{ url(app.request.get('_route'), app.request.get('_route_params')|merge({'_locale': 'ar'})) }}"/>
  13.     <meta name="twitter:card" content="summary_large_image" />
  14.     <meta name="twitter:site" content="{{ "%s%s"|format('@', 'layout.app_name'|trans) }}" />
  15.     <meta name="twitter:creator" content="{{ "%s%s"|format('@', 'layout.app_name'|trans) }}" />
  16.     <meta property="og:title" content="{{ "%s.%s.%s"|format('layout.app_name'|trans, 'neighborhoods.prices_guide'|trans, location.title) }}"/>
  17.     <meta property="og:description" content="{{ 'neighborhoods.sharing.description_location'|trans({'%location%': location.title}) }}" />
  18.     <meta property="og:image" content="{% if location.mainPhoto %}{{ custom_vich_uploader_asset(location.mainPhoto.file, 'file') | thumbnail('large')}}{% endif %}" />
  19.     <meta property="og:url" content="{{ url('neighborhood_main_page', {'location_slug': location.slug}) }}" />
  20.     <meta property="og:site_name" content="{{ 'layout.app_name'|trans }}" />
  21.     <meta property="fb:app_id" content="{{ facebook_app_id }}"/>
  22.     <link rel="canonical" href="{{ canonical_url }}"/>
  23. {% endblock %}
  24. {% block body %}
  25.     <section id="{{ app.request.get('_route') }}">
  26.         <div class="container">
  27.             <div class="row">
  28.                 <div class="col-md-12">
  29.                     <div id="neighborhood-cover"{% if location.mainPhoto %} style="background-image: url({{ custom_vich_uploader_asset(location.mainPhoto.file, 'file') | thumbnail('large') }});"{% endif %}>
  30.                         <h1 class="text-center">{{ 'layout.neighporhood.home'|trans({'%location%': location.title}, 'messages') }}</h1>
  31.                     </div>
  32.                 </div>
  33.             </div>
  34.         </div><!-- end of .container (cover & breadcrumb) -->
  35.         <div class="container">
  36.         <div class="row">
  37.             <div class="col-md-12 hidden-xs">
  38.                 {% if location.compoundFilter %}
  39.                     {% set compound = 1  %}
  40.                 {% else %}
  41.                     {% set compound = null  %}
  42.                 {% endif %}
  43.                 {% set neighborhood_breadcrumb = knp_menu_get( 'aqarmap.neighborhood.breadcrumb' , [], {"location": location , "compound": compound}) %}
  44.                 {{ knp_menu_render(neighborhood_breadcrumb , {
  45.                 'allow_safe_labels': true,
  46.                 'template': 'knp_menu_ordered.html.twig',
  47.                 'currentClass': 'active'
  48.                 }) }}
  49.             </div>
  50.             {% for neighborhood in location.getChildrenSortedById({'neighborhoodFilter': true}) %}
  51.                 <div class="col-md-4 col-sm-6">
  52.                     {% include '@AqarmapNeighborhoodBundle/card.html.twig' with {'neighborhood': neighborhood} %}
  53.                 </div>
  54.             {% endfor %}
  55.     </div>
  56.             <div class="discussions col-md-12">
  57.                 <div class="tab-content searchResultsContainer interested-listings subsLinks more-locations-container">
  58.                     {% include "@AqarmapMainBundle/Default/locationsSubLinks.html.twig" %}
  59.                 </div>
  60.             </div>
  61.     </div>
  62. </section>
  63. {% endblock %}
  64. {% block footer %}
  65.     {% include "footer.v2.html.twig" %}
  66. {% endblock %}