mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-24 14:11:29 +01:00
add quotes to all array elements; remove stray whitespace
This commit is contained in:
parent
d4952f1a2b
commit
e8dd639f65
@ -36,21 +36,23 @@
|
|||||||
|
|
||||||
if($GLOBALS['phpgw_info']['user']['preferences']['common']['click_or_onmouseover']=='onmouseover')
|
if($GLOBALS['phpgw_info']['user']['preferences']['common']['click_or_onmouseover']=='onmouseover')
|
||||||
{
|
{
|
||||||
$show_menu_event='onMouseOver';
|
$show_menu_event = 'onMouseOver';
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$show_menu_event='onClick';
|
$show_menu_event = 'onClick';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$applications = '';
|
$applications = '';
|
||||||
|
|
||||||
// == 'icons_and_text')
|
// == 'icons_and_text')
|
||||||
|
|
||||||
$max_icons=$GLOBALS['phpgw_info']['user']['preferences']['common']['max_icons'];
|
$max_icons=$GLOBALS['phpgw_info']['user']['preferences']['common']['max_icons'];
|
||||||
if(!$max_icons) $max_icons=200;
|
if(!$max_icons)
|
||||||
|
{
|
||||||
|
$max_icons=200;
|
||||||
|
}
|
||||||
|
|
||||||
foreach($GLOBALS['phpgw_info']['navbar'] as $app => $app_data)
|
foreach($GLOBALS['phpgw_info']['navbar'] as $app => $app_data)
|
||||||
{
|
{
|
||||||
@ -78,8 +80,6 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
$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
|
||||||
{
|
{
|
||||||
@ -92,7 +92,7 @@
|
|||||||
|
|
||||||
$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 .= '<td align="left" 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'])
|
||||||
{
|
{
|
||||||
@ -110,9 +110,9 @@
|
|||||||
|
|
||||||
$var['app_icons'] = $app_icons;
|
$var['app_icons'] = $app_icons;
|
||||||
|
|
||||||
if($i>$max_icons)
|
if($i > $max_icons)
|
||||||
{
|
{
|
||||||
$app_extra_icons_div='
|
$app_extra_icons_div = '
|
||||||
<script language="javascript">
|
<script language="javascript">
|
||||||
new ypSlideOutMenu("menu1", "down", 10, 114, 160, 200,\'right\')
|
new ypSlideOutMenu("menu1", "down", 10, 114, 160, 200,\'right\')
|
||||||
</script>
|
</script>
|
||||||
@ -121,7 +121,7 @@
|
|||||||
|
|
||||||
<div id="extraIcons">
|
<div id="extraIcons">
|
||||||
<table>
|
<table>
|
||||||
<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> </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>
|
||||||
'.$app_extra_icons.' </table>
|
'.$app_extra_icons.' </table>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -132,10 +132,8 @@
|
|||||||
$var['app_extra_icons_div']= $app_extra_icons_div;
|
$var['app_extra_icons_div']= $app_extra_icons_div;
|
||||||
// $var['app_extra_icons_icon']= '<td width="26" valign="top" align="right" style="padding-right:3px;padding-top:50px;"><a title="'.lang('show_more_apps').'" href="javascript:void(0);" onClick="HideShow(\'extraIcons\');"><img src="'.$var['img_root'].'/extra_icons.png" border="0" /></a></td>';
|
// $var['app_extra_icons_icon']= '<td width="26" valign="top" align="right" style="padding-right:3px;padding-top:50px;"><a title="'.lang('show_more_apps').'" href="javascript:void(0);" onClick="HideShow(\'extraIcons\');"><img src="'.$var['img_root'].'/extra_icons.png" border="0" /></a></td>';
|
||||||
$var['app_extra_icons_icon']= '<td width="26" valign="top" align="right" style="padding-right:3px;padding-top:50px;"><a title="'.lang('show_more_apps').'" href="#" '.$show_menu_event.'="ypSlideOutMenu.showMenu(\'menu1\')"><img src="'.$var['img_root'].'/extra_icons.png" border="0" /></a></td>';
|
$var['app_extra_icons_icon']= '<td width="26" valign="top" align="right" style="padding-right:3px;padding-top:50px;"><a title="'.lang('show_more_apps').'" href="#" '.$show_menu_event.'="ypSlideOutMenu.showMenu(\'menu1\')"><img src="'.$var['img_root'].'/extra_icons.png" border="0" /></a></td>';
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if($GLOBALS['phpgw_info']['user']['preferences']['common']['navbar_format']!='icons')
|
if($GLOBALS['phpgw_info']['user']['preferences']['common']['navbar_format']!='icons')
|
||||||
{
|
{
|
||||||
$var['app_titles'] = $app_titles;
|
$var['app_titles'] = $app_titles;
|
||||||
@ -184,7 +182,6 @@
|
|||||||
$GLOBALS['idots_tpl']->set_var($var);
|
$GLOBALS['idots_tpl']->set_var($var);
|
||||||
$GLOBALS['idots_tpl']->pfp('out','navbar_header');
|
$GLOBALS['idots_tpl']->pfp('out','navbar_header');
|
||||||
|
|
||||||
|
|
||||||
/******************************************************\
|
/******************************************************\
|
||||||
* The sidebox menu's *
|
* The sidebox menu's *
|
||||||
\******************************************************/
|
\******************************************************/
|
||||||
@ -215,37 +212,34 @@
|
|||||||
|
|
||||||
$GLOBALS['idots_tpl']->pparse('out','sidebox_hide_footer');
|
$GLOBALS['idots_tpl']->pparse('out','sidebox_hide_footer');
|
||||||
|
|
||||||
$var[sideboxcolstart]='';
|
$var['sideboxcolstart']='';
|
||||||
|
|
||||||
$GLOBALS['idots_tpl']->set_var($var);
|
$GLOBALS['idots_tpl']->set_var($var);
|
||||||
$GLOBALS['idots_tpl']->pparse('out','appbox');
|
$GLOBALS['idots_tpl']->pparse('out','appbox');
|
||||||
$var[remove_padding]='style="padding-left:0px;"';
|
$var['remove_padding'] = 'style="padding-left:0px;"';
|
||||||
$var[sideboxcolend]='';
|
$var['sideboxcolend'] = '';
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$var[menu_link]='';
|
$var['menu_link'] = '';
|
||||||
$var[sideboxcolstart]='<td id="tdSidebox" valign="top">';
|
$var['sideboxcolstart'] = '<td id="tdSidebox" valign="top">';
|
||||||
$var[remove_padding]='';
|
$var['remove_padding'] = '';
|
||||||
$GLOBALS['idots_tpl']->set_var($var);
|
$GLOBALS['idots_tpl']->set_var($var);
|
||||||
$GLOBALS['idots_tpl']->pparse('out','appbox');
|
$GLOBALS['idots_tpl']->pparse('out','appbox');
|
||||||
|
|
||||||
display_sidebox('',$menu_title,$file);
|
display_sidebox('',$menu_title,$file);
|
||||||
$GLOBALS['phpgw']->hooks->single('sidebox_menu',$GLOBALS['phpgw_info']['flags']['currentapp']);
|
$GLOBALS['phpgw']->hooks->single('sidebox_menu',$GLOBALS['phpgw_info']['flags']['currentapp']);
|
||||||
|
|
||||||
$var[sideboxcolend]='</td>';
|
$var['sideboxcolend'] = '</td>';
|
||||||
}
|
}
|
||||||
|
|
||||||
$GLOBALS['idots_tpl']->set_var($var);
|
$GLOBALS['idots_tpl']->set_var($var);
|
||||||
$GLOBALS['idots_tpl']->pparse('out','navbar_footer');
|
$GLOBALS['idots_tpl']->pparse('out','navbar_footer');
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// If the application has a header include, we now include it
|
// If the application has a header include, we now include it
|
||||||
if(!@$GLOBALS['phpgw_info']['flags']['noappheader'] && @isset($GLOBALS['HTTP_GET_VARS']['menuaction']))
|
if(!@$GLOBALS['phpgw_info']['flags']['noappheader'] && @isset($_GET['menuaction']))
|
||||||
{
|
{
|
||||||
list($app,$class,$method) = explode('.',$GLOBALS['HTTP_GET_VARS']['menuaction']);
|
list($app,$class,$method) = explode('.',$_GET['menuaction']);
|
||||||
if(is_array($GLOBALS[$class]->public_functions) && $GLOBALS[$class]->public_functions['header'])
|
if(is_array($GLOBALS[$class]->public_functions) && $GLOBALS[$class]->public_functions['header'])
|
||||||
{
|
{
|
||||||
$GLOBALS[$class]->header();
|
$GLOBALS[$class]->header();
|
||||||
@ -293,13 +287,13 @@
|
|||||||
$var['item_link'] = $item_link['link'];
|
$var['item_link'] = $item_link['link'];
|
||||||
if ($item_link['target'])
|
if ($item_link['target'])
|
||||||
{
|
{
|
||||||
$var['target'] = " target=\"$item_link[target]\"";
|
$var['target'] = ' target="' . $item_link['target'] . '"';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$var['lang_item']=lang($item_text);
|
$var['lang_item'] = lang($item_text);
|
||||||
$var['item_link']=$item_link;
|
$var['item_link'] = $item_link;
|
||||||
}
|
}
|
||||||
$GLOBALS['idots_tpl']->set_var($var);
|
$GLOBALS['idots_tpl']->set_var($var);
|
||||||
$GLOBALS['idots_tpl']->pparse('out','extra_block_row');
|
$GLOBALS['idots_tpl']->pparse('out','extra_block_row');
|
||||||
@ -322,11 +316,10 @@
|
|||||||
);
|
);
|
||||||
$GLOBALS['phpgw']->hooks->process('navbar_end');
|
$GLOBALS['phpgw']->hooks->process('navbar_end');
|
||||||
|
|
||||||
|
|
||||||
if($GLOBALS['phpgw_info']['user']['preferences']['common']['show_generation_time'])
|
if($GLOBALS['phpgw_info']['user']['preferences']['common']['show_generation_time'])
|
||||||
{
|
{
|
||||||
$mtime = microtime();
|
$mtime = microtime();
|
||||||
$mtime = explode(" ",$mtime);
|
$mtime = explode(' ',$mtime);
|
||||||
$mtime = $mtime[1] + $mtime[0];
|
$mtime = $mtime[1] + $mtime[0];
|
||||||
$tend = $mtime;
|
$tend = $mtime;
|
||||||
$totaltime = ($tend - $GLOBALS['page_start_time']);
|
$totaltime = ($tend - $GLOBALS['page_start_time']);
|
||||||
|
Loading…
Reference in New Issue
Block a user