I am trying to figure out with the Saratoga Weather templates how to add the weather advisory bar that is on index.php to the forecast webpage.
I figured I would put this code somewhere on wxforecast.php
<?php // insert desired warning box at top of page
if(isset($SITE['NWSalertsCodes']) and count($SITE['NWSalertsCodes']) > 0) {
// Add nws-alerts alert box cache file
include_once("nws-alerts-config.php");
include($cacheFileDir.$aboxFileName);
// Insert nws-alerts alert box
echo $alertBox;
?>
<script type="text/javascript" src="nws-alertmap.js"></script>
Whenever I add this, it breaks the forecast until I remove it.