templates/areas/content-wysiwyg/view.html.twig line 1

Open in your IDE?
  1. {% set titleTag = titleTag|default('h2') %}
  2. {% set titleArea = titleArea|default(false) %}
  3. {% if editmode and not titleArea %}
  4.     {{ include('includes/editmode-settings.html.twig') }}
  5. {% endif %}
  6. <section class="{{ titleArea ? 'container' : 'container-narrow' }} wysiwyg-area content-block {{ not pimcore_input('anchorTitle').isEmpty() ? 'js-anchor-nav__item' }}"
  7.     {% if not pimcore_input('anchorTitle').isEmpty() %} data-anchor-nav-title="{{ pimcore_input('anchorTitle').getData() }}" {% endif %}
  8. >
  9.     {% if titleArea %}
  10.         <div class="row gy-3">
  11.             <div class="col-xl-8">
  12.     {% endif %}
  13.     {{ include('includes/title-blocks/title-block.html.twig', {
  14.         'hideIntro': true,
  15.         'titleTag': titleTag
  16.     }) }}
  17.     {% if editmode or not pimcore_wysiwyg('intro').isEmpty() %}
  18.         <div class="wysiwyg-area__intro wysiwyg">
  19.             {{ pimcore_wysiwyg('intro')|raw }}
  20.         </div>
  21.     {% endif %}
  22.     {% if editmode or not pimcore_wysiwyg('content').isEmpty() %}
  23.         <div class="wysiwyg-area__content wysiwyg">
  24.             {{ pimcore_wysiwyg('content')|raw }}
  25.         </div>
  26.     {% endif %}
  27.     {% if editmode or not pimcore_link('link').isEmpty() %}
  28.         {{ pimcore_link('link', {
  29.             'class': 'link-primary',
  30.             'textSuffix': '<span class="link-primary__icon icon icon-arrow" aria-hidden="true"></span>',
  31.         }) }}
  32.     {% endif %}
  33.     {% if titleArea %}
  34.             </div>
  35.         </div>
  36.     {% endif %}
  37. </section>