mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-27 09:09:04 +01:00
made the navbar icons arrange nicely in percentage of the number of icons
This commit is contained in:
parent
cb7fa13a6f
commit
25a0baf60a
@ -73,11 +73,18 @@
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
if($i<$max_icons)
|
||||
{
|
||||
$app_icons .= '<td height="66" valign="bottom" align="center"><a href="' . $app_data['url'] . '"';
|
||||
if($GLOBALS['phpgw_info']['user']['preferences']['common']['start_and_logout_icons']=='no')
|
||||
{
|
||||
$tdwidth = 100/($max_icons);
|
||||
}
|
||||
else
|
||||
{
|
||||
$tdwidth = 100/($max_icons+2);
|
||||
}
|
||||
|
||||
$app_icons .= '<td width="'.$tdwidth.'%" height="66" valign="bottom" align="center"><a href="' . $app_data['url'] . '"';
|
||||
|
||||
if(isset($GLOBALS['phpgw_info']['flags']['navbar_target']) && $GLOBALS['phpgw_info']['flags']['navbar_target'])
|
||||
{
|
||||
@ -144,7 +151,8 @@
|
||||
|
||||
if($GLOBALS['phpgw_info']['user']['preferences']['common']['start_and_logout_icons']!='no')
|
||||
{
|
||||
$app_icons .= '<td height="32" valign="bottom" align="center"><a href="'.$GLOBALS['phpgw_info']['navbar']['logout']['url'].'"><img src="'.$GLOBALS['phpgw_info']['navbar']['logout']['icon'].'"></a></td>';
|
||||
$app_icons .= '<td width="'.$tdwidth.'%"height="32" valign="bottom" align="center"><a
|
||||
href="'.$GLOBALS['phpgw_info']['navbar']['logout']['url'].'"><img src="'.$GLOBALS['phpgw_info']['navbar']['logout']['icon'].'"></a></td>';
|
||||
$app_titles .= '<td align=center valign="top" class="appTitles"><a href="'.$GLOBALS['phpgw_info']['navbar']['logout']['url'].'">'.$GLOBALS['phpgw_info']['navbar']['logout']['title'].'</a></td>';
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user