Location: PHPKode > scripts > Paginator Iterator > paginator-iterator/plugins/block.p_alternating.php
<?php

function smarty_block_p_alternating($params, $content, &$smarty)
{
	static $flag;

	if(is_null($content)) {
		return;
	}
	
	if(!$flag)
	{
		$flag=1;
		return;
	}

	$parent_params=smarty_get_parent_plugin_params($smarty, 'p_iterator');
	if(!$smarty->_paginator[$parent_params['id']]['is_alternating'])
		return;

	$smarty->_paginator[$parent_params['id']]['content'].=$content;
	return;
}

?>
Return current item: Paginator Iterator