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

Open in your IDE?
  1. {% set suffix = suffix|default('') %}
  2. <div class="title-block title-block--main {{ hasSmallSpacing | default(false) ? 'title-block--small-spacing' : '' }} {{ isCentered | default(false) ? 'title-block--centered' : '' }} {{ isWhite | default(false) ? 'title-block--white' : '' }} content-block container {{ styleModifier|default('') }}">
  3.     {% if (editmode or not pimcore_input('subtitle' ~ suffix).empty) and subtitleIsAbove | default(false)  %}
  4.         <h2 class="title-block__sub-title">{{ pimcore_input('subtitle' ~ suffix) }}</h2>
  5.     {% endif %}
  6.     <h1 class="title-block__title">{{ pimcore_input('headline' ~ suffix) }}</h1>{# pimcore_input('headline' ~ suffix, {'required': true}) #}
  7.     {% if (editmode or not pimcore_input('subtitle' ~ suffix).empty)  and not subtitleIsAbove | default(false) %}
  8.         <h2 class="title-block__sub-title">{{ pimcore_input('subtitle' ~ suffix) }}</h2>
  9.     {% endif %}
  10.     {% if editmode or not pimcore_wysiwyg('wysiwyg-main-title' ~ suffix).empty %}
  11.         <div class="wysiwyg title-block__wysiwyg">{{ pimcore_wysiwyg('wysiwyg-main-title' ~ suffix) }}</div>
  12.     {% endif %}
  13. </div>