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

Open in your IDE?
  1. <div id="neighborhood-details">
  2.     <div class="container">
  3.         <div class="row">
  4.             <div class="col-md-12">
  5.                 <div class="page-header">
  6.                     <h2 class="custom-header">{{ 'neighborhoods.headline.about_location'|trans({'%location%': location.title}) }}</h2>
  7.                 </div>
  8.             </div>
  9.             {% if location.photos.count > 0 %}
  10.                 <div class="col-xs-12  col-sm-7">
  11.                     <div id="neighborhood-photo" class="carousel slide" data-ride="carousel">
  12.                             <!-- Indicators -->
  13.                             <ol class="carousel-indicators">
  14.                                 {% for photo in location.photos %}
  15.                                     <li data-target="#neighborhood-photo" data-slide-to="{{ loop.index - 1 }}"{% if loop.index == 1  %} class="active"{% endif %}></li>
  16.                                 {% endfor %}
  17.                             </ol>
  18.                             <!-- Wrapper for slides -->
  19.                             <div class="carousel-inner" role="listbox">
  20.                                 {% for photo in location.photos %}
  21.                                     <div class="carousel-item {% if loop.index == 1  %} active {% endif %}">
  22.                                         <img src="{{ custom_vich_uploader_asset(photo.file, 'file')| thumbnail('neighborhood-slider') }}" alt="{{ photo.caption }}">
  23.                                     </div>
  24.                                 {% endfor %}
  25.                             </div>
  26.                             <!-- Controls -->
  27.                             <a class="left carousel-control carousel-control-prev" href="#neighborhood-photo" role="button" data-slide="prev">
  28.                                 <span class="fa fa-chevron-left" aria-hidden="true"></span>
  29.                                 <span class="sr-only">Previous</span>
  30.                             </a>
  31.                             <a class="right carousel-control carousel-control-next" href="#neighborhood-photo" role="button" data-slide="next">
  32.                                 <span class="fa fa-chevron-right" aria-hidden="true"></span>
  33.                                 <span class="sr-only">Next</span>
  34.                             </a>
  35.                         </div>
  36.                 </div>
  37.             {% endif %}
  38.             <div class="col-xs-12 {% if location.photos.count > 0 %} col-sm-5 {% else %} col-sm-12 {% endif %}">
  39.                 <div id="neighborhoodDescription">
  40.                     {{ location.description|replace({"&nbsp;": ''})|raw }}
  41.                 </div>
  42.                 {% if location.description|length > 1500 %}
  43.                     <a href="javascript:void(0)" class="see-more"></a>
  44.                 {% endif %}
  45.             </div>
  46.         </div>
  47.     </div>
  48. </div><!-- end #neighborhood-details -->