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

Open in your IDE?
  1. {% set suffix = suffix|default('') %}
  2. <div class="title-block title-block--main title-block--splitted content-block container container-sm {{ styleModifier|default('') }} {{ not pimcore_input('anchorTitle').empty ? 'js-anchor-nav__item' : '' }}" {% if not pimcore_input('anchorTitle').empty %}data-anchor-nav-title="{{ pimcore_input('anchorTitle').frontend }}"{% endif %}>
  3.     {% if pimcore_checkbox('activateNavigation').checked|default(false) %}
  4.         {% embed 'Includes/editmode-settings.html.twig' %}
  5.             {% block additionalInfo %}
  6.                 <div>
  7.                     <label>
  8.                         Anchor Nav Title
  9.                         {{ pimcore_input('anchorTitle') }}
  10.                     </label>
  11.                 </div>
  12.             {% endblock %}
  13.         {% endembed %}
  14.     {% endif %}
  15.     <div class="row">
  16.         <div class="col-6 text-right">
  17.             {% if editmode or not pimcore_input('subtitle').empty %}
  18.                 <div class="title-block__sub-title">{{ pimcore_input('subtitle' ~ suffix) }}</div>
  19.             {% endif %}
  20.             <h1 class="title-block__title js-toc__title">{{ pimcore_input('title' ~ suffix, {
  21.                     placeholder: '',
  22.                     default: '',
  23.                     htmlspecialchars: false
  24.                 }) }}</h1> {# pimcore_input('title' ~ suffix, {'required': true}) #}
  25.         </div>
  26.         <div class="col-6">
  27.             {% if editmode or not pimcore_wysiwyg('description' ~ suffix).empty %}
  28.                 {% do elements_head_meta(pimcore_wysiwyg('description' ~ suffix).data) %}
  29.                 <div class="wysiwyg title-block__wysiwyg">{{ pimcore_wysiwyg('description' ~ suffix) }}</div>
  30.             {% endif %}
  31.         </div>
  32.     </div>
  33.     {% if editmode or not pimcore_wysiwyg('expand' ~ suffix).empty %}
  34.         <div class="wysiwyg mt-4">
  35.             {{ pimcore_wysiwyg('expand' ~ suffix) }}
  36.         </div>
  37.         {% if editmode %}
  38.             <div class="alert alert-info">
  39.                 Hidden Text:
  40.                 {{ pimcore_wysiwyg('expandHidden' ~ suffix) }}
  41.             </div>
  42.         {% endif %}
  43.         {% if not pimcore_wysiwyg('expandHidden' ~ suffix).empty %}
  44.             <div id="titleBlockExpand"
  45.                  class="collapse"
  46.                  aria-labelledby="titleBlockExpandTitle">
  47.                 <div class="wysiwyg pt-4">
  48.                     {{ pimcore_wysiwyg('expandHidden' ~ suffix).frontend|raw }}
  49.                 </div>
  50.             </div>
  51.             <button type="button" class="btn btn-link collapsed mt-3 collapse-btn"
  52.                     data-toggle="collapse"
  53.                     data-target="#titleBlockExpand"
  54.                     id="#titleBlockExpandTitle"
  55.                     aria-expanded="false" aria-controls="titleBlockExpand">
  56.                 <span class="collapse-btn__more">{{ 'content.Mehr erfahren'|trans }}</span>
  57.                 <span class="collapse-btn__less">{{ 'content.Weniger anzeigen'|trans }}</span>
  58.             </button>
  59.         {% endif %}
  60.     {% endif %}
  61. </div>