templates/areas/picture-text/view.html.twig line 1

Open in your IDE?
  1. <div class="picture-text mb-5 mb-md-7">
  2.     <div class="picture-text-visual {% if pimcore_select("pt-order").getData() == "picture-right" %}order-md-1{% endif %}">
  3.         {% if editmode %}
  4.             {{ pimcore_image("pt-image") }}
  5.         {% else %}
  6.             <picture>
  7.                 {% if not pimcore_image('pt-image').isEmpty() %}
  8.                     <source media="(min-width:768px)" srcset="{{ pimcore_image('pt-image').getSrc() }}">
  9.                 {% endif %}
  10.                 {% if not pimcore_image('pt-mobile-image').isEmpty() %}
  11.                     <img src="{{ pimcore_image('pt-mobile-image').getSrc() }}" alt="{{ pimcore_image('pt-mobile-image').getAlt() }}"/>
  12.                 {% else %}
  13.                     <img src="{{ pimcore_image('pt-image').getSrc() }}" alt="{{ pimcore_image('pt-image').getAlt() }}"/>
  14.                 {% endif %}
  15.             </picture>
  16.         {% endif %}
  17.     </div>
  18.     <div class="picture-text-words">
  19.         <div class="picture-text-words-inner">
  20.             <h3>{{ pimcore_input('pt-headline') }}</h3>
  21.             <p>{{ pimcore_input('pt-text') }}</p>
  22.             {{ pimcore_link('pt-link', {'class' : 'picture-text-link'}) }}
  23.         </div>
  24.     </div>
  25. </div>