mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 22:10:45 +02:00
[ticket/13132] Twig: Add loops content to the root context
PHPBB3-13132
This commit is contained in:
committed by
Nicofuma
parent
70990bc86f
commit
cf39cfc593
21
tests/template/templates/loop_twig.html
Normal file
21
tests/template/templates/loop_twig.html
Normal file
@@ -0,0 +1,21 @@
|
||||
{% for test_loop_inner in test_loop %}
|
||||
loop
|
||||
{% else %}
|
||||
noloop
|
||||
{% endfor %}
|
||||
|
||||
{% if test_loop|length %}
|
||||
loop
|
||||
{% else %}
|
||||
noloop
|
||||
{% endif %}
|
||||
|
||||
{% if test_loop|length == 2 %}
|
||||
loop
|
||||
{% endif %}
|
||||
|
||||
{% for test_loop_inner in test_loop %}
|
||||
{% for block_inner in block %}
|
||||
loop#{{ test_loop_inner.S_ROW_COUNT }}-block#{{ block_inner.S_ROW_COUNT }}
|
||||
{% endfor %}
|
||||
{% endfor %}
|
Reference in New Issue
Block a user