src/Aqarmap/Bundle/NeighborhoodBundle/Resources/views/Default/locations.html.twig line 92

Open in your IDE?
  1. {% extends "base.html.twig" %}
  2. {% set SHARING_IMAGE = constant('Aqarmap\\Bundle\\NeighborhoodBundle\\Constant\\SharingConstant::IMAGE') %}
  3. {# Page title #}
  4. {% block title %}{{ 'neighborhoods.listing_prices'|trans }} • {{ parent() }}{% endblock %}
  5. {% block htmlhead %}
  6.     <link rel="alternate" hreflang="ar" href="{{ url(app.request.get('_route'), app.request.get('_route_params')|merge({'_locale': 'ar'})) }}" />
  7.     <link rel="alternate" hreflang="en" href="{{ url(app.request.get('_route'), app.request.get('_route_params')|merge({'_locale': 'en'})) }}" />
  8.     <link rel="alternate" hreflang="x-default"
  9.         href="{{ url(app.request.get('_route'), app.request.get('_route_params')|merge({'_locale': 'ar'})) }}"/>
  10.     <meta name="twitter:card" content="summary_large_image" />
  11.     <meta name="twitter:site" content="{{ "%s%s"|format('@', 'layout.app_name'|trans) }}" />
  12.     <meta name="twitter:creator" content="{{ "%s%s"|format('@', 'layout.app_name'|trans) }}" />
  13.     <meta property="og:title" content="{{ "%s.%s"|format('layout.app_name'|trans, 'neighborhoods.prices_guide'|trans) }}"/>
  14.     <meta property="og:description" content="{{ 'neighborhoods.sharing.description'|trans }}" />
  15.     <meta property="og:image" content="{{ SHARING_IMAGE }}" />
  16.     <meta property="og:url" content="{{ url('neighborhood_all_locations') }}" />
  17.     <meta property="og:site_name" content="{{ 'layout.app_name'|trans }}" />
  18.     <meta property="fb:app_id" content="{{ facebook_app_id }}"/>
  19. {% endblock %}
  20. {% block body %}
  21. <section class="container  {{ app.request.get('_route') }}">
  22.     <div class="row">
  23.         <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
  24.             <div class="hidden-sm hidden-xs">
  25.                 {% set NEIGHBORHOOD_BREADCRUMB = knp_menu_get('aqarmap.neighborhood.breadcrumb') %}
  26.                 {{
  27.                     knp_menu_render(NEIGHBORHOOD_BREADCRUMB , {
  28.                         'allow_safe_labels': true,
  29.                         'template': 'knp_breadcrumbs.html.twig',
  30.                         'currentAsLink': true,
  31.                         'currentClass': 'active',
  32.                     })
  33.                 }}
  34.             </div>
  35.             <div class="page-header">
  36.                 <div class="row">
  37.                     <div class="col-sm-6 col-xs-12 my-auto">
  38.                          <h1>{{ 'neighborhoods.page_title'|trans }}</h1>
  39.                     </div>
  40.                     <div class="col-sm-6 col-xs-12 my-auto">
  41.                        <small class=" flip header-title">
  42.                              <span class="fa fa-star icon" aria-hidden="true"></span>
  43.                               {{ 'neighborhoods.rating.scale'|trans }}
  44.                         </small>
  45.                     </div>
  46.                 </div>
  47.             </div>
  48.         {% for neighborhood in locations %}
  49.             <a href="{{ path('neighborhood_main_page', {'location_slug': neighborhood.slug}) }}">
  50.                 <div class="col-lg-4 col-md-4 col-sm-6 col-xs-12">
  51.                     <div class="neighborhood-card-container">
  52.                         <div class="location-info">
  53.                             <h6 class="location-title">
  54.                                 {{ neighborhood.title }}
  55.                             </h6>
  56.                             {% if neighborhood.rating %} {% if neighborhood.rating.overall %}
  57.                                 <h6 class="location-rate">
  58.                                     <span>{{ neighborhood.rating.overall }}</span>
  59.                                     <span class="far fa-star rate-icon" aria-hidden="true"></span>
  60.                                 </h6>
  61.                             {% endif %}{% endif %}
  62.                         </div>
  63.                         <div class="n-pic"{% if neighborhood.mainPhoto %} style="background-image: url('{{ custom_vich_uploader_asset(neighborhood.mainPhoto.file, 'file') | thumbnail('search-thumb') }}');"
  64.                         {% else %} style="background-image: url('/images/location_blank.png');" {% endif %}>
  65.                         </div>
  66.                     </div>
  67.                 </div>
  68.             </a>
  69.         {% endfor %}
  70.         </div>
  71.         <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12 mobile-breadcrumb visible-sm visible-xs">
  72.             {% set NEIGHBORHOOD_BREADCRUMB = knp_menu_get('aqarmap.neighborhood.breadcrumb') %}
  73.             {{
  74.                 knp_menu_render(NEIGHBORHOOD_BREADCRUMB, {
  75.                     'allow_safe_labels': true,
  76.                     'template': 'knp_breadcrumbs.html.twig',
  77.                     'currentAsLink': true,
  78.                     'currentClass': 'active'
  79.                 })
  80.             }}
  81.         </div>
  82.         <div class="discussions col-lg-12 col-md-12 col-sm-12 col-xs-12">
  83.             <div class="tab-content searchResultsContainer interested-listings subsLinks more-locations-container">
  84.                 {% include "@AqarmapMainBundle/Default/locationsSubLinks.html.twig" %}
  85.             </div>
  86.         </div>
  87.     </div>
  88. </section>
  89. {% endblock %}
  90. {% block footer %}
  91.     {% include "footer.v2.html.twig" %}
  92. {% endblock %}
  93. {% block javascripts %}
  94.     {{ parent() }}
  95.     <script>
  96.         jQuery(document).ready(function ($) {
  97.             loadMoreInit('.sectionLoadMore');
  98.         });
  99.     </script>
  100. {% endblock %}