{% set suffix = suffix|default('') %}
<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 %}>
{% if pimcore_checkbox('activateNavigation').checked|default(false) %}
{% embed 'Includes/editmode-settings.html.twig' %}
{% block additionalInfo %}
<div>
<label>
Anchor Nav Title
{{ pimcore_input('anchorTitle') }}
</label>
</div>
{% endblock %}
{% endembed %}
{% endif %}
<div class="row">
<div class="col-6 text-right">
{% if editmode or not pimcore_input('subtitle').empty %}
<div class="title-block__sub-title">{{ pimcore_input('subtitle' ~ suffix) }}</div>
{% endif %}
<h1 class="title-block__title js-toc__title">{{ pimcore_input('title' ~ suffix, {
placeholder: '',
default: '',
htmlspecialchars: false
}) }}</h1> {# pimcore_input('title' ~ suffix, {'required': true}) #}
</div>
<div class="col-6">
{% if editmode or not pimcore_wysiwyg('description' ~ suffix).empty %}
{% do elements_head_meta(pimcore_wysiwyg('description' ~ suffix).data) %}
<div class="wysiwyg title-block__wysiwyg">{{ pimcore_wysiwyg('description' ~ suffix) }}</div>
{% endif %}
</div>
</div>
{% if editmode or not pimcore_wysiwyg('expand' ~ suffix).empty %}
<div class="wysiwyg mt-4">
{{ pimcore_wysiwyg('expand' ~ suffix) }}
</div>
{% if editmode %}
<div class="alert alert-info">
Hidden Text:
{{ pimcore_wysiwyg('expandHidden' ~ suffix) }}
</div>
{% endif %}
{% if not pimcore_wysiwyg('expandHidden' ~ suffix).empty %}
<div id="titleBlockExpand"
class="collapse"
aria-labelledby="titleBlockExpandTitle">
<div class="wysiwyg pt-4">
{{ pimcore_wysiwyg('expandHidden' ~ suffix).frontend|raw }}
</div>
</div>
<button type="button" class="btn btn-link collapsed mt-3 collapse-btn"
data-toggle="collapse"
data-target="#titleBlockExpand"
id="#titleBlockExpandTitle"
aria-expanded="false" aria-controls="titleBlockExpand">
<span class="collapse-btn__more">{{ 'content.Mehr erfahren'|trans }}</span>
<span class="collapse-btn__less">{{ 'content.Weniger anzeigen'|trans }}</span>
</button>
{% endif %}
{% endif %}
</div>