{% 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>Layout</div>
<div>
{{
pimcore_select("layout", {
store: [
["flex", "Flex"],
["stacked", "Stacked"]
]
})
}}
</div>
</div>
<div class="row middle-lg middle-md middle-sm" style="gap: 10px">
<div>Columns</div>
<div>
{{
pimcore_select("columns", {
store: [
["1", "1"],
["2", "2"],
["3", "3"]
]
})
}}
</div>
</div>
</div>
<div style="position: absolute; top: 10px; right: 0; font-weight: bold; text-transform: uppercase;">
Icon Writeup
</div>
</div>
</div>
{% endif %}
{% set layout = pimcore_select("layout").getData() == 'flex' ? ' class=display-flex' : '' %}
{% set columns = pimcore_select("columns").getData() == 2 ? ' two-col' : pimcore_select("columns").getData() == 3 ? ' three-col' : '' %}
<div{{ layout }} style="margin-bottom: -3em;">
{% for i in pimcore_block('iconWriteupBlock', {'limit': 4}).iterator %}
<div class="stylized-header{{ columns }}">
{% if not pimcore_image("iconIcon").isEmpty() %}
<div class="icon-container">
{% endif %}
{% if editmode %}
{{
pimcore_image("iconIcon", {
title: "Drag your image here, SVG preferred for color matching of site.",
width: 50,
height: 50
})
}}
{% else %}
{% if pimcore_image("iconIcon").getName()|split('.')|last == 'svg' %}
{{ pimcore_image("iconIcon") }}
{% else %}
{{ pimcore_image("iconIcon", {
"thumbnail": {
"width": 200,
"height": 200,
"interlace": true,
"quality": 90
}
}) }}
{% endif %}
{% endif %}
{% if not pimcore_image("iconIcon").isEmpty() %}
</div>
{% endif %}
<p class="text--lg text-align-center font-weight-bold">
{{ pimcore_input("iconStrongText", { placeholder: "Icon Info" })|raw }}
</p>
</div>
{% endfor %}
</div>