templates/content/default.html.twig line 1

Open in your IDE?
  1. {% extends base_layout() %}
  2. {% block content %}
  3.     {% if editmode %}
  4.         {% if document.getParent().getParent().getKey()  == 'zeilen' %}
  5.             <style>
  6.                 .alert-info {
  7.                     --bs-alert-color: white;
  8.                     --bs-alert-bg: #007ec3;
  9.                     --bs-alert-border-color: var(--bs-info-border-subtle);
  10.                     --bs-alert-link-color: var(--bs-info-text);
  11.                 }
  12.             </style>
  13.         {% endif %}
  14.         {% if document.getParent().getParent().getKey() == 'surfen' %}
  15.             <style>
  16.                 .alert-info {
  17.                     --bs-alert-color: white;
  18.                     --bs-alert-bg: #c30000;
  19.                     --bs-alert-border-color: var(--bs-info-border-subtle);
  20.                     --bs-alert-link-color: var(--bs-info-text);
  21.                 }
  22.             </style>
  23.         {% endif %}
  24.         {% if document.getParent().getParent().getKey()  == 'suppen' %}
  25.             <style>
  26.                 .alert-info {
  27.                     --bs-alert-color: white;
  28.                     --bs-alert-bg: #9ad5dd;
  29.                     --bs-alert-border-color: var(--bs-info-border-subtle);
  30.                     --bs-alert-link-color: var(--bs-info-text);
  31.                 }
  32.             </style>
  33.         {% endif %}
  34.     {% endif %}
  35.     
  36.     <div class="container">
  37.         <div class="row">
  38.             <div class="col-12">
  39.                 <h1>{{ pimcore_input('title', {'placeholder':'Headline'}) }}</h1>
  40.                 {{ pimcore_wysiwyg('content_text', {'placeholder':'Place content here'}) }}
  41.             </div>
  42.         </div>
  43.         {% if editmode %}
  44.             <div class="row">
  45.                 <div class="col-12">
  46.                     <p class="advice">{{ 'tip: Door op het plusteken te klikken kun je kiezen welke inhoudelijke blok je kan toevoegen.'|trans({}, 'admin') }}</p>
  47.                 </div>
  48.             </div>
  49.         {% endif %}
  50.         <div class="row">
  51.             <div class="col-12">
  52.                 {{ include('includes/default-content.html.twig') }}
  53.             </div>
  54.         </div>
  55.     </div>
  56. {% endblock %}