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

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

	if(is_null($content)) {
		return;
	}
	
	$parent_params=smarty_get_parent_plugin_params($smarty, 'p_iterator');

	if(!$flag || $smarty->_paginator[$parent_params['id']]['counter']>0)
	{
		$flag=1;
		return;
	}

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

?>
Return current item: Paginator Iterator