templates/areas/watch-landing/_image.html.twig line 1

Open in your IDE?
  1. <div class="col-lg-6 watch-landing-example-container">
  2.     {% set thumbnailName = 'seiko_productDetails' %}
  3.     {% if editmode %}
  4.         <div style="width: 300px; height: 430px">
  5.             <div>
  6.                 <h6 class="banner-style">THUMBNAIL</h6>
  7.                 {{ pimcore_select("thumbnail_for_image", {
  8.                     "store": [
  9.                         ["seiko_productDetails", "Seiko ProductDetails"],
  10.                         ["seiko_brandAmbassadorDetails", "Seiko Brandambassador Details"],
  11.                     ],
  12.                     "defaultValue": "seiko_productDetails"
  13.                 }) }}
  14.             </div>
  15.             <h6 class="banner-style">ÓRA WEB KÉP</h6>
  16.             {{ pimcore_image('watch-example', {'reload':true}) }}
  17.             <h6 class="banner-style">Link a képen {{ pimcore_link('picture_link') }}</h6>
  18.         </div>
  19.     {% else %}
  20.         {% set image = pimcore_image('watch-example') %}
  21.         {% if image and image.getImage() %}
  22.             {% if pimcore_select("thumbnail_for_image").getData() %}
  23.                 {% set thumbnailName = pimcore_select("thumbnail_for_image").getData() %}
  24.             {% endif %}
  25.             {% set anchorNeeded = pimcore_relation("additional_news").getElement() is instanceof('\\Pimcore\\Model\\DataObject\\News') and not editmode %}
  26.             {% if not pimcore_link('picture_link').isEmpty() and not anchorNeeded %}
  27.                 {{ pimcore_link('picture_link', {
  28.                     'noText': true,
  29.                     'textPrefix': image.getImage().thumbnail(thumbnailName).getHtml({
  30.                         'imgAttributes': {
  31.                             'alt': 'example',
  32.                             'class': 'img-fluid'
  33.                         }
  34.                     }) | raw
  35.                 }) }}
  36.             {% else %}
  37.                 {% if anchorNeeded %}
  38.                     <a class="div-link" href="{{ pimcore_url({'object': pimcore_relation("additional_news").getElement()}) }}">
  39.                 {% endif %}
  40.                 {{ image.getImage().thumbnail(thumbnailName).getHtml({
  41.                     'imgAttributes': {
  42.                         'alt': 'example',
  43.                         'class': 'img-fluid'
  44.                     }
  45.                 }) | raw }}
  46.                 {% if anchorNeeded %}
  47.                     </a>
  48.                 {% endif %}
  49.             {% endif %}
  50.         {% endif %}
  51.     {% endif %}
  52. </div>