templates/areas/whatWeDo/whatWeDo.html.twig line 1

Open in your IDE?
  1. <div class="what-we-do">
  2.     {%- if editmode -%}
  3.         <div class="what-we-do__topleft">
  4.             {{- pimcore_textarea('topleftText', {
  5.                 'placeholder': 'Text'
  6.             }) -}}
  7.             <h2 class="what-we-do__headline">
  8.                 {{- pimcore_input('headline', {
  9.                     'placeholder': 'Sektions-Überschrift'
  10.                 }) -}}
  11.             </h2>
  12.         </div>
  13.         <div class="what-we-do__topmid">
  14.             <svg class="what-we-do__logo"
  15.                 aria-hidden="true"
  16.                 focusable="false">
  17.                 <use xlink:href="#logo-dark" />
  18.             </svg>
  19.         </div>
  20.         <div class="what-we-do__topright">
  21.             <div class="what-we-do__topright-text">
  22.                 {{- pimcore_input('topRightTextTop', {
  23.                     'placeholder': 'Text'
  24.                 }) -}}
  25.             </div>
  26.             <div class="what-we-do__topright-value">
  27.                 {{- pimcore_input('topRightValue', {
  28.                     'placeholder': '12345'
  29.                 }) -}}
  30.             </div>
  31.             <div class="what-we-do__topright-text">
  32.                 {{- pimcore_input('topRightTextBottom', {
  33.                     'placeholder': 'Text'
  34.                 }) -}}
  35.             </div>
  36.         </div>
  37.         <picture class="what-we-do__left-image">
  38.             {{- pimcore_image('imageleft', {
  39.                 'class': 'what-we-do__image'
  40.             }) -}}
  41.         </picture>
  42.         <div class="what-we-do__center">
  43.             <div class="what-we-do__we">
  44.                 {{- pimcore_input('we', {
  45.                     'placeholder': 'Wir.'
  46.                 }) -}}
  47.             </div>
  48.         </div>
  49.         <figure class="what-we-do__bottom-image">
  50.             <picture class="what-we-do__bottom-picture">
  51.                 {{- pimcore_image('imagebottom', {
  52.                     'class': 'what-we-do__image'
  53.                 }) -}}
  54.             </picture>
  55.             <figcaption class="what-we-do__bottom-caption">
  56.                 <div class="what-we-do__bottom-caption-text">
  57.                     {{- pimcore_input('bottomCaptionText', {
  58.                         'placeholder': 'Text'
  59.                     }) -}}
  60.                 </div>
  61.                 <div class="what-we-do__location">
  62.                     {{- pimcore_input('location', {
  63.                         'placeholder': 'Ort'
  64.                     })-}}
  65.                 </div>
  66.             </figcaption>
  67.         </figure>
  68.         <picture class="what-we-do__right-image">
  69.             {{- pimcore_image('imageright', {
  70.                 'class': 'what-we-do__image'
  71.             }) -}}
  72.         </picture>
  73.     {%- else -%}
  74.         {%- set topleftText = pimcore_textarea('topleftText') -%}
  75.         {%- set headline = pimcore_input('headline') -%}
  76.         {%- set topRightTextTop = pimcore_input('topRightTextTop') -%}
  77.         {%- set topRightValue = pimcore_input('topRightValue') -%}
  78.         {%- set topRightTextBottom = pimcore_input('topRightTextBottom') -%}
  79.         {%- set imageleft = pimcore_image('imageleft', {
  80.             'thumbnail': 'whatWeDoImageLeft',
  81.             'pictureAttributes': {
  82.                 'class': 'what-we-do__left-image'
  83.             },
  84.             'imgAttributes': {
  85.                 'class': 'what-we-do__image',
  86.                 'loading': 'lazy'
  87.             }
  88.         }) -%}
  89.         {%- set weeee = pimcore_input('we') -%}
  90.         {%- set imagebottom = pimcore_image('imagebottom', {
  91.             'thumbnail': 'whatWeDoImageBottom',
  92.             'pictureAttributes': {
  93.                 'class': 'what-we-do__bottom-picture'
  94.             },
  95.             'imgAttributes': {
  96.                 'class': 'what-we-do__image',
  97.                 'loading': 'lazy'
  98.             }
  99.         }) -%}
  100.         {%- set bottomCaptionText = pimcore_input('bottomCaptionText') -%}
  101.         {%- set location = pimcore_input('location') -%}
  102.         {%- set imageright = pimcore_image('imageright', {
  103.             'thumbnail': 'whatWeDoImageLeft',
  104.             'pictureAttributes': {
  105.                 'class': 'what-we-do__right-image'
  106.             },
  107.             'imgAttributes': {
  108.                 'class': 'what-we-do__image',
  109.                 'loading': 'lazy'
  110.             }
  111.         }) -%}
  112.         <div class="what-we-do__topleft">
  113.             {%- if not topleftText.isEmpty() -%}
  114.                 <p class="what-we-do__topleft-text">
  115.                     {{- topleftText|nl2br -}}
  116.                 </p>
  117.             {%- endif -%}
  118.             {%- if not headline.isEmpty() -%}
  119.                 <h2 class="what-we-do__headline">
  120.                     {{- headline|raw -}}
  121.                 </h2>
  122.             {%- endif -%}
  123.         </div>
  124.         <div class="what-we-do__topmid">
  125.             <svg class="what-we-do__logo"
  126.                 aria-hidden="true"
  127.                 focusable="false">
  128.                 <use xlink:href="#logo-dark" />
  129.             </svg>
  130.         </div>
  131.         <div class="what-we-do__topright">
  132.             <div class="what-we-do__topright-content">
  133.                 {%- if not topRightTextTop.isEmpty() -%}
  134.                     <p class="what-we-do__topright-text">
  135.                         {{- topRightTextTop|raw -}}
  136.                     </p>
  137.                 {%- endif -%}
  138.                 {%- if not topRightValue.isEmpty() -%}
  139.                     <p class="what-we-do__topright-value">
  140.                         {{- topRightValue|raw -}}
  141.                     </p>
  142.                 {%- endif -%}
  143.                 {%- if not topRightTextBottom.isEmpty() -%}
  144.                     <p class="what-we-do__topright-text">
  145.                         {{- topRightTextBottom|raw -}}
  146.                     </p>
  147.                 {%- endif -%}
  148.             </div>
  149.         </div>
  150.         {%- if not imageleft.isEmpty() -%}
  151.             {{- imageleft|raw -}}
  152.         {%- else -%}
  153.             <div class="what-we-do__image-left"></div>
  154.         {%- endif -%}
  155.         <div class="what-we-do__center">
  156.             {%- if not weeee.isEmpty() -%}
  157.                 <p class="what-we-do__we">
  158.                     {{- weeee|raw -}}
  159.                 </p>
  160.             {%- endif -%}
  161.         </div>
  162.         {%- if not imagebottom.isEmpty() -%}
  163.             <figure class="what-we-do__bottom-image">
  164.                 {{- imagebottom|raw -}}
  165.                 {%- if not bottomCaptionText.isEmpty() or not location.isEmpty() -%}
  166.                     <figcaption class="what-we-do__bottom-caption">
  167.                         {%- if not bottomCaptionText.isEmpty() -%}
  168.                             <p class="what-we-do__bottom-caption-text">
  169.                                 {{- bottomCaptionText|raw -}}
  170.                             </p>
  171.                         {%- endif -%}
  172.                         {%- if not location.isEmpty() -%}
  173.                             <p class="what-we-do__location">
  174.                                 {{- location|raw -}}
  175.                             </p>
  176.                         {%- endif -%}
  177.                     </figcaption>
  178.                 {%- endif -%}
  179.             </figure>
  180.         {%- else -%}
  181.             <div class="what-we-do__bottom-image"></div>
  182.         {%- endif -%}
  183.         {%- if not imageright.isEmpty() -%}
  184.             {{- imageright|raw -}}
  185.         {%- else -%}
  186.             <div class="what-we-do__image-right"></div>
  187.         {%- endif -%}
  188.     {%- endif -%}
  189. </div>