templates/areas/wysiwygheading/view.html.twig line 1

Open in your IDE?
  1. {% set azz = '' %}
  2. {% if pimcore_select("bullets").getData() != '' %}
  3.     {% set azz = pimcore_select("bullets").getData() %}
  4. {% endif %}
  5.   {% set azzColor = pimcore_select("bulletColor").getData() %}
  6.     {% if azzColor is empty %}
  7.         {% set azzColor = 'stwh-rot-2024' %}
  8.     {% endif %}
  9. {% set Lazz = '' %}
  10. {% if pimcore_select("Lbullets").getData() != '' %}
  11.     {% set Lazz = pimcore_select("Lbullets").getData() %}
  12. {% endif %}
  13.  {% set LazzColor = pimcore_select("LbulletColor").getData() %}
  14.     {% if LazzColor is empty %}
  15.         {% set LazzColor = 'stwh-rot-2024' %}
  16.     {% endif %}
  17. {% set Mazz = '' %}
  18. {% if pimcore_select("Mbullets").getData() != '' %}
  19.     {% set Mazz = pimcore_select("Mbullets").getData() %}
  20. {% endif %}
  21.  {% set MazzColor = pimcore_select("MbulletColor").getData() %}
  22.     {% if MazzColor is empty %}
  23.         {% set MazzColor = 'stwh-rot-2024' %}
  24.     {% endif %}
  25. {% set Razz = '' %}
  26. {% if pimcore_select("Rbullets").getData() != '' %}
  27.     {% set Razz = pimcore_select("Rbullets").getData() %}
  28. {% endif %}
  29.   {% set RazzColor = pimcore_select("RbulletColor").getData() %}
  30.     {% if RazzColor is empty %}
  31.         {% set RazzColor = 'stwh-rot-2024' %}
  32.     {% endif %}
  33. {% if editmode %}
  34.     <div class="bg-gray-100 p-5 wysiwyg-heading">
  35.         {% include 'areaHeadAndFooter.html.twig' with { 'header': 'STWH: WYSIWYG' } %}
  36.         {% include 'padding.html.twig' %}
  37.         <div class="my-3 flex flex-wrap overflow-hidden">
  38.             <div class="w-1/4 overflow-hidden">
  39.                 Darstellung:
  40.             </div>
  41.             <div class="w-3/4 overflow-hidden">
  42.                 {{ pimcore_select("darstellung", {
  43.                     "store": [
  44.                         ["headline", "Nur eine Überschrift"],
  45.                         ["full", "Text über volle Content-Breite"],
  46.                         ["half", "Text über 2 Spalten"],
  47.                         ["three", "Text über 3 Spalten"],
  48.                         ["servicemodal", "Text über 3 Spalten in Services-Modal"],
  49.                         ["halfcenter", "Text über halbe Content-Breite, zentriert"],
  50.                         ["1-2v_1-2t", "Halb Video, halb Text (Content-Breite)"]
  51.                     ],
  52.                     "defaultValue" : "full",
  53.                     "reload" : true,
  54.                     "width" : 400
  55.                 }) }}
  56.             </div>
  57.         </div>
  58.         <hr />
  59.         <div class="my-3 flex flex-wrap overflow-hidden">
  60.             <div class="w-1/2 overflow-hidden">
  61.                 {% include 'color-selector.html.twig' with { 'name': 'color', 'description': 'Hintergrundfarbe' } %}
  62.             </div>
  63.         </div>
  64.         <hr />
  65.         <div class="my-3 flex flex-wrap overflow-hidden">
  66.             <div class="w-1/4 overflow-hidden">
  67.                 Content-Überschrift: (optional)
  68.             </div>
  69.             <div class="w-3/4 overflow-hidden">
  70.                 {{ pimcore_textarea("headline", { "height" : 60 }) }}
  71.             </div>
  72.         </div>
  73.         <div class="my-3 flex flex-wrap overflow-hidden">
  74.             <div class="w-1/4 overflow-hidden">
  75.                 SEO:
  76.             </div>
  77.             <div class="w-1/4 overflow-hidden">
  78.                 {% include 'seo.html.twig' with { 'name': 'seo', 'default' : 'h2' } %}
  79.             </div>
  80.             <div class="w-1/2 overflow-hidden">
  81.                 {% include 'color-selector.html.twig' with { 'name': 'seoHeadlineColor', 'description': 'Farbe der Überschrift', 'type': 'accordeon' } %}
  82.             </div>
  83.         </div>
  84.         <hr />
  85.         {% set auswahl = pimcore_select("darstellung").getData() %}
  86.         <div class="my-3 flex flex-wrap overflow-hidden">
  87.             <div class="w-1/4 overflow-hidden">
  88.                 Soll die Content-Überschrift unterstrichen werden?
  89.             </div>
  90.             <div class="w-1/4 overflow-hidden">
  91.                 {{ pimcore_checkbox("hasDivider") }} JA
  92.             </div>
  93.             <div class="w-1/2 overflow-hidden">
  94.                 {% include 'color-selector.html.twig' with { 'name': 'headline-divider-color', 'description': 'Farbe vom Unterstrich', 'default': 'stwh-rot-2024' } %}
  95.             </div>
  96.             {% if auswahl == 'half'  or auswahl == '1-2v_1-2t' %}
  97.                 <div class="w-1/4 overflow-hidden">
  98.                     Text und Bild/Video vertauschen?
  99.                 </div>
  100.                 <div class="w-1/4 overflow-hidden">
  101.                     {{ pimcore_checkbox("txt-vid-reverse") }} JA
  102.                 </div>
  103.             {% endif %}
  104.         </div>
  105.         <hr />
  106.         {# ----- Text über volle Content-Breite ODER halbe Breite zentriert----- #}
  107.         {% if auswahl == 'full' %}
  108.             {% include 'areas/wysiwygheading/full.html.twig' with { 'mode': 'editmode' } %}
  109.         {% endif %}
  110.         {% if auswahl == 'halfcenter' %}
  111.             {% include 'areas/wysiwygheading/halfcenter.html.twig' with { 'mode': 'editmode' } %}
  112.         {% endif %}
  113.         {# ----- Text über 2 oder 3 Spalten ----- #}
  114.         {% if auswahl == 'half' or auswahl == 'three' %}
  115.             {% include 'areas/wysiwygheading/half_three.html.twig' with { 'mode': 'editmode', 'auswahl' : auswahl } %}
  116.         {% endif %}
  117.         {# ----- Text über 3 Spalten in Services-Modal ----- #}
  118.         {% if auswahl == 'servicemodal' %}
  119.             {% include 'areas/wysiwygheading/servicemodal.html.twig' with { 'mode': 'editmode', 'auswahl' : auswahl } %}
  120.         {% endif %}
  121.         {# ----- 1/2 Video - 1/2 Text ----- #}
  122.         {% if auswahl == '1-2v_1-2t' %}
  123.             {% include 'areas/wysiwygheading/12v_12t.html.twig' with { 'mode': 'editmode' } %}
  124.         {% endif %}
  125.     </div>
  126.     {% include 'areaHeadAndFooter.html.twig' with { 'footer': true } %}
  127. {% else %}
  128.     {% set sP1 = '' %}
  129.     {% set sP2 = '' %}
  130.     {% set sP3 = '' %}
  131.     {% if pimcore_image("secionPicture").getData() != '' %}
  132.         {% set sP1 = "background-image:url(" %}
  133.         {% set sP2 = pimcore_image("secionPicture").getThumbnail('hero-slide-image') %}
  134.         {% set sP3 = "); background-position:center center;background-size:cover;" %}
  135.     {% endif %}
  136.     <section
  137.         style="{{ sP1 }}{{ sP2 }}{{ sP3 }}"
  138.         class="wysiwyg-heading {{ pimcore_select('paddingTop') }} {{ pimcore_select('paddingBottom') }} relative bg-{{ pimcore_select('color') }}">
  139.         {% set auswahl = pimcore_select("darstellung").getData() %}
  140.         {# ----- Nur eine Überschrift ----- #}
  141.         {% if auswahl == 'headline' %}
  142.             {% include 'areas/wysiwygheading/headline.html.twig' with { 'mode': '' } %}
  143.         {% endif %}
  144.         {# ----- Text über volle Content-Breite ODER halbe Breite zentriert----- #}
  145.         {% if auswahl == 'full' %}
  146.             {% include 'areas/wysiwygheading/full.html.twig' with { 'mode': '' } %}
  147.         {% endif %}
  148.         {% if auswahl == 'halfcenter' %}
  149.             {% include 'areas/wysiwygheading/halfcenter.html.twig' with { 'mode': '' } %}
  150.         {% endif %}
  151.         {# ----- Text über 2 oder 3 Spalten ----- #}
  152.         {% if auswahl == 'half' or auswahl == 'three' %}
  153.             {% include 'areas/wysiwygheading/half_three.html.twig' with { 'mode': '', 'auswahl' : auswahl } %}
  154.         {% endif %}
  155.         {# ----- Text über 3 Spalten in Services-Modal ----- #}
  156.         {% if auswahl == 'servicemodal' %}
  157.             {% include 'areas/wysiwygheading/servicemodal.html.twig' with { 'mode': '', 'auswahl' : auswahl } %}
  158.         {% endif %}
  159.         {# ----- 1/2 Video - 1/2 Text ----- #}
  160.         {% if auswahl == '1-2v_1-2t' %}
  161.             {% include 'areas/wysiwygheading/12v_12t.html.twig' with { 'mode': '' } %}
  162.         {% endif %}
  163.     </section>
  164. {% endif %}