templates/includes/area-templates/wysiwyg.html.twig line 1

Open in your IDE?
  1. {% set title = title|default(false) %}
  2. {% set titleBold = titleBold|default('') %}
  3. {% set subtitle = subtitle|default(false) %}
  4. {% set titleStyle = titleStyle|default(false) %}
  5. {% set titleBlockIntro = titleBlockIntro|default(false) %}
  6. {% set breakTitle = breakTitle|default(false) %}
  7. {% set intro = intro|default(false) %}
  8. {% set content = content|default(false) %}
  9. {% set cta = cta|default(false) %}
  10. {% set wideContent = wideContent|default(false) %}
  11. <section class="wysiwyg-area {{ wideContent ? '' : 'container-narrow' }} content-block {{ className|default('') }}">
  12.     {% if title or titleBold or subtitle or intro %}
  13.         {{ include('includes/title-blocks/title-block-object.html.twig', {
  14.             title: title,
  15.             titleBold: titleBold,
  16.             subtitle: subtitle,
  17.             intro: titleBlockIntro,
  18.             titleStyle: titleStyle,
  19.             breakTitle: breakTitle
  20.         }) }}
  21.     {% endif %}
  22.     {% if intro %}
  23.         <div class="wysiwyg-area__intro wysiwyg">
  24.             {{ intro|raw }}
  25.         </div>
  26.     {% endif %}
  27.     {% if content %}
  28.         <div class="wysiwyg-area__content wysiwyg">
  29.             {{ content|raw }}
  30.         </div>
  31.     {% endif %}
  32.     {% if cta and cta['href'] is defined %}
  33.         <a href="{{ cta['href']|default() }}" target="{{ cta['target']|default('_self') }}" class="link-primary">
  34.             {{ cta['text']|default('') }}
  35.             <span class="link-primary__icon icon icon-arrow" aria-hidden="true"></span>
  36.         </a>
  37.     {% endif %}
  38. </section>