{% set fullscreen = pimcore_checkbox('fullscreen') %}
{% set ptd = pimcore_select('ptd').getData() %}
{% set ptm = pimcore_select('ptm').getData() %}
{% set pbd = pimcore_select('pbd').getData() %}
{% set pbm = pimcore_select('pbm').getData() %}
{% set mtd = pimcore_select('mtd').getData() %}
{% set mtm = pimcore_select('mtm').getData() %}
{% set mbd = pimcore_select('mbd').getData() %}
{% set mbm = pimcore_select('mbm').getData() %}
{% set bgColor = pimcore_select('bgColor').getData() %}
{% set borderTop = pimcore_checkbox('borderTop').getData() %}
{% set borderBottom = pimcore_checkbox('borderBottom').getData() %}
{% set borderColor = pimcore_select('borderColor').getData() %}
{% set section = pimcore_areablock('section', {'manual': true}) %}
{% set decoration = pimcore_checkbox('decoration') %}
{# not used in this template
{% set container = pimcore_checkbox('container') %}
#}
{% set sectionId = pimcore_input('sectionId') %}
{% do section.start() %}
<section class="{% if not fullscreen.isChecked() %} mx-10 mx-md-40 mx-lg-70 {% endif %}
{% if ptm %} pt-{{ptm}} {% endif %}
{% if ptd %} pt-{{ptd}} {% endif %}
{% if pbm %} pb-{{pbm}} {% endif %}
{% if pbd %} pb-{{pbd}} {% endif %}
{% if mtm %} mt-{{mtm}} {% endif %}
{% if mtd %} mt-{{mtd}} {% endif %}
{% if mbm %} mb-{{mbm}} {% endif %}
{% if mbd %} mb-{{mbd}} {% endif %}
{% if bgColor %} bg-{{bgColor}} {% endif %}
{% if borderTop %} border-top {% endif %}
{% if borderBottom %} border-bottom {% endif %}
{% if borderColor %} border-{{borderColor}} {% endif %}
id="{{sectionId}}">
{% for i in section.iterator %}
{% set info = section.buildInfoObject() %}
{% do section.blockConstruct() %}
{% set templateParams = section.blockStart(info) %}
{% do section.content(info, templateParams) %}
{% do section.blockEnd() %}
{% do section.blockDestruct() %}
{% endfor %}
</section>
{% do section.end() %}