Skip to content

Commit

Permalink
Hide webcam in menu if not set...
Browse files Browse the repository at this point in the history
Setting webcam to blank or Null hides the webcam option in the menu
  • Loading branch information
lightmaster committed May 30, 2019
1 parent 51170f2 commit e13f076
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions menu.php
Expand Up @@ -32,7 +32,9 @@
<li>
<?php if($weatherflowoption=="yes"){ echo "<a href=https://staging.smartweather.weatherflow.com/map/".$lat."/".$lon."/".$weatherflowmapzoom." data-lity title='see your weather station on official weatherflow map'><weather34menumarkerblue></weather34menumarkerblue> Weatherflow Map </a></li>" ;}
else echo "";?>
<?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>

Expand Down

0 comments on commit e13f076

Please sign in to comment.