forked from extern/egroupware
- make topmenu default pref setting now
- fix bugs and wrong implementation of topmenu - introduce new hook: topmenu_info for adding content to the topmenu see messenges as example
This commit is contained in:
parent
4e26206909
commit
bfe1e5b04a
File diff suppressed because it is too large
Load Diff
@ -11,6 +11,10 @@
|
||||
|
||||
/* $Id$ */
|
||||
|
||||
$top_menu = array(
|
||||
'topmenu' => lang('Show as Topmenu'),
|
||||
'sidebox' => lang('Show in sidebox')
|
||||
);
|
||||
$yes_no = array(
|
||||
'yes' => lang('yes'),
|
||||
'no' => lang('no')
|
||||
@ -27,21 +31,12 @@
|
||||
'xmlrpc' => False,
|
||||
'admin' => False
|
||||
),
|
||||
'show_top_menu' => array(
|
||||
'show_general_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.',
|
||||
'label' => 'How to show the general eGroupWare menu ?',
|
||||
'name' => 'show_general_menu',
|
||||
'values' => $top_menu,
|
||||
'help' => 'Where and how will the egroupware links like preferences, about and logout be displayed.',
|
||||
'xmlrpc' => False,
|
||||
'admin' => False
|
||||
),
|
||||
|
Binary file not shown.
Before Width: | Height: | Size: 145 B After Width: | Height: | Size: 147 B |
@ -1,3 +1,43 @@
|
||||
<script language="JavaScript" type="text/javascript">
|
||||
function opacity(id, opacStart, opacEnd, millisec) {
|
||||
//speed for each frame
|
||||
var speed = Math.round(millisec / 100);
|
||||
var timer = 0;
|
||||
|
||||
//determine the direction for the blending, if start and end are the same nothing happens
|
||||
if(opacStart > opacEnd) {
|
||||
for(i = opacStart; i >= opacEnd; i--) {
|
||||
setTimeout("changeOpac(" + i + ",'" + id + "')",(timer * speed));
|
||||
timer++;
|
||||
}
|
||||
}
|
||||
else if(opacStart < opacEnd) {
|
||||
for(i = opacStart; i <= opacEnd; i++)
|
||||
{
|
||||
setTimeout("changeOpac(" + i + ",'" + id + "')",(timer * speed));
|
||||
timer++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//change the opacity for different browsers
|
||||
function changeOpac(opacity, id) {
|
||||
var object = document.getElementById(id).style;
|
||||
object.opacity = (opacity / 100);
|
||||
object.MozOpacity = (opacity / 100);
|
||||
object.KhtmlOpacity = (opacity / 100);
|
||||
object.filter = "alpha(opacity=" + opacity + ")";
|
||||
}
|
||||
function shiftOpacity(id, millisec) {
|
||||
//if an element is invisible, make it visible, else make it ivisible
|
||||
if(document.getElementById(id).style.opacity == 0) {
|
||||
opacity(id, 0, 100, millisec);
|
||||
} else {
|
||||
opacity(id, 100, 0, millisec);
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<div id="topmenu">
|
||||
<div id="topmenu_items">
|
||||
<?php foreach($this->menuitems as $mitems):?>
|
||||
@ -6,9 +46,24 @@
|
||||
</div>
|
||||
|
||||
<div id="topmenu_info">
|
||||
<?php foreach($this->info_icons as $iicon):?>
|
||||
<div style="padding:0px 10px 0px 0px;position:relative;float:left;"><a href="<?=$iicon['link']?>"><img id="<?=$iicon['id']?>" src="<?=$iicon['image']?>" <?=$iicon['tooltip']?>/></a></div>
|
||||
<?php endforeach?>
|
||||
|
||||
<?php foreach($this->menuinfoitems as $mitems):?>
|
||||
<div style="padding:0px 10px 0px 10px;position:relative;float:left;"><?=$mitems?></div>
|
||||
<div style="padding:0px 10px 0px 0px;position:relative;float:left;"><?=$mitems?></div>
|
||||
<?php endforeach?>
|
||||
</div>
|
||||
<div style="clear:both;"></div>
|
||||
</div>
|
||||
|
||||
<script language="JavaScript" type="text/javascript">
|
||||
<?php foreach($this->info_icons as $iicon):?>
|
||||
<?php if($iicon['blink']):?>
|
||||
setInterval("shiftOpacity('<?=$iicon['id']?>', 500)",1500);
|
||||
<?php endif?>
|
||||
<?php endforeach?>
|
||||
|
||||
//shiftOpacity('blinkimg', 500);
|
||||
|
||||
</script>
|
||||
|
Loading…
Reference in New Issue
Block a user