mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-31 12:01:48 +02:00
S_NUM_ROWS gives you the number of rows in a block
git-svn-id: file:///svn/phpbb/trunk@9098 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -111,19 +111,19 @@ class phpbb_template_template_test extends PHPUnit_Framework_TestCase
|
||||
'loop_vars.html',
|
||||
array(),
|
||||
array('loop' => array(array('VARIABLE' => 'x'))),
|
||||
"first\n0\n0\nx\nlast",
|
||||
"first\n0\n0\n1\nx\nlast",
|
||||
),
|
||||
array(
|
||||
'loop_vars.html',
|
||||
array(),
|
||||
array('loop' => array(array('VARIABLE' => 'x'), array('VARIABLE' => 'y'))),
|
||||
"first\n0\n0\nx\n1\n1\ny\nlast",
|
||||
"first\n0\n0\n2\nx\n1\n1\n2\ny\nlast",
|
||||
),
|
||||
array(
|
||||
'loop_vars.html',
|
||||
array(),
|
||||
array('loop' => array(array('VARIABLE' => 'x'), array('VARIABLE' => 'y')), 'loop.inner' => array(array(), array())),
|
||||
"first\n0\n0\nx\n1\n1\ny\nlast\n0\n1",
|
||||
"first\n0\n0\n2\nx\n1\n1\n2\ny\nlast\n0\n1",
|
||||
),
|
||||
array(
|
||||
'define.html',
|
||||
|
@@ -5,6 +5,8 @@
|
||||
|
||||
{loop.S_ROW_NUM}
|
||||
|
||||
{loop.S_NUM_ROWS}
|
||||
|
||||
{loop.VARIABLE}
|
||||
|
||||
<!-- IF loop.S_LAST_ROW -->last<!-- ENDIF -->
|
||||
|
Reference in New Issue
Block a user