Skip to content
Permalink
Browse files

Hide webcam in menu if not set...

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 e13f076ebb11a8d71c073a7e3577c16fe2689f3c
Showing with 2 additions and 0 deletions.
  1. +2 −0 menu.php
@@ -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>

0 comments on commit e13f076

Please sign in to comment.
You can’t perform that action at this time.