<div class="col-lg-6 watch-landing-example-container">
{% set thumbnailName = 'seiko_productDetails' %}
{% if editmode %}
<div style="width: 300px; height: 430px">
<div>
<h6 class="banner-style">THUMBNAIL</h6>
{{ pimcore_select("thumbnail_for_image", {
"store": [
["seiko_productDetails", "Seiko ProductDetails"],
["seiko_brandAmbassadorDetails", "Seiko Brandambassador Details"],
],
"defaultValue": "seiko_productDetails"
}) }}
</div>
<h6 class="banner-style">ÓRA WEB KÉP</h6>
{{ pimcore_image('watch-example', {'reload':true}) }}
<h6 class="banner-style">Link a képen {{ pimcore_link('picture_link') }}</h6>
</div>
{% else %}
{% set image = pimcore_image('watch-example') %}
{% if image and image.getImage() %}
{% if pimcore_select("thumbnail_for_image").getData() %}
{% set thumbnailName = pimcore_select("thumbnail_for_image").getData() %}
{% endif %}
{% set anchorNeeded = pimcore_relation("additional_news").getElement() is instanceof('\\Pimcore\\Model\\DataObject\\News') and not editmode %}
{% if not pimcore_link('picture_link').isEmpty() and not anchorNeeded %}
{{ pimcore_link('picture_link', {
'noText': true,
'textPrefix': image.getImage().thumbnail(thumbnailName).getHtml({
'imgAttributes': {
'alt': 'example',
'class': 'img-fluid'
}
}) | raw
}) }}
{% else %}
{% if anchorNeeded %}
<a class="div-link" href="{{ pimcore_url({'object': pimcore_relation("additional_news").getElement()}) }}">
{% endif %}
{{ image.getImage().thumbnail(thumbnailName).getHtml({
'imgAttributes': {
'alt': 'example',
'class': 'img-fluid'
}
}) | raw }}
{% if anchorNeeded %}
</a>
{% endif %}
{% endif %}
{% endif %}
{% endif %}
</div>