{# Default block settings #}
{% set class = pimcore_input('class').getData() %}
{% set marginTop = pimcore_select('margin_top').getData() %}
{% set marginBottom = pimcore_select('margin_bottom').getData() %}
{% set areaClass = class ~ ' ' ~ marginTop ~ ' ' ~ marginBottom %}
{% set anchorId = pimcore_input('anchor').getData() %}
{# Quote block settings #}
{% set type = pimcore_select('type').getData() %}
{% set areaClass = areaClass ~ ' ' ~ type %}
<div class="area area--contentcontainer full-width {{ areaClass }}"{% if anchorId %} id="{{ anchorId }}"{% endif %}>
{% if type == 'imageBg' %}
{% if editmode %}
{{ pimcore_relation("contentcontainer_image",{
"types": ["asset"],
"subtypes": {
"asset": ["video", "image"]
}
}) }}
{% endif %}
{% if not pimcore_relation('contentcontainer_image').isEmpty() %}
{{ pimcore_relation('contentcontainer_image').getElement().getThumbnail('headerImage').getHtml() | raw }}
{% endif %}
{% endif %}
<div class="area--contentcontainer--inner container">
{{ pimcore_areablock('contentcontainer_content', {
'controlsTrigger': 'fixed',
'sorting': conecto_get_areabricks(),
'allowed': conecto_get_areabricks(),
}) }}
</div>
</div>