46 $intCount = intval($params[
'count']);
49 $smarty->trigger_error(
"block: negative 'count' parameter");
54 for ($i=0; $i<$intCount; $i++)
56 $index = $i + intval($params[
'startindex']);
57 if (isset($params[
'strformat']))
58 $indexStr = sprintf($params[
'strformat'], $index);
62 $strRepeat .= str_replace(
'{$index}', $indexStr, $content);
64 if (isset($params[
'separator']) && $i<$intCount-1)
65 $strRepeat .= $params[
'separator'];
68 if (!empty($params[
'assign']))
69 $smarty->assign($params[
'assign'], $strRepeat);
smarty_block_repeat($params, $content, &$smarty)