{% 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" style="gap: 10px">
<div>
{{
pimcore_select("columns", {
store: [
["1", "1"],
["2", "2"],
["3", "3"],
["4", "4"],
["5", "5"],
["6", "6"]
],
"defaultValue" : "1",
reload: true
})
}}
</div>
</div>
<div class="row middle-lg middle-md middle-sm" style="gap: 10px">
<div>Gutters</div>
<div>
{{
pimcore_select("columnGutters", {
store: [
["small", "SM"],
["medium", "MD"],
["large", "LG"],
["none", "None"]
]
})
}}
</div>
</div>
<div class="row middle-lg middle-md middle-sm" style="gap: 10px">
<div>Set auto width on columns?</div>
<div>
{{
pimcore_checkbox("columnFlexBasisAuto")
}}
</div>
</div>
<div class="row middle-lg middle-md middle-sm" style="gap: 10px">
<div>Remove bottom margin on mobile?</div>
<div>
{{
pimcore_checkbox("hideBottomMarginOnMobile")
}}
</div>
</div>
<div class="row middle-lg middle-md middle-sm column-ratio-dropdown{% if pimcore_select("columns").getData() == 2 %} display-column-ratio-dropdown{% endif %}" style="gap: 10px">
<div>Column Ratios</div>
<div>
{{
pimcore_select("columnRatios", {
store: [
["half-half", "1/2 | 1/2"],
["two-fifth-three-fifth", "2/5 | 3/5"],
["one-third-two-third", "1/3 | 2/3"],
["one-quarter-three-quarter", "1/4 | 3/4"],
["three-fifth-two-fifth", "3/5 | 2/5"],
["two-third-one-third", "2/3 | 1/3"],
["three-quarter-one-quarter", "3/4 | 1/4"]
],
reload: true
})
}}
</div>
</div>
<div class="row middle-lg middle-md middle-sm" style="gap: 10px">
<div>Max Width on Row</div>
<div>{{ pimcore_numeric("maxWidth") }}</div>
</div>
<div class="row middle-lg middle-md middle-sm" style="gap: 10px">
<div>Column Vertical Alignment</div>
<div>
{{
pimcore_select("colVertAlignment", {
store: [
["top", "Top"],
["middle", "Middle"],
["bottom", "Bottom"]
]
})
}}
</div>
</div>
<div class="row middle-lg middle-md middle-sm" style="gap: 10px">
<div>Column Horizontal Alignment</div>
<div>
{{
pimcore_select("colHorAlignment", {
store: [
["start", "Start"],
["center", "Center"],
["end", "End"]
],
"defaultValue" : "start",
})
}}
</div>
</div>
<div class="row middle-lg middle-md middle-sm" style="gap: 10px">
<div>Remove bottom margin</div>
<div>{{ pimcore_checkbox("noBottomMargin") }}</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>Span viewport width?</div>
<div>
{{ pimcore_checkbox("spanViewportWidth") }}
</div>
</div>
<div class="row middle-lg middle-md middle-sm middle-xs">
<div>Flex layout on CTA?</div>
<div>
{{ pimcore_checkbox("ctaFlex") }}
</div>
</div>
</div>
<div style="position: absolute; top: 10px; right: 0; font-weight: bold; text-transform: uppercase;">
Row
</div>
</div>
</div>
{% endif %}
{# SET VARIABLES #}
{% set boxedLayout = pimcore_checkbox("boxedLayout").isChecked() %}
{% set spanViewportWidth = pimcore_checkbox("spanViewportWidth").isChecked() ? ' row-full-span' : '' %}
{% set defaultSmXsColWidth = ' col-sm-6 col-xs-12' %}
{% set colVertAlignment = pimcore_select('colVertAlignment').getData()|raw == 'middle' ? ' middle-lg middle-md' : pimcore_select('colVertAlignment').getData()|raw == 'bottom' ? ' bottom-lg bottom-md' : '' %}
{% set colHorAlignment = pimcore_select('colHorAlignment').getData()|raw == 'start' ? '' : pimcore_select('colHorAlignment').getData()|raw == 'center' ? ' center-lg center-md center-sm center-xs' : pimcore_select('colHorAlignment').getData()|raw == 'end' ? ' end-lg end-md end-sm end-xs' : '' %}
{% set numberOfColumns = pimcore_select("columns").getData()|raw * 1 %}
{% set colGutters = pimcore_select("columnGutters").getData() %}
{% set hideBottomMarginOnMobile = pimcore_checkbox("hideBottomMarginOnMobile").isChecked() ? ' no-bottom-margin-on-mobile' : '' %}
{% set maxWidth = pimcore_numeric('maxWidth').getData()|raw ? ' style=max-width:' ~ pimcore_numeric('maxWidth').getData() ~ 'px;' : '' %}
{% set columnFlexBasisAuto = pimcore_checkbox("columnFlexBasisAuto").isChecked() ? ' flex-basis-auto' : '' %}
{% set noBottomMargin = pimcore_checkbox('noBottomMargin').isChecked() ? ' no-bottom-margin' : '' %}
{% set ctaFlex = editmode and pimcore_checkbox("ctaFlex").isChecked() ? ' cta-display-flex cta-display-flex-backend' : pimcore_checkbox("ctaFlex").isChecked() ? ' cta-display-flex' : '' %}
{% switch colGutters %}
{% case "small" %}
{% set colGutters = 'sm' %}
{% case "medium" %}
{% set colGutters = 'md' %}
{% case "large" %}
{% set colGutters = 'lg' %}
{% case "none" %}
{% set colGutters = 'none' %}
{% default %}
{% set colGutters = 'md' %}
{% endswitch %}
{% if boxedLayout %}
<div class="inner"{{maxWidth}}>
{% endif %}
<div class="row{{ spanViewportWidth }} gutter-space--{{ colGutters }}{{ colVertAlignment }}{{ colHorAlignment }}">
{% if numberOfColumns == 2 %}
{% for i in 1..1 %}
{% set columnRatios = pimcore_select("columnRatios").getData() %}
{% switch columnRatios %}
{% case "half-half" %}
{% set columnRatiosLeft = ' col-lg-6 col-md-6' ~ defaultSmXsColWidth %}
{% case "two-fifth-three-fifth" %}
{% set columnRatiosLeft = ' col-lg-5 col-md-5' ~ defaultSmXsColWidth %}
{% case "one-third-two-third" %}
{% set columnRatiosLeft = ' col-lg-4 col-md-4' ~ defaultSmXsColWidth %}
{% case "one-quarter-three-quarter" %}
{% set columnRatiosLeft = ' col-lg-3 col-md-3' ~ defaultSmXsColWidth %}
{% case "three-fifth-two-fifth" %}
{% set columnRatiosLeft = ' col-lg-7 col-md-7' ~ defaultSmXsColWidth %}
{% case "two-third-one-third" %}
{% set columnRatiosLeft = ' col-lg-8 col-md-8' ~ defaultSmXsColWidth %}
{% case "three-quarter-one-quarter" %}
{% set columnRatiosLeft = ' col-lg-9 col-md-9' ~ defaultSmXsColWidth %}
{% default %}
{% set columnRatiosLeft = ' col-lg-6 col-md-6' ~ defaultSmXsColWidth %}
{% endswitch %}
<div data-aos="fade-up" class="col{{ ctaFlex }}{{ noBottomMargin }}{{ columnRatiosLeft }}{{ columnFlexBasisAuto }}{{ hideBottomMarginOnMobile }}">
{% 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" style="gap: 10px">
<div>Cardify column?</div>
<div>
{{
pimcore_checkbox("cardifyColumn_" ~ i)
}}
</div>
</div>
<div class="row middle-lg middle-md middle-sm middle-xs">
<div>Card link</div>
<div>
{{ pimcore_link("cardLink_" ~ i) }}
</div>
</div>
</div>
<div style="position: absolute; top: 10px; right: 0; font-weight: bold; text-transform: uppercase;">
Column
</div>
</div>
</div>
{% endif %}
{% set cardifyColumns = pimcore_checkbox("cardifyColumn_" ~ i).isChecked() %}
{% set cardLink = pimcore_link("cardLink_" ~ i).getHref() %}
{% if cardifyColumns %}
<div class="card">
{% if not editmode and cardLink %}
<a class="card-content-link" href="{{cardLink}}">
{% endif %}
<div class="card-content">
{% if not editmode and cardLink %}
<div class="absolute-top-right">
{{ source("@torq_static/img/icons/arrow-right.svg") }}
</div>
{% endif %}
{% endif %}
{{ pimcore_areablock('columnBlock_' ~ i, {
"allowed": ["header", "wysiwyg", "image", "button", "card-carousel", "spacer", "icon-writeup", "columns", "inquiry-form"]
}) }}
{% if cardifyColumns %}
</div>
{% if not editmode and cardLink %}
</a>
{% endif %}
</div>
{% endif %}
</div>
{% endfor %}
{% for i in 2..2 %}
{% set columnRatios = pimcore_select("columnRatios").getData() %}
{% switch columnRatios %}
{% case "half-half" %}
{% set columnRatiosRight = ' col-lg-6 col-md-6' ~ defaultSmXsColWidth %}
{% case "two-fifth-three-fifth" %}
{% set columnRatiosRight = ' col-lg-7 col-md-7' ~ defaultSmXsColWidth %}
{% case "one-third-two-third" %}
{% set columnRatiosRight = ' col-lg-8 col-md-8' ~ defaultSmXsColWidth %}
{% case "one-quarter-three-quarter" %}
{% set columnRatiosRight = ' col-lg-9 col-md-9' ~ defaultSmXsColWidth %}
{% case "three-fifth-two-fifth" %}
{% set columnRatiosRight = ' col-lg-5 col-md-5' ~ defaultSmXsColWidth %}
{% case "two-third-one-third" %}
{% set columnRatiosRight = ' col-lg-4 col-md-4' ~ defaultSmXsColWidth %}
{% case "three-quarter-one-quarter" %}
{% set columnRatiosRight = ' col-lg-3 col-md-3' ~ defaultSmXsColWidth %}
{% default %}
{% set columnRatiosRight = ' col-lg-6 col-md-6' ~ defaultSmXsColWidth %}
{% endswitch %}
<div data-aos="fade-up" class="col{{ ctaFlex }}{{ noBottomMargin }}{{ columnRatiosRight }}{{ columnFlexBasisAuto }}{{ hideBottomMarginOnMobile }}">
{% 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" style="gap: 10px">
<div>Cardify column?</div>
<div>
{{
pimcore_checkbox("cardifyColumn_" ~ i)
}}
</div>
</div>
<div class="row middle-lg middle-md middle-sm middle-xs">
<div>Card link</div>
<div>
{{ pimcore_link("cardLink_" ~ i) }}
</div>
</div>
</div>
<div style="position: absolute; top: 10px; right: 0; font-weight: bold; text-transform: uppercase;">
Column
</div>
</div>
</div>
{% endif %}
{% set cardifyColumns = pimcore_checkbox("cardifyColumn_" ~ i).isChecked() %}
{% set cardLink = pimcore_link("cardLink_" ~ i).getHref() %}
{% if cardifyColumns %}
<div class="card">
{% if not editmode and cardLink %}
<a class="card-content-link" href="{{cardLink}}">
{% endif %}
<div class="card-content">
{% if not editmode and cardLink %}
<div class="absolute-top-right">
{{ source("@torq_static/img/icons/arrow-right.svg") }}
</div>
{% endif %}
{% endif %}
{{ pimcore_areablock('columnBlock_' ~ i, {
"allowed": ["header", "wysiwyg", "image", "button", "card-carousel", "spacer", "icon-writeup", "columns", "inquiry-form"]
}) }}
{% if cardifyColumns %}
</div>
{% if not editmode and cardLink %}
</a>
{% endif %}
</div>
{% endif %}
</div>
{% endfor %}
{% else %}
{% set numOfCols = numberOfColumns %}
{% switch numOfCols %}
{% case "1" %}
{% set numOfCols = ' col-lg-12 col-md-12 col-sm-12 col-xs-12' %}
{% case "2" %}
{% set numOfCols = ' col-lg-6 col-md-6' ~ defaultSmXsColWidth %}
{% case "3" %}
{% set numOfCols = ' col-lg-4 col-md-4' ~ defaultSmXsColWidth %}
{% case "4" %}
{% set numOfCols = ' col-lg-3 col-md-3' ~ defaultSmXsColWidth %}
{% case "5" %}
{% set numOfCols = ' col-lg-1_5 col-md-1_5' ~ defaultSmXsColWidth %}
{% case "6" %}
{% set numOfCols = ' col-lg-2 col-md-2' ~ defaultSmXsColWidth %}
{% default %}
{% set numOfCols = ' col-lg-12 col-md-12 col-sm-12 col-xs-12' %}
{% endswitch %}
{% for i in 1..numberOfColumns %}
<div
data-aos="fade-up"
class="col{{ ctaFlex }}{{
pimcore_checkbox('noBottomMargin').getData()
? ' no-bottom-margin'
: ''
}}{{ numOfCols }}"
>
{% 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" style="gap: 10px">
<div>Cardify column?</div>
<div>
{{
pimcore_checkbox("cardifyColumn_" ~ i)
}}
</div>
</div>
<div class="row middle-lg middle-md middle-sm middle-xs">
<div>Card link</div>
<div>
{{ pimcore_link("cardLink_" ~ i) }}
</div>
</div>
</div>
<div style="position: absolute; top: 10px; right: 0; font-weight: bold; text-transform: uppercase;">
Column
</div>
</div>
</div>
{% endif %}
{% set cardifyColumns = pimcore_checkbox("cardifyColumn_" ~ i).isChecked() %}
{% set cardLink = pimcore_link("cardLink_" ~ i).getHref() %}
{% if cardifyColumns %}
<div class="card">
{% if not editmode and cardLink %}
<a class="card-content-link" href="{{cardLink}}">
{% endif %}
<div class="card-content">
{% if not editmode and cardLink %}
<div class="absolute-top-right">
{{ source("@torq_static/img/icons/arrow-right.svg") }}
</div>
{% endif %}
{% endif %}
{{ pimcore_areablock('columnBlock_' ~ i, {
"allowed": ["header", "wysiwyg", "image", "button", "card-carousel", "spacer", "icon-writeup", "staff-members", "columns", "inquiry-form"]
}) }}
{% if cardifyColumns %}
</div>
{% if not editmode and cardLink %}
</a>
{% endif %}
</div>
{% endif %}
</div>
{% endfor %}
{% endif %}
</div>
{% if boxedLayout %}
</div>
{% endif %}