templates/web/Default/_service_card_image.html.twig line 1

Open in your IDE?
  1. <div class="col-md-5">
  2.     {% if service.logo is not null %}
  3.         <img src="{{ asset('bundles/web/assets/images/'~service.logo) }}"
  4.              height="180px"
  5.              class="img-fluid rounded-start"
  6.              width="360px"
  7.              alt="Example"/>
  8.     {% elseif service.bannerImage is not null %}
  9.         <div class="text-center">
  10.             <i class="fa {{ service.bannerImage }} fa-5x" aria-hidden="true"></i>
  11.         </div>
  12.     {% else %}
  13.         {% if loop.index is divisible by 2 %}
  14.             {% set roundedClass = 'rounded-end' %}
  15.         {% else %}
  16.             {% set roundedClass = 'rounded-start' %}
  17.         {% endif %}
  18.         <img data-src="holder.js/600x337/auto/text:{{ service.title }}/{{ colour }}"
  19.              class="img-fluid {{ roundedClass }}"
  20.              alt="{{ service.title }}">
  21.     {% endif %}
  22. </div>