<?php
function smarty_block_p_item($params, $content, &$smarty)
{
static $flag;
if(is_null($content)) {
return;
}
$parent_params=smarty_get_parent_plugin_params($smarty, 'p_iterator');
if(!$flag[$parent_params['id']])
{
$flag[$parent_params['id']]=1;
return;
}
if($smarty->_paginator[$parent_params['id']]['is_alternating'])
return;
$smarty->_paginator[$parent_params['id']]['content'].=$content;
return;
}
?>
|