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

Open in your IDE?
  1. <div class="listing-card clearfix">
  2.     <a href="{{ path('neighborhood_main_page', {'location_slug' : neighborhood.slug })}}" target="_blank">
  3.         {% if neighborhood.mainPhoto %}
  4.             <img class="lazyload" src="/images/placeholder.svg" data-src="{{ custom_vich_uploader_asset(neighborhood.mainPhoto.file, 'file') | thumbnail('search-thumb') }}" alt="{{ neighborhood.title|excludeNumbers }}" width="368">
  5.         {% else %}
  6.             <img  src="{{ asset('https://placehold.it/368x250/FCFCFC/B6B6B6&text=No+Photo') }}" alt="{{ neighborhood.title }}" width="368">
  7.         {% endif %}
  8.     </a>
  9.     <p class="titleTag"><a href="{{ path('neighborhood_main_page', {'location_slug' : neighborhood.slug })}}" target="_blank">{{ neighborhood.title }}</a></p>
  10.         {% if neighborhood.compoundFilter and neighborhood.propertyTypes|length > 0 %}
  11.             <p>
  12.                 {% for propertytype in neighborhood.propertyTypes %}
  13.                     {{ propertytype.title }} {% if not loop.last %} - {% endif %}
  14.                 {% endfor %}
  15.             </p>
  16.         {% endif %}
  17.     <div class="clearfix priceContainer">
  18.         <a href="{{ path('neighborhood_main_page', {'location_slug' : neighborhood.slug })}}" target="_blank" class="detailsButton">{{ 'layout.details_button'|trans }}</a>
  19.         {% if neighborhood.getSingleStatistics() and neighborhood.getSingleStatistics().avgPrice %}
  20.             <ul>
  21.                 <li id="price"><span class="integer">{{ neighborhood.getSingleStatistics().avgPrice|number_format }} {{ get_setting('general', 'currency')|trans }}</span>
  22.                 </li>
  23.                 <li> {{ "neighborhoods.average"|trans }}</li>
  24.             </ul>
  25.         {% endif %}
  26.     </div>
  27. </div><!-- end .neighborhood.clearfix -->