Source for file function.blockposition.php
Documentation is available at function.blockposition.php
* Zikula Application Framework
* @copyright (c) 2004, Zikula Development Team
* @link http://www.zikula.org
* @version $Id: function.blockposition.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 the welcome message
* <!--[blockposition name=left]-->
* @see function.blockposition.php::smarty_function_blockposition()
* @param array $params All attributes passed to this function from the template
* @param object &$smarty Reference to the Smarty object
* @param string name The name of the block position to render
* @return string the welcome message
// fix the core positions for a better name
if ($params['name'] == 'l') $params['name'] = 'left';
if ($params['name'] == 'r') $params['name'] = 'right';
if ($params['name'] == 'c') $params['name'] = 'center';
if (!isset ($params['name'])) {
$smarty->trigger_error('blockposition: attribute name required');
if (isset ($params['assign'])) {
$smarty->assign($params['assign'], $return);
|