PHP Classes

File: plugins/block.p_footer.php

Recommend this page to a friend!
  Classes of Anderson A. Meggiolaro   Paginator Iterator   plugins/block.p_footer.php   Download  
File: plugins/block.p_footer.php
Role: Auxiliary script
Content type: text/plain
Description: Footer Template
Class: Paginator Iterator
Iterate over listings split in page using Smarty
Author: By
Last change:
Date: 15 years ago
Size: 390 bytes
 

Contents

Class file image Download
<?php

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

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

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

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

?>