templates/vitrine/components/elements/blocks.html.twig line 1

Open in your IDE?
  1. {% if page.theme != "default" %}
  2. {% if blocks is not empty %}
  3. {% for block in blocks %}
  4. {% if (block.onlyVisitor == true) and (block.visibilityUser == false) and app.user is null %}
  5. {# VISITEUR #}
  6. {% include "/vitrine/components/elements/collections.html.twig" with {'block':block} %}
  7. {% elseif (block.onlyVisitor == false) and (block.visibilityUser == true) and app.user is not null %}
  8. {# CONNECTE #}
  9. {% include "/vitrine/components/elements/collections.html.twig" with {'block':block} %}
  10. {% elseif (block.onlyVisitor == false) and (block.visibilityUser == false) %}
  11. {# VISITEUR + CONNECTE #}
  12. {% include "/vitrine/components/elements/collections.html.twig" with {'block':block} %}
  13. {% elseif (block.onlyVisitor is null) and (block.visibilityUser is null) %}
  14. {# VISITEUR + CONNECTE #}
  15. {% include "/vitrine/components/elements/collections.html.twig" with {'block':block} %}
  16. {% endif %}
  17. {% endfor %}
  18. {% endif %}
  19. {% else %}
  20. {% include "/vitrine/components/elements/simple.html.twig" with {'page':page} %}
  21. {% endif %}
  22. <div id="show_modal"></div>