templates/Includes/title-block.html.twig line 1

Open in your IDE?
  1. {% if title|default(false) or subtitle|default(false) or content|default(false) %}
  2.     <div class="title-block {{ hasSmallSpacing | default(false) ? 'title-block--small-spacing' : '' }} {{ isCentered | default(false) ? 'title-block--centered' : '' }} {{ isWhite | default(false) ? 'title-block--white' : '' }} {{ styleModifier|default('') }}">
  3.         {% if icon|default(null) %}
  4.             <span class="title-block__icon icon icon-{{ icon }}" aria-hidden="true"></span>
  5.         {% endif %}
  6.         {% if subtitle|default(false) %}
  7.             <h3 class="title-block__sub-title h6">{{ subtitle| raw }}</h3>
  8.         {% endif %}
  9.         {% if title|default(false) %}
  10.             <h2 class="title-block__title js-toc__title {{ titleStyleModifier | default(null) }}">{{ title }}</h2>
  11.         {% endif %}
  12.         {% if content|default(false) %}
  13.             <div class="wysiwyg title-block__wysiwyg">{{ content|raw }}</div>
  14.         {% endif %}
  15.     </div>
  16. {% endif %}