mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-25 15:29:17 +01:00
show small icons in the extra appmenu
This commit is contained in:
parent
d456632ae3
commit
46e3408ce4
@ -192,13 +192,20 @@ a.textSidebox
|
|||||||
right:10px;
|
right:10px;
|
||||||
top:113px;
|
top:113px;
|
||||||
visibility:hidden;*/
|
visibility:hidden;*/
|
||||||
background-image:url(../images/alpha-white.png);
|
/* background-image:url(../images/alpha-white.png);*/
|
||||||
|
background-color:#eeeeee;
|
||||||
border-width:1px;
|
border-width:1px;
|
||||||
border-color:#7e7e7e;
|
border-color:#7e7e7e;
|
||||||
border-style:solid;
|
border-style:solid;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.extraIconsRow
|
||||||
|
{
|
||||||
|
border-top-color:#dddddd;
|
||||||
|
border-top-width:1px;
|
||||||
|
border-top-style:solid;
|
||||||
|
padding:2px;
|
||||||
|
}
|
||||||
|
|
||||||
#divMain
|
#divMain
|
||||||
{
|
{
|
||||||
|
@ -81,9 +81,17 @@
|
|||||||
|
|
||||||
$app_titles .= '>' . $title . '</a></td>';
|
$app_titles .= '>' . $title . '</a></td>';
|
||||||
}
|
}
|
||||||
else // generate extra icon layer | always shows icons and text
|
// else // generate extra icon layer | always shows icons and text
|
||||||
|
else // generate extra icon layer shows icons and/or text
|
||||||
{
|
{
|
||||||
$app_extra_icons .= '<tr><td><a href="' . $app_data['url'] . '"';
|
// check for small icon version else use default and let the browser resize
|
||||||
|
$icon = '<img src="' . $app_data['icon'] . '" alt="' . $title . '" width="16" title="'. $title . '" border="0" />';
|
||||||
|
|
||||||
|
$app_extra_icons .= '<tr>';
|
||||||
|
|
||||||
|
if($GLOBALS['phpgw_info']['user']['preferences']['common']['navbar_format']!='text')
|
||||||
|
{
|
||||||
|
$app_extra_icons .= '<td class="extraIconsRow"><a href="' . $app_data['url'] . '"';
|
||||||
|
|
||||||
if(isset($GLOBALS['phpgw_info']['flags']['navbar_target']) && $GLOBALS['phpgw_info']['flags']['navbar_target'])
|
if(isset($GLOBALS['phpgw_info']['flags']['navbar_target']) && $GLOBALS['phpgw_info']['flags']['navbar_target'])
|
||||||
{
|
{
|
||||||
@ -91,8 +99,20 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
$app_extra_icons .= ' >' . $icon . '</a></td>';
|
$app_extra_icons .= ' >' . $icon . '</a></td>';
|
||||||
|
}
|
||||||
|
|
||||||
$app_extra_icons .= '<td align="left" class="extraIconsRow"><a href="'.$app_data['url'] . '"';
|
|
||||||
|
|
||||||
|
// $app_extra_icons .= '<tr><td><a href="' . $app_data['url'] . '"';
|
||||||
|
|
||||||
|
// if(isset($GLOBALS['phpgw_info']['flags']['navbar_target']) && $GLOBALS['phpgw_info']['flags']['navbar_target'])
|
||||||
|
// {
|
||||||
|
// $app_extra_icons .= ' target="' . $GLOBALS['phpgw_info']['flags']['navbar_target'] . '"';
|
||||||
|
// }
|
||||||
|
|
||||||
|
// $app_extra_icons .= '>' . $icon . '</a></td>';
|
||||||
|
|
||||||
|
$app_extra_icons .= '<td align="left" class="extraIconsRow" style=""><a href="'.$app_data['url'] . '"';
|
||||||
|
|
||||||
if(isset($GLOBALS['phpgw_info']['flags']['navbar_target']) && $GLOBALS['phpgw_info']['flags']['navbar_target'])
|
if(isset($GLOBALS['phpgw_info']['flags']['navbar_target']) && $GLOBALS['phpgw_info']['flags']['navbar_target'])
|
||||||
{
|
{
|
||||||
@ -108,7 +128,11 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// $var['app_icons'] = $app_icons;
|
||||||
|
if($GLOBALS['phpgw_info']['user']['preferences']['common']['navbar_format']!='text')
|
||||||
|
{
|
||||||
$var['app_icons'] = $app_icons;
|
$var['app_icons'] = $app_icons;
|
||||||
|
}
|
||||||
|
|
||||||
if($i > $max_icons)
|
if($i > $max_icons)
|
||||||
{
|
{
|
||||||
@ -120,8 +144,8 @@
|
|||||||
<div id="menu1Content" style="position: relative; left: 0; text-align: left;">
|
<div id="menu1Content" style="position: relative; left: 0; text-align: left;">
|
||||||
|
|
||||||
<div id="extraIcons">
|
<div id="extraIcons">
|
||||||
<table>
|
<table cellspacing="0" cellpadding="0">
|
||||||
<tr><td> </td><td nowrap="nowrap" align="right"><a href="#" '.$show_menu_event.'="ypSlideOutMenu.hide(\'menu1\')" title="'.lang('close').'"><img style="margin:4px;" border="0" src="'.$var['img_root'].'/close.png"/></a></td></tr>
|
<tr><td colspan="2" nowrap="nowrap" align="right" style="background-color:#dddddd;padding:1px;"><a href="#" '.$show_menu_event.'="ypSlideOutMenu.hide(\'menu1\')" title="'.lang('close').'"><img style="" border="0" src="'.$var['img_root'].'/close.png"/></a></td></tr>
|
||||||
'.$app_extra_icons.' </table>
|
'.$app_extra_icons.' </table>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user