first commit
This commit is contained in:
28
admin/class/smarty_plugins/function.get_statuses.php
Normal file
28
admin/class/smarty_plugins/function.get_statuses.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Smarty plugin.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Smarty {get_statuses} plugin.
|
||||
*
|
||||
* Type: function<br>
|
||||
* Name: url<br>
|
||||
* Purpose: get statuses
|
||||
*
|
||||
* @param array $params parameters
|
||||
* @param Smarty_Internal_Template $smarty
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
function smarty_function_get_statuses($params, &$smarty)
|
||||
{
|
||||
$statuses = getStatuses($params['name']);
|
||||
|
||||
if (!empty($params['assign'])) {
|
||||
$smarty->assign($params['assign'], $statuses);
|
||||
} else {
|
||||
return $statuses;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user