templates/Magazine/Includes/heroPortal.html.twig line 1

Open in your IDE?
  1. {% do jsConfig().add('lazyImg', true) %}
  2. {% if editmode %}
  3.     <div class="editmode-box editmode-box--info">
  4.         <div class="editmode-box__header">
  5.             BG Image
  6.         </div>
  7.         {{ pimcore_relation('hero2', {'types': ['asset'], 'subtypes': ['image']}) }}
  8.     </div>
  9. {% endif %}
  10. <div class="hero-magazine {{ styleModifier | default('content-block') }}">
  11.     <figure class="hero-magazine__image embed-responsive hero-magazine__embed--full-width">
  12.         {% if not pimcore_relation('hero2').empty %}
  13.             {{ pimcore_relation('hero2').element.thumbnail('hero-magazine--full-width').html({
  14.                 imgAttributes: {
  15.                     'class': 'embed-responsive-item'
  16.                 },
  17.                 'lowQualityPlaceholder': true
  18.             })|raw }}
  19.             {{ pimcore_relation('hero2').element.thumbnail('hero-magazine--full-width').html({
  20.                 imgAttributes: {
  21.                     'class': 'embed-responsive-item'
  22.                 },
  23.             })|raw }}
  24.         {% endif %}
  25.     </figure>
  26.     {% if editmode or not pimcore_input('hero-headline').empty %}
  27.         <div class="hero-magazine__headline">
  28.             {% do elements_head_title(pimcore_input('hero-headline').frontend) %}
  29.             {{ pimcore_input('hero-headline', {'width': 750})}}
  30.         </div>
  31.     {% endif %}
  32. </div>