custom/plugins/SchilderSysteme/src/Resources/views/storefront/block/cms-block-flip-book.html.twig line 1

Open in your IDE?
  1. {% block block_flip_book %}
  2. {#    {% set element = block.slots.getSlot(slot) %}#}
  3.     {% sw_include "@Storefront/storefront/element/cms-element-categories.html.twig" %}
  4. {#    <div data-cms-element-id="{{ element.id }}" class="flip-book col-12">#}
  5. {#        {% set categories='' %}#}
  6. {#        {% for item in page.header.navigation.tree %}#}
  7. {#            {% if item.category.name is same as('Leitsysteme') %}#}
  8. {#                {% set categories=item.children %}#}
  9. {#            {% endif %}#}
  10. {#        {% endfor %}#}
  11. {#        <div class="flip-book-slider-container">#}
  12. {#            {% for item in categories %}#}
  13. {#                {% if item.category.customFields.custom_category_info_flip_book_2 %}#}
  14. {#                <div class="flip-book-slider-item d-none" data-id="{{ item.category.id }}">#}
  15. {#                    {{ item.category.customFields.custom_category_info_flip_book_2|raw }}#}
  16. {#                </div>#}
  17. {#                {% endif %}#}
  18. {#            {% endfor %}#}
  19. {#        </div>#}
  20. {#        <div class="flip-book--categories cms-element-categories-slider">#}
  21. {#            {{ dump() }}#}
  22. {#            {% for item in categories %}#}
  23. {#                {% if item.category.customFields.custom_category_info_flip_book_2 %}#}
  24. {#                {% set categoryColor = item.category.customFields.custom_category_info_color %}#}
  25. {#                <div class="cms-element-categories-item" alt="{{ category.translated.name }}" data-id="{{ item.category.id }}">#}
  26. {#                     <img src="{{ singleImage.url }}" class="cms-element-categories-item-image">#}
  27. {#                    <span class="cms-element-categories-item-text">{{ item.category.translated.name }}</span>#}
  28. {#                    <div class="background-container" style="background-color: red"></div>#}
  29. {#                </div>#}
  30. {#                {% endif %}#}
  31. {#            {% endfor %}#}
  32. {#        </div>#}
  33. {#    </div>#}
  34. {% endblock %}