Source for file function.pnblockshow.php
Documentation is available at function.pnblockshow.php
* Zikula Application Framework
* @copyright (c) 2004, Zikula Development Team
* @link http://www.zikula.org
* @version $Id: function.pnblockshow.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 show a zikula block by blockinfo array or blockid.
* This function returns a zikula block by blockinfo array or blockid
* - assign: If set, the results are assigned to the corresponding variable instead of printed out
* @author Sebastian Schürmann
* @param array $params All attributes passed to this function from the template
* @param object &$smarty Reference to the Smarty object
* @return string the zikula block
$module = isset ($params['module']) ? $params['module'] : null;
$blockname = isset ($params['blockname']) ? $params['blockname'] : null;
$block = isset ($params['block']) ? $params['block'] : null;
$assign = isset ($params['assign']) ? $params['assign'] : null;
$smarty->trigger_error("pnblockshow: parameter [module] is required");
$smarty->trigger_error("pnblockshow: parameter [blockname] is required");
$smarty->trigger_error("pnblockshow: parameter [block information or id] is required");
$output = pnBlockShow($module, $blockname, $vars['content']);
$smarty->assign($assign, $output);
|