Source for file block.repeat.php
Documentation is available at block.repeat.php
* -------------------------------------------------------------
* Purpose: repeat a template block a given number of times
* Parameters: count [required] - number of times to repeat
* assign [optional] - variable to collect output
* Author: Scott Matthewman <scott@matthewman.net>
* -------------------------------------------------------------
if( !empty( $content ) ) {
$intCount = intval( $params['count'] );
$gBitSmarty->trigger_error( "block: negative 'count' parameter" );
if( !empty( $params['assign'] ) ) {
$gBitSmarty->assign($params['assign'], $strRepeat );
|