mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-04 12:30:04 +01:00
add topmenu to the egw framework
implement topmenu in idots template set add idots preference to enable topmenu add idots preference to disable general sidebox menu some cleanups in idots framework class some cleanups in egw_framework
This commit is contained in:
parent
4a0af9f977
commit
60b9285d71
@ -1094,9 +1094,13 @@
|
|||||||
|
|
||||||
if (!$GLOBALS['egw_info']['flags']['nonavbar'])
|
if (!$GLOBALS['egw_info']['flags']['nonavbar'])
|
||||||
{
|
{
|
||||||
echo $GLOBALS['egw']->framework->navbar();
|
if($GLOBALS['egw_info']['user']['preferences']['common']['show_top_menu'] == 'yes')
|
||||||
|
{
|
||||||
|
echo $GLOBALS['egw']->framework->topmenu();
|
||||||
|
}
|
||||||
|
echo $GLOBALS['egw']->framework->navbar();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* load the eGW footer
|
* load the eGW footer
|
||||||
|
@ -81,13 +81,17 @@ class egw_framework
|
|||||||
|
|
||||||
if (!isset($GLOBALS['egw_info']['flags']['nonavbar']) || !$GLOBALS['egw_info']['flags']['nonavbar'])
|
if (!isset($GLOBALS['egw_info']['flags']['nonavbar']) || !$GLOBALS['egw_info']['flags']['nonavbar'])
|
||||||
{
|
{
|
||||||
echo $this->navbar();
|
if($GLOBALS['egw_info']['user']['preferences']['common']['show_top_menu'] == 'yes')
|
||||||
|
{
|
||||||
|
echo $this->topmenu();
|
||||||
|
}
|
||||||
|
echo $this->navbar();
|
||||||
}
|
}
|
||||||
echo $content;
|
echo $content;
|
||||||
|
|
||||||
echo $this->footer();
|
echo $this->footer();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the html-header incl. the opening body tag
|
* Returns the html-header incl. the opening body tag
|
||||||
*
|
*
|
||||||
@ -98,6 +102,16 @@ class egw_framework
|
|||||||
die('virtual, need to be reimplemented in the template!!!');
|
die('virtual, need to be reimplemented in the template!!!');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns the html for the top menu
|
||||||
|
*
|
||||||
|
* @return string with html
|
||||||
|
*/
|
||||||
|
function topmenu()
|
||||||
|
{
|
||||||
|
die('virtual, need to be reimplemented in the template!!!');
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the html from the body-tag til the main application area (incl. opening div tag)
|
* Returns the html from the body-tag til the main application area (incl. opening div tag)
|
||||||
*
|
*
|
||||||
@ -301,10 +315,8 @@ class egw_framework
|
|||||||
// quick add selectbox
|
// quick add selectbox
|
||||||
$var['quick_add'] = $this->_get_quick_add();
|
$var['quick_add'] = $this->_get_quick_add();
|
||||||
|
|
||||||
$now = time();
|
$var['user_info'] = $this->_user_time_info();
|
||||||
$var['user_info'] = '<b>'.$GLOBALS['egw']->common->display_fullname() .'</b>'. ' - '
|
|
||||||
. lang($GLOBALS['egw']->common->show_date($now,'l')) . ' '
|
|
||||||
. $GLOBALS['egw']->common->show_date($now,$GLOBALS['egw_info']['user']['preferences']['common']['dateformat']);
|
|
||||||
|
|
||||||
if($GLOBALS['egw_info']['user']['lastpasswd_change'] == 0)
|
if($GLOBALS['egw_info']['user']['lastpasswd_change'] == 0)
|
||||||
{
|
{
|
||||||
@ -340,7 +352,23 @@ class egw_framework
|
|||||||
|
|
||||||
return $var;
|
return $var;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns html with user and time
|
||||||
|
*
|
||||||
|
* @access protected
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
function _user_time_info()
|
||||||
|
{
|
||||||
|
$now = time();
|
||||||
|
$user_info = '<b>'.$GLOBALS['egw']->common->display_fullname() .'</b>'. ' - '
|
||||||
|
. lang($GLOBALS['egw']->common->show_date($now,'l')) . ' '
|
||||||
|
. $GLOBALS['egw']->common->show_date($now,$GLOBALS['egw_info']['user']['preferences']['common']['dateformat']);
|
||||||
|
|
||||||
|
return $user_info;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Prepare the quick add selectbox
|
* Prepare the quick add selectbox
|
||||||
*
|
*
|
||||||
@ -687,4 +715,4 @@ if (!function_exists('display_sidebox'))
|
|||||||
{
|
{
|
||||||
$GLOBALS['egw']->framework->sidebox($appname,$menu_title,$file);
|
$GLOBALS['egw']->framework->sidebox($appname,$menu_title,$file);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,10 +1,12 @@
|
|||||||
<!-- BEGIN navbar_header -->
|
<!-- BEGIN navbar_header -->
|
||||||
<div id="divLogo"><a href="{logo_url}" target="_blank"><img src="{logo_file}" border="0" title="{logo_title}" alt="eGroupWare"/></a></div>
|
|
||||||
|
|
||||||
<!-- BEGIN app_extra_icons_div -->
|
<!-- BEGIN 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>
|
||||||
|
|
||||||
|
<div style="position:relative"><div id="divLogo"><a href="{logo_url}" target="_blank"><img src="{logo_file}" border="0" title="{logo_title}" alt="eGroupWare"/></a></div></div>
|
||||||
|
|
||||||
<div id="menu1Container">
|
<div id="menu1Container">
|
||||||
<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">
|
||||||
|
@ -55,6 +55,9 @@ class idots_framework extends egw_framework
|
|||||||
|
|
||||||
$GLOBALS['egw_info']['flags']['include_xajax'] = True;
|
$GLOBALS['egw_info']['flags']['include_xajax'] = True;
|
||||||
$this->egw_framework($template); // call the constructor of the extended class
|
$this->egw_framework($template); // call the constructor of the extended class
|
||||||
|
|
||||||
|
$this->tplsav2 = CreateObject('phpgwapi.tplsavant2');
|
||||||
|
$this->tplsav2->set_tpl_path(EGW_SERVER_ROOT.SEP.'phpgwapi'.SEP.'templates'.SEP.'idots');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -93,9 +96,6 @@ class idots_framework extends egw_framework
|
|||||||
*/
|
*/
|
||||||
function navbar()
|
function navbar()
|
||||||
{
|
{
|
||||||
$this->tplsav2 = CreateObject('phpgwapi.tplsavant2');
|
|
||||||
$this->tplsav2->set_tpl_path(EGW_SERVER_ROOT.SEP.'phpgwapi'.SEP.'templates'.SEP.'idots');
|
|
||||||
|
|
||||||
$this->navbar_done = true;
|
$this->navbar_done = true;
|
||||||
|
|
||||||
// the navbar
|
// the navbar
|
||||||
@ -128,81 +128,92 @@ class idots_framework extends egw_framework
|
|||||||
$content = $this->tpl->fp('out','navbar_header');
|
$content = $this->tpl->fp('out','navbar_header');
|
||||||
|
|
||||||
// general (app-unspecific) sidebox menu
|
// general (app-unspecific) sidebox menu
|
||||||
$menu_title = lang('General Menu');
|
if($GLOBALS['egw_info']['user']['preferences']['common']['show_general_sideboxmenu']!='no')
|
||||||
|
|
||||||
$file['Home'] = $apps['home']['url'];
|
|
||||||
if($GLOBALS['egw_info']['user']['apps']['preferences'])
|
|
||||||
{
|
{
|
||||||
$file['Preferences'] = $apps['preferences']['url'];
|
$menu_title = lang('General Menu');
|
||||||
|
|
||||||
|
$file['Home'] = $apps['home']['url'];
|
||||||
|
if($GLOBALS['egw_info']['user']['apps']['preferences'])
|
||||||
|
{
|
||||||
|
$file['Preferences'] = $apps['preferences']['url'];
|
||||||
|
}
|
||||||
|
$file += array(
|
||||||
|
array(
|
||||||
|
'text' => lang('About %1',$GLOBALS['egw_info']['apps'][$GLOBALS['egw_info']['flags']['currentapp']]['title']),
|
||||||
|
'no_lang' => True,
|
||||||
|
'link' => $apps['about']['url']
|
||||||
|
),
|
||||||
|
$GLOBALS['egw_info']['user']['userid'] != 'anonymous' ? 'Logout' : 'Login' =>$apps['logout']['url']
|
||||||
|
);
|
||||||
|
$this->sidebox('',$menu_title,$file);
|
||||||
}
|
}
|
||||||
$file += array(
|
|
||||||
array(
|
|
||||||
'text' => lang('About %1',$GLOBALS['egw_info']['apps'][$GLOBALS['egw_info']['flags']['currentapp']]['title']),
|
|
||||||
'no_lang' => True,
|
|
||||||
'link' => $apps['about']['url']
|
|
||||||
),
|
|
||||||
$GLOBALS['egw_info']['user']['userid'] != 'anonymous' ? 'Logout' : 'Login' =>$apps['logout']['url']
|
|
||||||
);
|
|
||||||
$this->sidebox('',$menu_title,$file);
|
|
||||||
$GLOBALS['egw']->hooks->single('sidebox_menu',$GLOBALS['egw_info']['flags']['currentapp']);
|
$GLOBALS['egw']->hooks->single('sidebox_menu',$GLOBALS['egw_info']['flags']['currentapp']);
|
||||||
|
|
||||||
if($GLOBALS['egw_info']['user']['preferences']['common']['auto_hide_sidebox'])
|
if($this->sidebox_content)
|
||||||
{
|
{
|
||||||
$this->tpl->set_var('lang_show_menu',lang('show menu'));
|
if($GLOBALS['egw_info']['user']['preferences']['common']['auto_hide_sidebox'])
|
||||||
$content .= $this->tpl->parse('out','sidebox_hide_header');
|
{
|
||||||
|
$this->tpl->set_var('lang_show_menu',lang('show menu'));
|
||||||
|
$content .= $this->tpl->parse('out','sidebox_hide_header');
|
||||||
|
|
||||||
$content .= $this->sidebox_content; // content from calls to $this->sidebox
|
$content .= $this->sidebox_content; // content from calls to $this->sidebox
|
||||||
|
|
||||||
$content .= $this->tpl->parse('out','sidebox_hide_footer');
|
|
||||||
|
|
||||||
$var['sideboxcolstart']='';
|
$content .= $this->tpl->parse('out','sidebox_hide_footer');
|
||||||
|
|
||||||
$this->tpl->set_var($var);
|
$var['sideboxcolstart']='';
|
||||||
$content .= $this->tpl->parse('out','appbox');
|
|
||||||
$var['remove_padding'] = 'style="padding-left:0px;"';
|
$this->tpl->set_var($var);
|
||||||
$var['sideboxcolend'] = '';
|
$content .= $this->tpl->parse('out','appbox');
|
||||||
|
$var['remove_padding'] = 'style="padding-left:0px;"';
|
||||||
|
$var['sideboxcolend'] = '';
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$GLOBALS['phpgw']->preferences->read_repository();
|
||||||
|
|
||||||
|
$prefs = array();
|
||||||
|
|
||||||
|
if ($GLOBALS['egw_info']['user']['preferences']['common'])
|
||||||
|
{
|
||||||
|
$sideboxwidth = $GLOBALS['egw_info']['user']['preferences']['common']['idotssideboxwidth'];
|
||||||
|
}
|
||||||
|
if(intval($sideboxwidth)<1)
|
||||||
|
{
|
||||||
|
$sideboxwidth = 203;
|
||||||
|
}
|
||||||
|
|
||||||
|
$var['menu_link'] = '';
|
||||||
|
|
||||||
|
$var['sideboxcolstart'] = '<td id="tdSidebox" valign="top"><div id="thesideboxcolumn" style="width:'.$sideboxwidth.'px">';
|
||||||
|
$var['sideboxcolstart'] .= '<div style="width:13px;height:13px;right:1px;top:1px;position:absolute;z-index:9999;" id="sideresize">
|
||||||
|
<img src="'.$GLOBALS['egw_info']['server']['webserver_url'] . '/phpgwapi/templates/default/images'.'/resize.png" alt="resize"/>
|
||||||
|
</div>';
|
||||||
|
$var['remove_padding'] = '';
|
||||||
|
$this->tpl->set_var($var);
|
||||||
|
$content .= $this->tpl->parse('out','appbox');
|
||||||
|
|
||||||
|
$content .= $this->sidebox_content;
|
||||||
|
|
||||||
|
$var['sideboxcolend'] = '</div></td>';
|
||||||
|
|
||||||
|
// Add DHTML for resizing sidebox menu
|
||||||
|
// include wz_dragdrop once
|
||||||
|
if(!$GLOBALS['egw_info']['flags']['wz_dragdrop_included'])
|
||||||
|
{
|
||||||
|
$GLOBALS['egw_info']['flags']['need_footer'] .= "<!-- BEGIN JavaScript for wz_dragdrop.js -->\n";
|
||||||
|
$GLOBALS['egw_info']['flags']['need_footer'] .= '<script language="JavaScript" type="text/javascript" src="'.$GLOBALS['egw_info']['server']['webserver_url'].'/phpgwapi/js/wz_dragdrop/wz_dragdrop.js"></script>'."\n";
|
||||||
|
$GLOBALS['egw_info']['flags']['wz_dragdrop_included'] = True;
|
||||||
|
}
|
||||||
|
|
||||||
|
$this->tplsav2->assign('sideboxwidth', $sideboxwidth);
|
||||||
|
|
||||||
|
$GLOBALS['egw_info']['flags']['need_footer'] .= $this->tplsav2->fetch('sidebox_dhtml.tpl.php');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$GLOBALS['phpgw']->preferences->read_repository();
|
$var['sideboxcolend']='';
|
||||||
|
|
||||||
$prefs = array();
|
|
||||||
|
|
||||||
if ($GLOBALS['egw_info']['user']['preferences']['common'])
|
|
||||||
{
|
|
||||||
$sideboxwidth = $GLOBALS['egw_info']['user']['preferences']['common']['idotssideboxwidth'];
|
|
||||||
}
|
|
||||||
if(intval($sideboxwidth)<1)
|
|
||||||
{
|
|
||||||
$sideboxwidth = 203;
|
|
||||||
}
|
|
||||||
|
|
||||||
$var['menu_link'] = '';
|
|
||||||
|
|
||||||
$var['sideboxcolstart'] = '<td id="tdSidebox" valign="top"><div id="thesideboxcolumn" style="width:'.$sideboxwidth.'px">';
|
|
||||||
$var['sideboxcolstart'] .= '<div style="width:13px;height:13px;right:1px;top:1px;position:absolute;z-index:9999;" id="sideresize">
|
|
||||||
<img src="'.$GLOBALS['egw_info']['server']['webserver_url'] . '/phpgwapi/templates/default/images'.'/resize.png" alt="resize"/>
|
|
||||||
</div>';
|
|
||||||
$var['remove_padding'] = '';
|
|
||||||
$this->tpl->set_var($var);
|
|
||||||
$content .= $this->tpl->parse('out','appbox');
|
|
||||||
|
|
||||||
$content .= $this->sidebox_content;
|
|
||||||
|
|
||||||
$var['sideboxcolend'] = '</div></td>';
|
|
||||||
|
|
||||||
// Add DHTML for resizing sidebox menu
|
|
||||||
// include wz_dragdrop once
|
|
||||||
if(!$GLOBALS['egw_info']['flags']['wz_dragdrop_included'])
|
|
||||||
{
|
|
||||||
$GLOBALS['egw_info']['flags']['need_footer'] .= "<!-- BEGIN JavaScript for wz_dragdrop.js -->\n";
|
|
||||||
$GLOBALS['egw_info']['flags']['need_footer'] .= '<script language="JavaScript" type="text/javascript" src="'.$GLOBALS['egw_info']['server']['webserver_url'].'/phpgwapi/js/wz_dragdrop/wz_dragdrop.js"></script>'."\n";
|
|
||||||
$GLOBALS['egw_info']['flags']['wz_dragdrop_included'] = True;
|
|
||||||
}
|
|
||||||
|
|
||||||
$this->tplsav2->assign('sideboxwidth', $sideboxwidth);
|
|
||||||
|
|
||||||
$GLOBALS['egw_info']['flags']['need_footer'] .= $this->tplsav2->fetch('sidebox_dhtml.tpl.php');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->tpl->set_var($var);
|
$this->tpl->set_var($var);
|
||||||
@ -428,7 +439,13 @@ class idots_framework extends egw_framework
|
|||||||
*/
|
*/
|
||||||
function _get_navbar($apps)
|
function _get_navbar($apps)
|
||||||
{
|
{
|
||||||
$var = parent::_get_navbar($apps);
|
$var = parent::_get_navbar($apps);
|
||||||
|
|
||||||
|
if($GLOBALS['egw_info']['user']['preferences']['common']['show_top_menu'] == 'yes')
|
||||||
|
{
|
||||||
|
$var['quick_add'] = '';
|
||||||
|
$var['user_info']='';
|
||||||
|
}
|
||||||
|
|
||||||
if($GLOBALS['egw_info']['user']['preferences']['common']['click_or_onmouseover'] == 'onmouseover')
|
if($GLOBALS['egw_info']['user']['preferences']['common']['click_or_onmouseover'] == 'onmouseover')
|
||||||
{
|
{
|
||||||
@ -535,6 +552,66 @@ class idots_framework extends egw_framework
|
|||||||
return $var;
|
return $var;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Add menu items to the topmenu template class to be displayed
|
||||||
|
*
|
||||||
|
* @param string $app application name
|
||||||
|
* @param mixed $alt_label string with alternative menu item label default value = null
|
||||||
|
* @access protected
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
function _add_topmenu_item($app,$alt_label=null)
|
||||||
|
{
|
||||||
|
$_item['url'] = $this->apps[$app]['url'];
|
||||||
|
$_item['label'] = ($alt_label?$alt_label:$this->apps[$app]['title']);
|
||||||
|
$this->tplsav2->menuitems[$app] = $_item;
|
||||||
|
$this->tplsav2->icon_or_star = $GLOBALS['egw_info']['server']['webserver_url'] . '/phpgwapi/templates/'.$this->template.'/images'.'/orange-ball.png';
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Add info items to the topmenu template class to be displayed
|
||||||
|
*
|
||||||
|
* @param string $content html of item
|
||||||
|
* @access protected
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
function _add_topmenu_info_item($content)
|
||||||
|
{
|
||||||
|
$this->tplsav2->menuinfoitems[] = $content;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Display the string with html of the topmenu if its enabled
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
function topmenu()
|
||||||
|
{
|
||||||
|
$this->tplsav2->menuitems = array();
|
||||||
|
$this->tplsav2->menuinfoitems = array();
|
||||||
|
|
||||||
|
$this->apps = $this->_get_navbar_apps();
|
||||||
|
|
||||||
|
$this->_add_topmenu_item('home');
|
||||||
|
|
||||||
|
/*if($GLOBALS['egw_info']['user']['apps']['manual'])
|
||||||
|
{
|
||||||
|
$this->_add_topmenu_item('manual');
|
||||||
|
}
|
||||||
|
*/
|
||||||
|
if($GLOBALS['egw_info']['user']['apps']['preferences'])
|
||||||
|
{
|
||||||
|
$this->_add_topmenu_item('preferences');
|
||||||
|
}
|
||||||
|
|
||||||
|
$this->_add_topmenu_item('about',lang('About %1',$GLOBALS['egw_info']['apps'][$GLOBALS['egw_info']['flags']['currentapp']]['title']));
|
||||||
|
$this->_add_topmenu_item('logout');
|
||||||
|
|
||||||
|
$this->_add_topmenu_info_item($this->_user_time_info());
|
||||||
|
$this->_add_topmenu_info_item($this->_get_quick_add());
|
||||||
|
|
||||||
|
$this->tplsav2->display('topmenu.tpl.php');
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the html from the closing div of the main application area to the closing html-tag
|
* Returns the html from the closing div of the main application area to the closing html-tag
|
||||||
@ -595,7 +672,6 @@ class idots_framework extends egw_framework
|
|||||||
*/
|
*/
|
||||||
function sidebox($appname,$menu_title,$file)
|
function sidebox($appname,$menu_title,$file)
|
||||||
{
|
{
|
||||||
|
|
||||||
if(!$appname || ($appname==$GLOBALS['egw_info']['flags']['currentapp'] && $file))
|
if(!$appname || ($appname==$GLOBALS['egw_info']['flags']['currentapp'] && $file))
|
||||||
{
|
{
|
||||||
$this->tpl->set_var('lang_title',$menu_title);
|
$this->tpl->set_var('lang_title',$menu_title);
|
||||||
|
@ -255,7 +255,32 @@ body {
|
|||||||
position:absolute;
|
position:absolute;
|
||||||
left:30px;
|
left:30px;
|
||||||
top:15px;
|
top:15px;
|
||||||
z-index:51;
|
z-index:999;
|
||||||
|
}
|
||||||
|
|
||||||
|
#topmenu
|
||||||
|
{
|
||||||
|
background-color: #0081c1;
|
||||||
|
background-image: url(../images/bgtopmenu2.png);
|
||||||
|
color:#006699;
|
||||||
|
border-top: solid 2px #7e7e7e;
|
||||||
|
border-bottom: solid #5793ff 1px;
|
||||||
|
height:20px;
|
||||||
|
padding-top:4px ;
|
||||||
|
line-height:16px;
|
||||||
|
}
|
||||||
|
#topmenu a
|
||||||
|
{
|
||||||
|
color:#006699;
|
||||||
|
}
|
||||||
|
|
||||||
|
#topmenu_items
|
||||||
|
{
|
||||||
|
float:left;
|
||||||
|
}
|
||||||
|
#topmenu_info
|
||||||
|
{
|
||||||
|
float:right;
|
||||||
}
|
}
|
||||||
|
|
||||||
#divUpperTabs
|
#divUpperTabs
|
||||||
|
@ -1,90 +1,108 @@
|
|||||||
<?php
|
<?php
|
||||||
/**************************************************************************\
|
/**************************************************************************\
|
||||||
* eGroupWare - Preferences *
|
* eGroupWare - Preferences *
|
||||||
* http://www.eGroupWare.org *
|
* http://www.eGroupWare.org *
|
||||||
* -------------------------------------------- *
|
* -------------------------------------------- *
|
||||||
* This program is free software; you can redistribute it and/or modify it *
|
* This program is free software; you can redistribute it and/or modify it *
|
||||||
* under the terms of the GNU General Public License as published by the *
|
* under the terms of the GNU General Public License as published by the *
|
||||||
* Free Software Foundation; either version 2 of the License, or (at your *
|
* Free Software Foundation; either version 2 of the License, or (at your *
|
||||||
* option) any later version. *
|
* option) any later version. *
|
||||||
\**************************************************************************/
|
\**************************************************************************/
|
||||||
|
|
||||||
/* $Id$ */
|
/* $Id$ */
|
||||||
|
|
||||||
$start_and_logout_icons = array(
|
$yes_no = array(
|
||||||
'yes' => lang('yes'),
|
'yes' => lang('yes'),
|
||||||
'no' => lang('no')
|
'no' => lang('no')
|
||||||
);
|
);
|
||||||
$click_or_onmouseover = array(
|
$click_or_onmouseover = array(
|
||||||
'click' => lang('Click'),
|
'click' => lang('Click'),
|
||||||
'onmouseover' => lang('On Mouse Over')
|
'onmouseover' => lang('On Mouse Over')
|
||||||
);
|
);
|
||||||
|
|
||||||
$GLOBALS['settings'] = array(
|
$GLOBALS['settings'] = array(
|
||||||
'prefssection' => array(
|
'prefssection' => array(
|
||||||
'type' => 'section',
|
'type' => 'section',
|
||||||
'title' => 'Preferences for the idots template set',
|
'title' => 'Preferences for the idots template set',
|
||||||
'xmlrpc' => False,
|
'xmlrpc' => False,
|
||||||
'admin' => False
|
'admin' => False
|
||||||
),
|
),
|
||||||
'start_and_logout_icons' => array(
|
'show_top_menu' => array(
|
||||||
'type' => 'select',
|
'type' => 'select',
|
||||||
'label' => 'Show home and logout button in main application bar?',
|
'label' => 'Show egroupware top menu?',
|
||||||
'name' => 'start_and_logout_icons',
|
'name' => 'show_top_menu',
|
||||||
'values' => $start_and_logout_icons,
|
'values' => $yes_no,
|
||||||
'help' => 'When you say yes the home and logout buttons are presented as applications in the main top applcation bar.',
|
'help' => 'When you say yes a top menu is rendered.',
|
||||||
'xmlrpc' => False,
|
'xmlrpc' => False,
|
||||||
'admin' => False
|
'admin' => False
|
||||||
),
|
),
|
||||||
'max_icons' => array(
|
'show_general_sideboxmenu' => array(
|
||||||
'type' => 'input',
|
'type' => 'select',
|
||||||
'label' => 'Max number of icons in navbar',
|
'label' => 'Show general sidebox menu?',
|
||||||
'name' => 'max_icons',
|
'name' => 'show_general_sideboxmenu',
|
||||||
'help' => 'How many icons should be shown in the navbar (top of the page). Additional icons go into a kind of pulldown menu, callable by the icon on the far right side of the navbar.',
|
'values' => $yes_no,
|
||||||
'default' => '',
|
'help' => 'When you say yes the first sidebox is contains general egroupware items.',
|
||||||
'size' => 3,
|
'xmlrpc' => False,
|
||||||
'xmlrpc' => False,
|
'admin' => False
|
||||||
'admin' => False
|
),
|
||||||
),
|
'start_and_logout_icons' => array(
|
||||||
'auto_hide_sidebox' => array(
|
'type' => 'select',
|
||||||
'type' => 'check',
|
'label' => 'Show home and logout button in main application bar?',
|
||||||
'label' => 'Autohide Sidebox menu\'s',
|
'name' => 'start_and_logout_icons',
|
||||||
'name' => 'auto_hide_sidebox',
|
'values' => $yes_no,
|
||||||
'help' => 'Automatically hide the Sidebox menu\'s?',
|
'help' => 'When you say yes the home and logout buttons are presented as applications in the main top applcation bar.',
|
||||||
'xmlrpc' => False,
|
'xmlrpc' => False,
|
||||||
'admin' => False
|
'admin' => False
|
||||||
),
|
),
|
||||||
'click_or_onmouseover' => array(
|
'max_icons' => array(
|
||||||
'type' => 'select',
|
'type' => 'input',
|
||||||
'label' => 'Click or Mouse Over to show menus',
|
'label' => 'Max number of icons in navbar',
|
||||||
'name' => 'click_or_onmouseover',
|
'name' => 'max_icons',
|
||||||
'values' => $click_or_onmouseover,
|
'help' => 'How many icons should be shown in the navbar (top of the page). Additional icons go into a kind of pulldown menu, callable by the icon on the far right side of the navbar.',
|
||||||
'help' => 'Click or Mouse Over to show menus?',
|
'default' => '',
|
||||||
'xmlrpc' => False,
|
'size' => 3,
|
||||||
'admin' => False
|
'xmlrpc' => False,
|
||||||
),
|
'admin' => False
|
||||||
'disable_slider_effects' => array(
|
),
|
||||||
'type' => 'check',
|
'auto_hide_sidebox' => array(
|
||||||
'label' => 'Disable slider effects',
|
'type' => 'check',
|
||||||
'name' => 'disable_slider_effects',
|
'label' => 'Autohide Sidebox menu\'s',
|
||||||
'help' => 'Disable the animated slider effects when showing or hiding menus in the page? Opera and Konqueror users will probably must want this.',
|
'name' => 'auto_hide_sidebox',
|
||||||
'xmlrpc' => False,
|
'help' => 'Automatically hide the Sidebox menu\'s?',
|
||||||
'admin' => False
|
'xmlrpc' => False,
|
||||||
),
|
'admin' => False
|
||||||
'disable_pngfix' => array(
|
),
|
||||||
'type' => 'check',
|
'click_or_onmouseover' => array(
|
||||||
'label' => 'Disable Internet Explorer png-image-bugfix',
|
'type' => 'select',
|
||||||
'name' => 'disable_pngfix',
|
'label' => 'Click or Mouse Over to show menus',
|
||||||
'help' => 'Disable the execution a bugfixscript for Internet Explorer 5.5 and higher to show transparency in PNG-images?',
|
'name' => 'click_or_onmouseover',
|
||||||
'xmlrpc' => False,
|
'values' => $click_or_onmouseover,
|
||||||
'admin' => False
|
'help' => 'Click or Mouse Over to show menus?',
|
||||||
),
|
'xmlrpc' => False,
|
||||||
'show_generation_time' => array(
|
'admin' => False
|
||||||
'type' => 'check',
|
),
|
||||||
'label' => 'Show page generation time',
|
'disable_slider_effects' => array(
|
||||||
'name' => 'show_generation_time',
|
'type' => 'check',
|
||||||
'help' => 'Show page generation time on the bottom of the page?',
|
'label' => 'Disable slider effects',
|
||||||
'xmlrpc' => False,
|
'name' => 'disable_slider_effects',
|
||||||
'admin' => False
|
'help' => 'Disable the animated slider effects when showing or hiding menus in the page? Opera and Konqueror users will probably must want this.',
|
||||||
)
|
'xmlrpc' => False,
|
||||||
);
|
'admin' => False
|
||||||
|
),
|
||||||
|
'disable_pngfix' => array(
|
||||||
|
'type' => 'check',
|
||||||
|
'label' => 'Disable Internet Explorer png-image-bugfix',
|
||||||
|
'name' => 'disable_pngfix',
|
||||||
|
'help' => 'Disable the execution a bugfixscript for Internet Explorer 5.5 and higher to show transparency in PNG-images?',
|
||||||
|
'xmlrpc' => False,
|
||||||
|
'admin' => False
|
||||||
|
),
|
||||||
|
'show_generation_time' => array(
|
||||||
|
'type' => 'check',
|
||||||
|
'label' => 'Show page generation time',
|
||||||
|
'name' => 'show_generation_time',
|
||||||
|
'help' => 'Show page generation time on the bottom of the page?',
|
||||||
|
'xmlrpc' => False,
|
||||||
|
'admin' => False
|
||||||
|
)
|
||||||
|
);
|
||||||
|
BIN
phpgwapi/templates/idots/images/bgtopmenu.png
Normal file
BIN
phpgwapi/templates/idots/images/bgtopmenu.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 151 B |
BIN
phpgwapi/templates/idots/images/bgtopmenu2.png
Normal file
BIN
phpgwapi/templates/idots/images/bgtopmenu2.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 145 B |
14
phpgwapi/templates/idots/topmenu.tpl.php
Normal file
14
phpgwapi/templates/idots/topmenu.tpl.php
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
<div id="topmenu">
|
||||||
|
<div id="topmenu_items">
|
||||||
|
<?php foreach($this->menuitems as $mitems):?>
|
||||||
|
<div style="padding:0px 10px 0px 10px;position:relative;float:left;"><img src="<?=$this->icon_or_star?>" /> <a href="<?=$mitems['url']?>"><?=$mitems['label']?></a></div>
|
||||||
|
<?php endforeach?>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id="topmenu_info">
|
||||||
|
<?php foreach($this->menuinfoitems as $mitems):?>
|
||||||
|
<div style="padding:0px 10px 0px 10px;position:relative;float:left;"><?=$mitems?></div>
|
||||||
|
<?php endforeach?>
|
||||||
|
</div>
|
||||||
|
<div style="clear:both;"></div>
|
||||||
|
</div>
|
Loading…
Reference in New Issue
Block a user