mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-11 00:18:25 +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'])
|
||||
{
|
||||
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
|
||||
|
@ -81,13 +81,17 @@ class egw_framework
|
||||
|
||||
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 $this->footer();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* 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!!!');
|
||||
}
|
||||
|
||||
/**
|
||||
* 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)
|
||||
*
|
||||
@ -301,10 +315,8 @@ class egw_framework
|
||||
// quick add selectbox
|
||||
$var['quick_add'] = $this->_get_quick_add();
|
||||
|
||||
$now = time();
|
||||
$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']);
|
||||
$var['user_info'] = $this->_user_time_info();
|
||||
|
||||
|
||||
if($GLOBALS['egw_info']['user']['lastpasswd_change'] == 0)
|
||||
{
|
||||
@ -340,7 +352,23 @@ class egw_framework
|
||||
|
||||
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
|
||||
*
|
||||
@ -687,4 +715,4 @@ if (!function_exists('display_sidebox'))
|
||||
{
|
||||
$GLOBALS['egw']->framework->sidebox($appname,$menu_title,$file);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,10 +1,12 @@
|
||||
<!-- 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 -->
|
||||
<script language="javascript">
|
||||
new ypSlideOutMenu("menu1", "down", 10, 114, 160, 200,'right');
|
||||
</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="menu1Content" style="position: relative; left: 0; text-align: left;">
|
||||
<div id="extraIcons">
|
||||
|
@ -55,6 +55,9 @@ class idots_framework extends egw_framework
|
||||
|
||||
$GLOBALS['egw_info']['flags']['include_xajax'] = True;
|
||||
$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()
|
||||
{
|
||||
$this->tplsav2 = CreateObject('phpgwapi.tplsavant2');
|
||||
$this->tplsav2->set_tpl_path(EGW_SERVER_ROOT.SEP.'phpgwapi'.SEP.'templates'.SEP.'idots');
|
||||
|
||||
$this->navbar_done = true;
|
||||
|
||||
// the navbar
|
||||
@ -128,81 +128,92 @@ class idots_framework extends egw_framework
|
||||
$content = $this->tpl->fp('out','navbar_header');
|
||||
|
||||
// general (app-unspecific) sidebox menu
|
||||
$menu_title = lang('General Menu');
|
||||
|
||||
$file['Home'] = $apps['home']['url'];
|
||||
if($GLOBALS['egw_info']['user']['apps']['preferences'])
|
||||
if($GLOBALS['egw_info']['user']['preferences']['common']['show_general_sideboxmenu']!='no')
|
||||
{
|
||||
$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']);
|
||||
|
||||
if($GLOBALS['egw_info']['user']['preferences']['common']['auto_hide_sidebox'])
|
||||
|
||||
if($this->sidebox_content)
|
||||
{
|
||||
$this->tpl->set_var('lang_show_menu',lang('show menu'));
|
||||
$content .= $this->tpl->parse('out','sidebox_hide_header');
|
||||
if($GLOBALS['egw_info']['user']['preferences']['common']['auto_hide_sidebox'])
|
||||
{
|
||||
$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->tpl->parse('out','sidebox_hide_footer');
|
||||
$content .= $this->sidebox_content; // content from calls to $this->sidebox
|
||||
|
||||
$var['sideboxcolstart']='';
|
||||
$content .= $this->tpl->parse('out','sidebox_hide_footer');
|
||||
|
||||
$this->tpl->set_var($var);
|
||||
$content .= $this->tpl->parse('out','appbox');
|
||||
$var['remove_padding'] = 'style="padding-left:0px;"';
|
||||
$var['sideboxcolend'] = '';
|
||||
$var['sideboxcolstart']='';
|
||||
|
||||
$this->tpl->set_var($var);
|
||||
$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
|
||||
{
|
||||
$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');
|
||||
$var['sideboxcolend']='';
|
||||
}
|
||||
|
||||
$this->tpl->set_var($var);
|
||||
@ -428,7 +439,13 @@ class idots_framework extends egw_framework
|
||||
*/
|
||||
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')
|
||||
{
|
||||
@ -535,6 +552,66 @@ class idots_framework extends egw_framework
|
||||
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
|
||||
@ -595,7 +672,6 @@ class idots_framework extends egw_framework
|
||||
*/
|
||||
function sidebox($appname,$menu_title,$file)
|
||||
{
|
||||
|
||||
if(!$appname || ($appname==$GLOBALS['egw_info']['flags']['currentapp'] && $file))
|
||||
{
|
||||
$this->tpl->set_var('lang_title',$menu_title);
|
||||
|
@ -255,7 +255,32 @@ body {
|
||||
position:absolute;
|
||||
left:30px;
|
||||
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
|
||||
|
@ -1,90 +1,108 @@
|
||||
<?php
|
||||
/**************************************************************************\
|
||||
* eGroupWare - Preferences *
|
||||
* http://www.eGroupWare.org *
|
||||
* -------------------------------------------- *
|
||||
* 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 *
|
||||
* Free Software Foundation; either version 2 of the License, or (at your *
|
||||
* option) any later version. *
|
||||
\**************************************************************************/
|
||||
/**************************************************************************\
|
||||
* eGroupWare - Preferences *
|
||||
* http://www.eGroupWare.org *
|
||||
* -------------------------------------------- *
|
||||
* 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 *
|
||||
* Free Software Foundation; either version 2 of the License, or (at your *
|
||||
* option) any later version. *
|
||||
\**************************************************************************/
|
||||
|
||||
/* $Id$ */
|
||||
/* $Id$ */
|
||||
|
||||
$start_and_logout_icons = array(
|
||||
'yes' => lang('yes'),
|
||||
'no' => lang('no')
|
||||
);
|
||||
$click_or_onmouseover = array(
|
||||
'click' => lang('Click'),
|
||||
'onmouseover' => lang('On Mouse Over')
|
||||
);
|
||||
$yes_no = array(
|
||||
'yes' => lang('yes'),
|
||||
'no' => lang('no')
|
||||
);
|
||||
$click_or_onmouseover = array(
|
||||
'click' => lang('Click'),
|
||||
'onmouseover' => lang('On Mouse Over')
|
||||
);
|
||||
|
||||
$GLOBALS['settings'] = array(
|
||||
'prefssection' => array(
|
||||
'type' => 'section',
|
||||
'title' => 'Preferences for the idots template set',
|
||||
'xmlrpc' => False,
|
||||
'admin' => False
|
||||
),
|
||||
'start_and_logout_icons' => array(
|
||||
'type' => 'select',
|
||||
'label' => 'Show home and logout button in main application bar?',
|
||||
'name' => 'start_and_logout_icons',
|
||||
'values' => $start_and_logout_icons,
|
||||
'help' => 'When you say yes the home and logout buttons are presented as applications in the main top applcation bar.',
|
||||
'xmlrpc' => False,
|
||||
'admin' => False
|
||||
),
|
||||
'max_icons' => array(
|
||||
'type' => 'input',
|
||||
'label' => 'Max number of icons in navbar',
|
||||
'name' => 'max_icons',
|
||||
'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.',
|
||||
'default' => '',
|
||||
'size' => 3,
|
||||
'xmlrpc' => False,
|
||||
'admin' => False
|
||||
),
|
||||
'auto_hide_sidebox' => array(
|
||||
'type' => 'check',
|
||||
'label' => 'Autohide Sidebox menu\'s',
|
||||
'name' => 'auto_hide_sidebox',
|
||||
'help' => 'Automatically hide the Sidebox menu\'s?',
|
||||
'xmlrpc' => False,
|
||||
'admin' => False
|
||||
),
|
||||
'click_or_onmouseover' => array(
|
||||
'type' => 'select',
|
||||
'label' => 'Click or Mouse Over to show menus',
|
||||
'name' => 'click_or_onmouseover',
|
||||
'values' => $click_or_onmouseover,
|
||||
'help' => 'Click or Mouse Over to show menus?',
|
||||
'xmlrpc' => False,
|
||||
'admin' => False
|
||||
),
|
||||
'disable_slider_effects' => array(
|
||||
'type' => 'check',
|
||||
'label' => 'Disable slider effects',
|
||||
'name' => 'disable_slider_effects',
|
||||
'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
|
||||
)
|
||||
);
|
||||
$GLOBALS['settings'] = array(
|
||||
'prefssection' => array(
|
||||
'type' => 'section',
|
||||
'title' => 'Preferences for the idots template set',
|
||||
'xmlrpc' => False,
|
||||
'admin' => False
|
||||
),
|
||||
'show_top_menu' => array(
|
||||
'type' => 'select',
|
||||
'label' => 'Show egroupware top menu?',
|
||||
'name' => 'show_top_menu',
|
||||
'values' => $yes_no,
|
||||
'help' => 'When you say yes a top menu is rendered.',
|
||||
'xmlrpc' => False,
|
||||
'admin' => False
|
||||
),
|
||||
'show_general_sideboxmenu' => array(
|
||||
'type' => 'select',
|
||||
'label' => 'Show general sidebox menu?',
|
||||
'name' => 'show_general_sideboxmenu',
|
||||
'values' => $yes_no,
|
||||
'help' => 'When you say yes the first sidebox is contains general egroupware items.',
|
||||
'xmlrpc' => False,
|
||||
'admin' => False
|
||||
),
|
||||
'start_and_logout_icons' => array(
|
||||
'type' => 'select',
|
||||
'label' => 'Show home and logout button in main application bar?',
|
||||
'name' => '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.',
|
||||
'xmlrpc' => False,
|
||||
'admin' => False
|
||||
),
|
||||
'max_icons' => array(
|
||||
'type' => 'input',
|
||||
'label' => 'Max number of icons in navbar',
|
||||
'name' => 'max_icons',
|
||||
'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.',
|
||||
'default' => '',
|
||||
'size' => 3,
|
||||
'xmlrpc' => False,
|
||||
'admin' => False
|
||||
),
|
||||
'auto_hide_sidebox' => array(
|
||||
'type' => 'check',
|
||||
'label' => 'Autohide Sidebox menu\'s',
|
||||
'name' => 'auto_hide_sidebox',
|
||||
'help' => 'Automatically hide the Sidebox menu\'s?',
|
||||
'xmlrpc' => False,
|
||||
'admin' => False
|
||||
),
|
||||
'click_or_onmouseover' => array(
|
||||
'type' => 'select',
|
||||
'label' => 'Click or Mouse Over to show menus',
|
||||
'name' => 'click_or_onmouseover',
|
||||
'values' => $click_or_onmouseover,
|
||||
'help' => 'Click or Mouse Over to show menus?',
|
||||
'xmlrpc' => False,
|
||||
'admin' => False
|
||||
),
|
||||
'disable_slider_effects' => array(
|
||||
'type' => 'check',
|
||||
'label' => 'Disable slider effects',
|
||||
'name' => 'disable_slider_effects',
|
||||
'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