{% if editmode %}
<div class="settings">
<strong class="settings-header">Image Settings</strong><button class="toggle-settings"><i class="fa fa-plus"></i></button>
<div class="settings_container">
<div class="row flex-flow-col no-border-or-padding middle-lg">
<div class="col-lg-4">Thumbnail Type</div>
<div class="col-lg-7">
{{
pimcore_select("thumbnailType", {
store: [
["width_500", "500 Width"],
["square_crop", "Square Crop"],
["square_80px", "Square 80px"],
["circle_crop", "Circle Crop"]
]
})
}}
</div>
</div>
<div class="row flex-flow-col no-border-or-padding middle-lg">
<div class="col-lg-4">Image Alignment</div>
<div class="col-lg-7">
{{
pimcore_select("imageAligment", {
store: [
["left", "Left"],
["center", "Center"],
["right", "Right"]
]
})
}}
</div>
</div>
<div class="row flex-flow-col no-border-or-padding middle-lg">
<div class="col-lg-4">Image Max Width</div>
<div class="col-lg-7">
{{ pimcore_numeric("imageMaxWidth") }}
</div>
</div>
<div class="row flex-flow-col">
<div class="col-lg-4">Padding</div>
<div class="col-lg-7">
{{ pimcore_numeric("imagePadding") }}
</div>
</div>
<div class="row flex-flow-col">
<div class="col-lg-4">Circle image?</div>
<div class="col-lg-7">
{{ pimcore_checkbox("circleImage") }}
</div>
</div>
<div class="row flex-flow-col">
<div class="col-lg-4">Overlay</div>
<div class="col-lg-7">
{{ pimcore_select("imageOverlay", {
store: [
["dark", "Dark"],
["light", "Light"],
["red", "Red"]
]
}) }}
</div>
</div>
</div>
</div>
{% endif %}
{% set imageOverlay = pimcore_select("imageOverlay").getData() ? ' image-overlay' : '' %}
{% set overlayColour = pimcore_select("imageOverlay").getData() == 'dark' ? ' overlay--dark' : '' %}
{% set circleImage = pimcore_checkbox("circleImage").isChecked() ? ' circle-image' : '' %}
{% set imagePaddingmaxWidth = pimcore_numeric("imagePadding").getData() and pimcore_numeric("imageMaxWidth").getData() ? ' style=padding:' ~ pimcore_numeric("imagePadding").getData()|raw ~ 'px;max-width:' ~ pimcore_numeric("imageMaxWidth").getData()|raw ~ 'px;' : '' %}
{% set imagePadding = pimcore_numeric("imagePadding").getData() ? ' style=padding:' ~ pimcore_numeric("imagePadding").getData()|raw ~ 'px;' : '' %}
{% set imageMaxWidth = pimcore_numeric("imageMaxWidth").getData()|raw ? ' style=max-width:' ~ pimcore_numeric("imageMaxWidth").getData()|raw ~ 'px;' : '' %}
{% set imageAlignmentVar = pimcore_select("imageAligment").getData() %} {% set imageAlignment = imageAlignmentVar == 'center' ? ' align_image_center' : imageAlignmentVar == 'right' ? ' align_image_right' : '' %}
<div class="picture_container{% if pimcore_select("thumbnailType") == 'circle_crop' %} circle-crop{% endif %}{{ imageAlignment }}{{ circleImage }}{{ imageOverlay }}{{ overlayColour }}"{{ imagePaddingmaxWidth }}{{ imageMaxWidth }}{{ imagePadding }}>
{{
pimcore_image("image", {
thumbnail: pimcore_select("thumbnailType").getData() | raw,
imgAttributes: {},
})
}}
</div>