{% block areas %}
{% set sizeValueSM = [["auto", "ercas_doc_be_col_option_sizeSM_auto"|trans], ["2", "2/12"], ["3", "3/12"], ["4", "4/12"], ["5", "5/12"], ["6", "6/12"], ["7", "7/12"], ["8", "8/12"], ["9", "9/12"], ["10", "10/12"], ["11", "11/12"], ["12", "12/12"]] %}
{% set sizeValueMD = [["auto", "ercas_doc_be_col_option_sizeMD_auto"|trans], ["2", "2/12"], ["3", "3/12"], ["4", "4/12"], ["5", "5/12"], ["6", "6/12"], ["7", "7/12"], ["8", "8/12"], ["9", "9/12"], ["10", "10/12"], ["11", "11/12"], ["12", "12/12"]] %}
{% set sizeValueLG = [["auto", "ercas_doc_be_col_option_sizeLG_auto"|trans], ["2", "2/12"], ["3", "3/12"], ["4", "4/12"], ["5", "5/12"], ["6", "6/12"], ["7", "7/12"], ["8", "8/12"], ["9", "9/12"], ["10", "10/12"], ["11", "11/12"], ["12", "12/12"]] %}
{# Col Margin #}
{% set colMarginSelect = pimcore_select('colMargin', {
reload: false,
store: [
["spacing-margin-bottom", "ercas_doc_be_col_option_margin_spacingLarge"|trans],
["spacing-medium-margin-bottom", "ercas_doc_be_col_option_margin_spacingMedium"|trans],
["spacing-small-margin-bottom", "ercas_doc_be_col_option_margin_spacingSmall"|trans],
["spacing-extra-small-margin-bottom", "ercas_doc_be_col_option_margin_spacingColumn"|trans],
["spacing-margin-bottom-none", "ercas_doc_be_col_option_margin_spacingNone"|trans]
],
defaultValue: 'spacing-margin-bottom-none',
width: 300
}) %}
{# Col padding #}
{#{% set colPaddingSelect = pimcore_select('colPadding', {
reload: false,
width: 300,
store: [["spacing-component-padding", "area_spacing_large"|trans], ["spacing-component-small-padding", "area_spacing_small"|trans], ["spacing-component-none-padding", "area_spacing_none"|trans]]
}) %}
{% if editmode and colPaddingSelect.isEmpty() %}
{% do colPaddingSelect.setDataFromResource("spacing-component-none-padding") %}
{% endif %}
{% if colPadding is not defined %}
{% if contentInclude is defined %}
{% set colPadding = 'spacing-component-none-padding' %}
{% else %}
{% set colPadding = colPaddingSelect.getData() %}
{% endif %}
{% endif %}#}
{# Col align #}
{% set colAlignSelect = pimcore_select('colAlign', {
reload: false,
width: 300,
defaultValue: 'center',
store: [["auto", "ercas_doc_be_col_option_alignment_auto"|trans], ["start", "ercas_doc_be_col_option_alignment_top"|trans], ["center", "ercas_doc_be_col_option_alignment_center"|trans], ["end", "ercas_doc_be_col_option_alignment_bottom"|trans]]
}) %}
{% if editmode and colAlignSelect.isEmpty() %}
{% do colAlignSelect.setDataFromResource("auto") %}
{% endif %}
{% if colAlign is not defined %}
{% if contentInclude is defined %}
{% set colAlign = 'auto' %}
{% else %}
{% set colAlign = colAlignSelect.getData() %}
{% endif %}
{% endif %}
{# Col content align #}
{% set colAlignConetentSelect = pimcore_select('colAlignContent', {
reload: false,
width: 300,
defaultValue: 'center',
store: [["start", "ercas_doc_be_col_option_alignContent_top"|trans], ["center", "ercas_doc_be_col_option_alignContent_center"|trans], ["end", "ercas_doc_be_col_option_alignContent_bottom"|trans]]
}) %}
{% if editmode and colAlignConetentSelect.isEmpty() %}
{% do colAlignConetentSelect.setDataFromResource("auto") %}
{% endif %}
{% if colAlignContent is not defined %}
{% if contentInclude is defined %}
{% set colAlignContent = 'auto' %}
{% else %}
{% set colAlignContent = colAlignConetentSelect.getData() %}
{% endif %}
{% endif %}
{# Col border #}
{#% set colBorderSelect = pimcore_checkbox('colBorder') %#}
{# Col sticky #}
{% set colStickySelect = pimcore_checkbox('colSticky') %}
{# Col not Equal Hight #}
{% set colNotEqualHightSelect = pimcore_checkbox('colNotEqualHight') %}
{# Col create spacer #}
{% set colCreateSpacerSelect = pimcore_checkbox('colCreateSpacer') %}
{# Col background #}
{% set colBackgroundSelect = pimcore_select('colBackground', {
reload: true,
width: 300,
defaultValue: 'none',
store: [["none", "ercas_doc_be_col_option_backgroundColor_none"|trans], ["white", 'ercas_doc_be_col_option_backgroundColor_white'|trans], ["primary", 'ercas_doc_be_col_option_backgroundColor_primary'|trans], ["primary-light", 'ercas_doc_be_col_option_backgroundColor_primary_light'|trans], ["secondary", 'ercas_doc_be_col_option_backgroundColor_secondary'|trans], ["image", 'ercas_doc_be_col_option_backgroundColor_image'|trans], ["video", 'ercas_doc_be_col_option_backgroundColor_video'|trans], ["border", 'ercas_doc_be_col_option_backgroundColor_border'|trans]]
}) %}
{% if editmode and colBackgroundSelect.isEmpty() %}
{% do colBackgroundSelect.setDataFromResource("none") %}
{% endif %}
{% if colBackground is not defined %}
{% if contentInclude is defined %}
{% set colBackground = 'none' %}
{% elseif colBackgroundSelect.getData() == 'none' and (rowBackground != 'none' and rowBackground != 'video' and rowBackground != 'image') %}
{% set colBackground = rowBackground %}
{% else %}
{% set colBackground = colBackgroundSelect.getData() %}
{% endif %}
{% endif %}
{# Col offset #}
{# {% set colOffsetSelect = pimcore_select('colOffset', {
reload: false,
store: [["spacing-margin-top-none", "area_spacing_none"|trans], ["spacing-small-margin-top", "area_spacing_small"|trans], ["spacing-margin-top", "area_spacing_large"|trans], ["c-col__sticky-offset", "sticky offset"|trans]]
}) %} #}
{# Col Background opacity #}
{% set colOpacity = pimcore_numeric('colOpacity',{
"minValue" : 0,
"maxValue" : 100,
"decimalPrecision" : 0,
"defaultValue": 100,
width: 300,
}) %}
{# Col Size sm #}
{% set colSizeSmSelect = pimcore_select('colSizeSm', {
reload: false,
store: sizeValueSM,
width: 300,
defaultValue: '12'
}) %}
{# Col Size md #}
{% set colSizeMdSelect = pimcore_select('colSizeMd', {
reload: false,
store: sizeValueMD,
width: 300,
defaultValue: 'auto'
}) %}
{# Col Size lg #}
{% set colSizeLgSelect = pimcore_select('colSizeLg', {
reload: false,
store: sizeValueLG,
width: 300,
defaultValue: 'auto'
}) %}
{# Col Behave offset #}
{% set colBehaveOffset = pimcore_select('colBehaveOffset', {
reload: true,
width: 300,
store: [
["spacing-margin-top-none", "ercas_doc_be_col_option_offset_none"|trans],
["spacing-small-margin-top", "ercas_doc_be_col_option_offset_spacingSmall"|trans],
["spacing-medium-margin-top", "ercas_doc_be_col_option_offset_spacingMedium"|trans],
["spacing-margin-top", "ercas_doc_be_col_option_offset_spacingLarge"|trans],
]
}) %}
{% if editmode and colBehaveOffset.isEmpty() %}
{% do colBehaveOffset.setDataFromResource("spacing-margin-top-none") %}
{% endif %}
{% if colOffset is not defined %}
{% if contentInclude is defined %}
{% set colOffset = 'spacing-margin-top-none' %}
{% else %}
{% set colOffset = colBehaveOffset.getData() %}
{% endif %}
{% endif %}
{# Col image #}
{% set colImage = pimcore_image('colImage', {
reload: true,
thumbnail: 'content-full'
}) %}
{# Col video #}
{% set colVideo = pimcore_video('colVideo', {
reload: true,
width: '100%',
height: '100%',
attributes: {
controls: false,
loop: 1,
autoplay: true,
muted: true
},
youtube: {
rel: 0,
controls: false,
loop: 1,
autoplay: true,
muted: true
}
}) %}
{# Col height select #}
{% set colHeightSelect = pimcore_select('colHeightSelect', {
reload: false,
width: 300,
store: [["auto", "ercas_doc_be_col_option_height_auto"|trans], ["square", "ercas_doc_be_col_option_height_square"|trans], ["50", "ercas_doc_be_col_option_height_50"|trans], ["60", "ercas_doc_be_col_option_height_60"|trans], ["70", "ercas_doc_be_col_option_height_70"|trans], ["80", "ercas_doc_be_col_option_height_80"|trans], ["90", "ercas_doc_be_col_option_height_90"|trans], ["100", "ercas_doc_be_col_option_height_100"|trans]]
}) %}
{% if editmode and colHeightSelect.isEmpty() %}
{% do colHeightSelect.setDataFromResource("auto") %}
{% endif %}
{# Col padding left-right select #}
{% set colPaddingLeftRightSelect = pimcore_select('colPaddingLeftRightSelect', {
reload: false,
width: 300,
defaultValue: 'spacing-component-padding-none-left-right',
store: [["spacing-component-padding-left-right", "ercas_doc_be_col_option_paddingLeftRight_large"|trans], ["spacing-component-medium-padding-left-right", "ercas_doc_be_col_option_paddingLeftRight_medium"|trans], ["spacing-component-small-padding-left-right", "ercas_doc_be_col_option_paddingLeftRight_small"|trans], ["spacing-component-extra-small-padding-left-right", "ercas_doc_be_col_option_paddingLeftRight_extraSmall"|trans], ["spacing-component-padding-none-left-right", "ercas_doc_be_col_option_paddingLeftRight_none"|trans]]
}) %}
{% if editmode and colPaddingLeftRightSelect.isEmpty() %}
{% do colPaddingLeftRightSelect.setDataFromResource("spacing-component-padding-left-right") %}
{% endif %}
{# Col padding top-bottom select #}
{% set colPaddingTopBottomSelect = pimcore_select('colPaddingTopBottomSelect', {
reload: false,
width: 300,
defaultValue: 'spacing-component-padding-none-top-bottom',
store: [["spacing-component-sticky-offset-padding-top-bottom", "area_spacing_sticky_offset"|trans], ["spacing-component-padding-top-bottom", "ercas_doc_be_col_option_paddingTopBottom_large"|trans], ["spacing-component-medium-padding-top-bottom", "ercas_doc_be_col_option_paddingTopBottom_medium"|trans], ["spacing-component-small-padding-top-bottom", "ercas_doc_be_col_option_paddingTopBottom_small"|trans], ["spacing-component-extra-small-padding-top-bottom", "ercas_doc_be_col_option_paddingTopBottom_extraSmall"|trans], ["spacing-component-padding-none-top-bottom", "ercas_doc_be_col_option_paddingTopBottom_none"|trans]]
}) %}
{% if editmode and colPaddingTopBottomSelect.isEmpty() %}
{% do colPaddingTopBottomSelect.setDataFromResource("spacing-component-padding-top-bottom") %}
{% endif %}
{# Col Inner padding top-bottom select #}
{#% set colInnerTopBottomSelect = pimcore_select('colInnerTopBottomSelect', {
reload: false,
width: 300,
defaultValue: 'spacing-component-medium-Innerpadding-top-bottom',
store: [["spacing-component-sticky-offset-Innerpadding-top-bottom", "area_spacing_sticky_offset"|trans], ["spacing-component-Innerpadding-top-bottom", "Innerercas_doc_be_col_option_paddingTopBottom_large"|trans], ["spacing-component-medium-Innerpadding-top-bottom", "Innerercas_doc_be_col_option_paddingTopBottom_medium"|trans], ["spacing-component-small-Innerpadding-top-bottom", "Innerercas_doc_be_col_option_paddingTopBottom_small"|trans], ["spacing-component-extra-small-Innerpadding-top-bottom", "Innerercas_doc_be_col_option_paddingTopBottom_extraSmall"|trans], ["spacing-component-Innerpadding-none-top-bottom", "Innerercas_doc_be_col_option_paddingTopBottom_none"|trans]]
}) %}
{% if editmode and colInnerTopBottomSelect.isEmpty() %}
{% do colInnerTopBottomSelect.setDataFromResource("spacing-component-padding-top-bottom") %}
{% endif %#}
{# col gradient color select #}
{% set colGradientColorSelect = pimcore_select('colGradientColorSelect', {
reload: false,
width: 300,
store: [["dark", "ercas_doc_be_col_option_gradientColor_dark"|trans], ["bright", "ercas_doc_be_col_option_gradientColor_light"|trans], ["multi", "ercas_doc_be_col_option_gradientColor_multi"|trans]]
}) %}
{% if editmode and colGradientColorSelect.isEmpty() %}
{% do colGradientColorSelect.setDataFromResource("multi") %}
{% endif %}
{# Col gradient opacity #}
{% set colGradientOpacity = pimcore_numeric('colGradientOpacity',{
'minValue': 0,
'maxValue':100,
'decimalPrecision': 0,
defaultValue: 50,
width: 300,
}) %}
{# Col gradient height #}
{% set colGradientSize = pimcore_numeric('colGradientSize', {
'minValue': 0,
'maxValue':100,
'decimalPrecision': 0,
defaultValue: 100,
width: 300,
}) %}
{% set colGradientAlignment = pimcore_select('colGradientAlignment', {
reload: false,
width: 300,
store: [
["none", "ercas_doc_be_col_option_gradientAlignment_none"|trans],
["top", "ercas_doc_be_col_option_gradientAlignment_top"|trans],
["left", 'ercas_doc_be_col_option_gradientAlignment_left'|trans],
["right", 'ercas_doc_be_col_option_gradientAlignment_right'|trans],
["bottom", 'ercas_doc_be_col_option_gradientAlignment_bottom'|trans],
["full", "ercas_doc_be_col_option_gradientAlignment_full"|trans]
],
defaultValue: 'none'
}) %}
{% block editables %}
{% endblock %}
{% endblock %}