mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-29 11:10:18 +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
13
tests/template/templates/loop_vars_twig.html
Normal file
13
tests/template/templates/loop_vars_twig.html
Normal file
@@ -0,0 +1,13 @@
|
||||
{% for test_loop_inner in test_loop %}
|
||||
{% if test_loop_inner.S_FIRST_ROW %}first{% endif %}
|
||||
{{ test_loop_inner.S_ROW_NUM }} - a
|
||||
{{ test_loop_inner.VARIABLE }} - b
|
||||
{% if test_loop_inner.VARIABLE %}set{% endif %}
|
||||
{% if test_loop_inner.S_LAST_ROW %}
|
||||
last
|
||||
{% endif %}
|
||||
{% for inner_inner in test_loop_inner.inner %}
|
||||
{{ inner_inner.S_ROW_NUM }} - c
|
||||
{% if inner_inner.S_LAST_ROW and inner_inner.S_ROW_COUNT and inner_inner.S_NUM_ROWS %}last inner{% endif %}
|
||||
{% endfor %}
|
||||
{% endfor %}
|
Reference in New Issue
Block a user