Skip to content

Commit

Permalink
#243 Improve wrap macro (#244)
Browse files Browse the repository at this point in the history
(cherry picked from commit 8c122b3)
scrummer committed Jan 10, 2025
1 parent f33491a commit d00f104
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions templates/macro/wrap.html.twig
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{% macro createWrapHead(elementTheme) %}
{% if attribute(elementTheme, 'wrapper') is defined and elementTheme.wrapper is iterable %}
{% if elementTheme.wrapper is defined and elementTheme.wrapper is iterable %}
{% for element in elementTheme.wrapper %}
<{{ element.tag }} class="{{ element.class }}"{{ element.attr is defined ? (' ' ~ element.attr) }}>
{% endfor %}
{% endif %}
{% endmacro %}

{% macro createWrapFoot(elementTheme) %}
{% if attribute(elementTheme, 'wrapper') is defined and elementTheme.wrapper is iterable %}
{% if elementTheme.wrapper is defined and elementTheme.wrapper is iterable %}
{% for element in elementTheme.wrapper %}
</{{ element.tag }}>
{% endfor %}
{% endif %}
{% endmacro %}
{% endmacro %}

0 comments on commit d00f104

Please sign in to comment.