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

Open in your IDE?
  1. {% set suffix = suffix|default('') %}
  2. {% if isCentered is not defined %}
  3.     {% set isCentered = pimcore_checkbox('titleBlockCentered').data ?: false %}
  4. {% endif %}
  5. {% if editmode or not pimcore_input('headline' ~ suffix).empty or not pimcore_input('subtitle' ~ suffix).empty or not pimcore_wysiwyg('content' ~ suffix).empty %}
  6.     <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('') }}">
  7.         {% if editmode or not pimcore_input('subtitle' ~ suffix).empty %}
  8.             <h3 class="title-block__sub-title h6">{{  pimcore_input('subtitle' ~ suffix) }}</h3>
  9.         {% endif %}
  10.         {% if editmode or not pimcore_input('headline' ~ suffix).empty %}
  11.             {% do elements_head_title(pimcore_input('headline' ~ suffix).frontend) %}
  12.             <h2 class="title-block__title js-toc__title">{{ pimcore_input('headline' ~ suffix) }}</h2>
  13.         {% endif %}
  14.         {% if editmode or not pimcore_wysiwyg('content' ~ suffix).empty %}
  15.             {% do elements_head_meta( pimcore_wysiwyg('content' ~ suffix).frontend ) %}
  16.             <div class="wysiwyg title-block__wysiwyg">{{ pimcore_wysiwyg('content' ~ suffix) }}</div>
  17.         {% endif %}
  18.     </div>
  19. {% endif %}