We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3759204 + 3cf31ce commit 07f42f2Copy full SHA for 07f42f2
app/sprinkles/core/templates/modals/modal.html.twig
@@ -1,9 +1,6 @@
1
{# Base layout for modals.
2
#}
3
4
-{# Conditional block. See http://stackoverflow.com/a/13806784/2970321 #}
5
-{% set _modal_footer = block('modal_footer') %}
6
-
7
<div class="modal fade" role="dialog">
8
<div class="modal-dialog {% block modal_size %}{% endblock %}" role="document">
9
<div class="modal-content">
@@ -17,9 +14,9 @@
17
14
{% block modal_body %}
18
15
{% endblock %}
19
16
</div>
20
- {% if _modal_footer is not empty %}
+ {% if block('modal_footer') is defined %}
21
<div class="modal-footer">
22
- {{ _modal_footer | raw }}
+ {{ block('modal_footer') | raw }}
23
24
{% endif %}
25
0 commit comments