Source for file function.pnbannerdisplay.php
Documentation is available at function.pnbannerdisplay.php
* Zikula Application Framework
* @copyright (c) 2004, Zikula Development Team
* @link http://www.zikula.org
* @version $Id: function.pnbannerdisplay.php 24342 2008-06-06 12:03:14Z markwest $
* @license GNU/GPL - http://www.gnu.org/copyleft/gpl.html
* @package Zikula_Template_Plugins
* Smarty function to display .
* This function takes a identifier and returns a banner from the banners module
* - id: id of the banner group as defined in the banners module
* - assign: If set, the results are assigned to the corresponding variable instead of printed out
* <!--[pnbannerdisplay id=0]-->
* @param array $params All attributes passed to this function from the template
* @param object &$smarty Reference to the Smarty object
* @return string the banner
$id = isset ($params['id']) ? (int) $params['id'] : 0;
$assign = isset ($params['assign']) ? $params['assign'] : null;
$smarty->assign($assign, $result);
|