vendor/store.shopware.com/loyxxsw6slideinbox/src/Resources/views/storefront/block/cms-block-slide-in.html.twig line 1

Open in your IDE?
  1. {% block block_slide_in%}
  2.     {% set element = block.slots.getSlot('slideIn') %}
  3.     {% set columns = 1 %}
  4.     {% set config = element.fieldConfig.elements %}
  5.     {% set textBoxStyle = '' %}
  6.     {% if config.styles.value|length > 0 %}
  7.         {% for property, value in config.styles.value  %}
  8.             {% set textBoxStyle = textBoxStyle ~ (property | filterProperty(value)) %}
  9.         {% endfor %}
  10.     {% endif %}
  11.     {% if config.enableBorder.value %}
  12.         {% set textBoxStyle = textBoxStyle ~ ";border-style: solid" %}
  13.         {% if element.config.borderColor.value %}
  14.             {% set textBoxStyle = textBoxStyle ~ ";border-color: " ~ element.config.borderColor.value %}
  15.         {% endif %}
  16.         {% if element.config.borderWidth.value %}
  17.             {% set textBoxStyle = textBoxStyle ~ ";border-width: " ~ element.config.borderWidth.value %}
  18.         {% endif %}
  19.     {% endif %}
  20.     {% set slideInPluginOptions = {
  21.         enableCookie: element.config.enableCookie.value,
  22.         cmsElementId: element.id
  23.     } %}
  24.     <div class="{% if element.config.animation.value is not null %} animated slow {% endif %} slide-in-box-vertical-position__{{ config.verticalPosition.value ?? 'bottom' }} slide-in-box-horizontal-position__{{ config.horizontalPosition.value ?? 'right' }}"
  25.          data-loyxx-slide-in="true"
  26.          data-loyxx-slide-in-options="{{ slideInPluginOptions | json_encode }}"
  27.          data-cms-element-id="{{ element.id }}"
  28.          data-loyxx-enable-cookie="{{ element.config.enableCookie.value ? 1 : 0 }}"
  29.         {% if config.animation.value is not null %} data-entry-animation="{{ config.animation.value }}" {% endif %} style="{{ textBoxStyle }}">
  30.         <div class="slide-in-close"  data-cms-element-id="{{ element.id }}" >
  31.             {% sw_icon 'x' style { 'size': 'sm', 'color': 'white' } %}
  32.         </div>
  33.         {% block block_slide_in_inner %}
  34.             {% sw_include "@Storefront/storefront/element/cms-element-" ~ element.type ~ ".html.twig" ignore missing %}
  35.         {% endblock %}
  36.     </div>
  37. {% endblock %}