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

Open in your IDE?
  1. {% if editmode %}
  2.     <div class="bedescription">Text</div>
  3.     {{ pimcore_input("heading") }}
  4.     <div class="bedescription">Farbe</div><br>
  5.     {{ pimcore_select("color", {
  6.         "store": constant('App\\Utils\\Constant::AVAILABLE_COLORS'),
  7.         "defaultValue": "",
  8.     }) }}
  9.     <br>
  10.     <div class="bedescription">Einzug</div><br>
  11.     {{ pimcore_select("einzug_head", {
  12.         "store": [
  13.             ["Ja", "Ja"],
  14.             ["Nein", "Nein"],
  15.         ],
  16.         "defaultValue": "Ja"
  17.     }) }}
  18.     <br>
  19.     <div class="bedescription">Zentriert</div><br>
  20.     {{ pimcore_select("zentriert_heading", {
  21.         "store": [
  22.             ["Ja", "Ja"],
  23.             ["Nein", "Nein"],
  24.         ],
  25.         "defaultValue": "Nein"
  26.     }) }}
  27.     <br>
  28.     <div class="bedescription">Keine Formatierung (wie im Text-Editor)</div><br>
  29.     {{ pimcore_select("format_heading", {
  30.         "store": [
  31.             ["", "Nein"],
  32.             ["h-normal h4", "Ja"],
  33.         ],
  34.         "defaultValue": "Nein"
  35.     }) }}
  36. {% else %}
  37.     {% if pimcore_select("einzug_head") != "Nein" %}
  38.         <div class="einzug">
  39.         <div class="container-md">
  40.     {% endif %}
  41.     <div class="container-fluid">
  42.         <section class="heading py-4">
  43.             <h3 class="{{ pimcore_select("format_heading")}} {{ pimcore_select("color").getData() }}_bg {% if pimcore_select("zentriert_heading") == "Ja" %}text-center{% endif %}">{{ pimcore_input("heading")|formatLINEtoItalic|raw }}</h3>
  44.         </section>
  45.     </div>
  46.     {% if pimcore_select("einzug_head") != "Nein" %}
  47.         </div>
  48.         </div>
  49.     {% endif %}
  50. {% endif %}