-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathmenu.inc.php
46 lines (45 loc) · 1.98 KB
/
menu.inc.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<?php require_once('lang.php'); ?>
<div id='topmenu' style='text-align: center;'>
<?php if(isset($MAINCTRLS) == false || (isset($MAINCTRLS) == true && $MAINCTRLS == true)) { ?>
<div style='float: left;'>
<a href='index.php' class='slubbutton secondary' id='mainmanubtn' title='<?php translate('Back to Start Page'); ?>'><?php translate('Start'); ?></a>
<a href='maps.php' class='slubbutton secondary' id='mapsbtn'><?php translate('Maps'); ?></a>
</div>
<?php } ?>
<?php if(!empty($ZOOM)) { ?>
<script>
function zoom(zoom) { document.body.style.zoom = zoom; }
</script>
<style>
/* style definitions for maps */
#topmenu {
opacity: 0.95;
background-color: rgba(255,255,255,0.75);
backdrop-filter: blur(8px) brightness(90%) contrast(120%); /* bleeding edge feature of chrome and safari :> */
border-bottom: 1px solid lightgray;
}
div#zoomlinks > a {
min-width: 50px;
}
</style>
<div style='text-align: center; display: inline-block;' id='zoomlinks'>
<a href='#' class='slubbutton secondary notypo' onclick='zoom("50%");'>50%</a>
<a href='#' class='slubbutton secondary notypo' onclick='zoom("80%");'>80%</a>
<a href='#' class='slubbutton secondary notypo' onclick='zoom("100%");'>100%</a>
<a href='#' class='slubbutton secondary notypo' onclick='zoom("120%");'>120%</a>
</div>
<?php } ?>
<div style='float: right;'>
<?php
$htmlUsername = '';
if(isset($_SESSION['username']))
$htmlUsername = htmlspecialchars($_SESSION['username'], ENT_QUOTES, 'UTF-8');
?>
<?php if(ENABLE_PASSWORD_CHANGE) { ?>
<a href='password.php' class='slubbutton secondary' id='pwchangebtn' title='Passwort auf allen Switchen ändern'><?php translate('Change Password'); ?></a>
<?php } ?>
<?php if($htmlUsername != '') { ?>
<a href='login.php?logout=1' class='slubbutton destructive' id='logoutbtn'><?php echo str_replace('%USER%', $htmlUsername, translate('Log Out %USER%',false)); ?></a>
<?php } ?>
</div>
</div>