XOOPS
2.6.0
|
Go to the source code of this file.
Functions | |
smarty_function_xoblock ($params, &$smarty) | |
smarty_function_xoblock | ( | $params, | |
& | $smarty | ||
) |
Usage : just place <{xoblock id=1}> inside any template or theme, replace '1' with the id of the block you want to show
Other options: display = 'title' -> shows just title display = 'none' -> renders the block but does not display it options = 'enter|block|options' -> overwrites block default options groups = 'enter|allowed|groups' -> overwrites block default group view permissions cache = 3600 -> overwrite cache time(in seconds)
Examples: <{xoblock id=1 display="title"}> displays just the block title <{xoblock id=1}> displays just the block content <{xoblock id=7 display="none"}> does not display nothing but executes the block, this can go for online block or to trigger some cron block <{xoblock id=600 groups="0|1" cache=20}> display block just for this 2 groups and sets a cache of 20 seconds <{block id=600 options="100|100|s_poweredby.gif|0"}> displays block with diferent options
array | $params | |
Smarty | $smarty |
Definition at line 40 of file function.xoblock.php.
References $groups, $options, $tpl, $xoops, and Xoops\getInstance().