templates/platform/component/organism/section_v2.html.twig line 1

Open in your IDE?
  1. {% extends '@component/_template/_block.html.twig' %}
  2. {% if data is not defined %}
  3. {% set data = null %}
  4. {% endif %}
  5. {% import "@component/_template/_html_macro.html.twig" as macros %}
  6. {% block component %}
  7. {% if value.section_top_icon is defined %}
  8. {% set iconOptions = generateItemOptions(value.section_top_icon, componentKey ~ '.section_top_icon') %}
  9. {% if canDisplayComponentByAcl( iconOptions) %}
  10. {{ macros.generateHtmlComponentStart(iconOptions, 'section-icon-top') }}
  11. {% include '@component/atom/icon.html.twig' with {'icon': value.section_top_icon.icon} %}
  12. {{ macros.generateHtmlComponentEnd(iconOptions) }}
  13. {% endif %}
  14. {% endif %}
  15. {% for k,section in value.sections %}
  16. {{ component(section, componentKey ~ '.sections.' ~ k, data ) }}
  17. {% endfor %}
  18. {% endblock component %}