-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmenu.php
93 lines (83 loc) · 7.19 KB
/
menu.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
<?php
####################################################################################################
# CREATED FOR HOMEWEATHERSTATION MB SMART TEMPLATE #
# https://weather34.com/homeweatherstation/index.html #
# #
# Release: July 2019 #
# #
# https://www.weather34.com #
####################################################################################################
?>
<div class="weather34admin"><header class="weather34admin__header">
<weather34toptitle><?php echo $stationName;?> Weather Station</weather34toptitle>
<div class="weather34toolbar">
<div class="weather34toolbar__right"><div id="theTime"></div></div>
<a href="#">
<?php if($units!='us'){echo' <a href="./?units=us" class="weather34tipfah"><topbarimperial>°F</topbarimperial></a></div>';}
else if($units!='metric'){echo' <a class="weather34tipcelsius" href="./?units=metric"><topbarmetric>°C</topbarmetric></a></div>';}
else echo' <div class="menucolor"><a href="./?units=metric">Units</a></div>';?>
</a></div></div>
<input type="checkbox" class="openweather34sidebarMenu" id="openweather34sidebarMenu">
<label for="openweather34sidebarMenu" class="weather34sidebarIconToggle">
<div class="weather34spinner weather34cross part-1"></div>
<div class="weather34spinner weather34horizontal"></div>
<div class="weather34spinner weather34cross part-2"></div>
</label>
<div id="weather34sidebarMenu">
<ul class="weather34sidebarMenuInner">
<br /><br /><p>
<li><a href="easyweathersetup.php" target="_blank" title="Easyweather Setup Screen"><?php echo " <weather34menumarkeryellow></weather34menumarkeryellow> ",$lang['Settings']; ?>
<?php if ($password==""){echo '<svg id="weather34 unlocked" viewBox="0 0 32 32" width="12" height="12" fill="none" stroke="#f16b4f" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M5 15 L5 30 27 30 27 15 Z M9 15 C9 7 9 3 16 3 23 3 23 8 23 9 M16 20 L16 23" /><circle cx="16" cy="24" r="1" /></svg>';}
else echo '<svg id="weather34 locked" viewBox="0 0 32 32" width="12" height="12" fill="none" stroke="#06a2b1" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M5 15 L5 30 27 30 27 15 Z M9 15 C9 9 9 5 16 5 23 5 23 9 23 15 M16 20 L16 23" /><circle cx="16" cy="24" r="1" /></svg>';
?></a></li> <p>
<li><a href="index.php" title="WEATHERSTATION HOME PAGE"> <weather34menumarkergreen></weather34menumarkergreen> Home </a></li>
<li><a href="#">UI THEME</a></li>
<li><a href=<?php if($theme=='dark'){echo'?theme=light';}else{echo'?theme=dark';}?>>
<?php if($theme=='dark'){echo' <weather34menumarkerlight></weather34menumarkerlight> Light Mode';}else{echo'<weather34menumarkerbluegrey></weather34menumarkerbluegrey> Dark Mode';}?></a></li>
<p>
<li><a href="#">UNITS</a></li>
<?php
if($units!=Null && $units!='default'){echo '<li> <a href="./?units=default"> <weather34menumarkerred></weather34menumarkerred> Default Units '.(($tempunit=='F')?'<topbarimperialf>°F</topbarimperialf>':'<topbarmetricc>°C</topbarmetricc>').'</a><br />';}
if($units!='us'){echo '<li> <a href="./?units=us"> <weather34menumarkerorange></weather34menumarkerorange> Imperial <topbarimperialf>°F</topbarimperialf> </a><br /> ';}
if($units!='metric'){echo '<li> <a href="./?units=metric"> <weather34menumarkerblue></weather34menumarkerblue> Metric <topbarmetricc>°C</topbarmetricc></a><br /> ';}
if($units!='uk'){echo '<li> <a href="./?units=uk"> <weather34menumarkeryellow></weather34menumarkeryellow> UK ( MPH) <topbarmetricc>°C</topbarmetricc></a><br /> ';}
if($units!='scandinavia'){echo '<li> <a href="./?units=scandinavia"> <weather34menumarkerred></weather34menumarkerred> M/S <topbarmetricc>°C</topbarmetricc></a>';}
?>
<li><a href="#">EXTRAS</a></li>
<li>
<?php if(!empty($webcamurl) && $webcamurl != ' ' && $webcamurl != 'Null' && $webcamurl != 'null'){?>
<li><!---webcam---> <a href="cam.php" data-lity title="WEATHERSTATION WEBCAM"> <weather34menumarkeryellow></weather34menumarkeryellow> Web Cam </a></li>
<?php };?>
<li><!--contact info---> <a href="bio.php" data-lity title="Weather Station Owner Contact Card Info"> <weather34menumarkerorange></weather34menumarkerorange> Contact Card</a></li>
<li><!--hardware info---> <a href="stationinfo.php" data-lity title="Hardware Weather Station Hardware Info"> <weather34menumarkerred></weather34menumarkerred> Hardware Info</a></li>
<!---languages--->
<br> <?php if($languages=="yes") echo '<li><a href="">
<weather34menumarkerbluegrey></weather34menumarkerbluegrey> '.$lang["language"], '</a></li>','
<br>
<div class="languages34">
<a href="index.php?lang=en"><img src="img/flags/en.svg" title="English" width="25px" height="25px"></a>
<a href="index.php?lang=dk"><img src="img/flags/dk.svg" title="Danish" width="25px" height="25px"></a>
<a href="index.php?lang=gr"><img src="img/flags/gr.svg" title="Greek" width="25px" height="25px"></a>
<a href="index.php?lang=it"><img src="img/flags/it.svg" title="Italian" width="25px" height="25px"></a>
<a href="index.php?lang=fr"><img src="img/flags/fr.svg" title="French" width="25px" height="25px"></a>
</div>
<div class="languages34">
<a href="index.php?lang=dl"><img src="img/flags/dl.svg" title="German" width="25px" height="25px"></a>
<a href="index.php?lang=nl"><img src="img/flags/nl.svg" title="Dutch" width="25px" height="25px"></a>
<a href="index.php?lang=cat"><img src="img/flags/cat.svg" title="Catalan" width="25px" height="25px"></a>
<a href="index.php?lang=sp"><img src="img/flags/sp.svg" title="Spanish" width="25px" height="25px"></a>
<a href="index.php?lang=tr"><img src="img/flags/tr.svg" title="Turkish" width="25px" height="25px"></a>
<br>
<div class="languages34">
<a href="index.php?lang=hu"><img src="img/flags/hu.svg" title="Hungary" width="25px" height="25px"></a>
<a href="index.php?lang=pl"><img src="img/flags/pl.svg" title="Polish" width="25px" height="25px"></a>
<a href="index.php?lang=sp"><img src="img/flags/ar.svg" title="Argentina" width="25px" height="25px"></a>
<a href="index.php?lang=dl"><img src="img/flags/ch-switzerland.svg" title="Switzerland" width="25px" height="25px"></a>
<br>
'?>
<!---credits | download info--->
<?php // please do not remove this and if so no support is given and your domain will be blacklisted from support it is not much to ask //?>
<li><a href="https://weather34.com/homeweatherstation/meteobridge-mb-smart.html" data-title="Weather34 MB-Smart Version" target="_blank">
<weather34menumarkerbluegrey></weather34menumarkerbluegrey> Download MB-Smart Version</a></li>
<li><a href="https://weather34.com/homeweatherstation/meteobridge-mb-smart.html" data-title="Weather34 MB-Smart Version" target="_blank"><weather34menumarkerbluegrey></weather34menumarkerbluegrey> Designed by weather34.com</a></li>
</div></div></header>