mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-07 16:44:07 +01:00
enhanced format to add an icon and already translated texts
This commit is contained in:
parent
8d2c4bb7a3
commit
4dade58bbe
@ -170,8 +170,21 @@
|
||||
else
|
||||
{
|
||||
$var['icon_or_star']='<font color="#ff9933">*</font>';
|
||||
$var['lang_item']=lang($item_text);
|
||||
$var['item_link']=$item_link;
|
||||
if (is_array($item_link))
|
||||
{
|
||||
if (isset($item_link['icon']))
|
||||
{
|
||||
$app = isset($item_link['app']) ? $item_link['app'] : $GLOBALS['phpgw_info']['flags']['currentapp'];
|
||||
$var['icon_or_star'] = $GLOBALS['phpgw']->common->image($app,$item_link['icon']);
|
||||
}
|
||||
$var['lang_item'] = isset($item_link['no_lang']) && $item_link['no_lang'] ? $item_link['text'] : lang($item_link['text']);
|
||||
$var['item_link'] = $item_link['link'];
|
||||
}
|
||||
else
|
||||
{
|
||||
$var['lang_item']=lang($item_text);
|
||||
$var['item_link']=$item_link;
|
||||
}
|
||||
$GLOBALS['idots_tpl']->set_var($var);
|
||||
$GLOBALS['idots_tpl']->pparse('out','extra_block_row');
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user