{% if editmode %}
<div class="settings">
<div class="position-relative settings-button-border">
<strong class="settings-header">Settings</strong><button class="toggle-settings"><i class="fa fa-plus"></i></button>
<div class="settings_container">
<div class="row middle-lg middle-md middle-sm middle-xs">
<div>Background colour</div>
<div>
{{
pimcore_select("bgSelect", {
store: [
["default", "Choose a colour"],
["red", "Red"],
["dark", "Dark"]
],
defaultValue: "default"
})
}}
</div>
</div>
<div class="row middle-lg middle-md middle-sm middle-xs">
<div>Text colour</div>
<div>
{{
pimcore_select("textColour", {
store: [
["default", "Choose a colour"],
["dark", "Dark"],
["light", "Light"]
],
defaultValue: "default"
})
}}
</div>
</div>
<div class="row middle-lg middle-md middle-sm middle-xs">
<div>Center text?</div>
<div>
{{ pimcore_checkbox("isTextCentered") }}
</div>
</div>
<div class="row middle-lg middle-md middle-sm middle-xs">
<div>Padding</div>
<div>
{{
pimcore_select("sectionPadding", {
store: [
["default", "Top and Bottom"],
["top", "Top"],
["bottom", "Bottom"],
["none", "None"]
],
defaultValue: "default"
})
}}
</div>
</div>
<div class="row middle-lg middle-md middle-sm" style="gap: 10px">
<div>Boxed layout?</div>
<div>
{{ pimcore_checkbox("boxedLayout") }}
</div>
</div>
<div class="row middle-lg middle-md middle-sm" style="gap: 10px">
<div>Section Anchor</div>
<div>
{{ pimcore_input("sectionId", {'width': 120}) }}
</div>
</div>
</div>
<div style="position: absolute; top: 10px; right: 0; font-weight: bold; text-transform: uppercase;">
Section
</div>
</div>
</div>
{% endif %}
{% set sectionId = pimcore_input("sectionId").getData() ? ' id=' ~ pimcore_input("sectionId").getData() : '' %}
{% set sectionPadding = pimcore_select("sectionPadding").getData() == 'top' ? ' top-padding' : pimcore_select("sectionPadding").getData() == 'bottom' ? ' bottom-padding' : pimcore_select("sectionPadding").getData() == 'none' ? '' : ' top-bottom-padding' %}
{% set bgSelect = pimcore_select('bgSelect').getData()|raw %}
{% set textColour = pimcore_select('textColour').getData()|raw == 'light' ? ' light' : '' %}
<section{{ sectionId }} class="section{% if not editmode %}{{ sectionPadding }}{% endif %}{% if editmode %} bg-color-switcher{% endif %}{{ bgSelect == 'dark' ? ' bg-color--dark' : bgSelect == 'red' ? ' bg-color--red' : '' }}{{ textColour }}">
{% if (pimcore_checkbox('isTextCentered').isChecked()) or (pimcore_checkbox('boxedLayout').isChecked()) %}
<div class="inner{% if pimcore_checkbox('isTextCentered').isChecked() %} text-align-center{% endif %}">
{% endif %}
{{
pimcore_areablock("sectionBrick", {
allowed: [
"icon-writeup",
"info-with-link",
"columns",
"columns-data-object",
"header",
"button",
"spacer",
"card-carousel-folder",
"staff-members"
]
})
}}
{% if pimcore_checkbox('isTextCentered').isChecked() %}
</div>
{% endif %}
</section>