-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathheader.php
More file actions
85 lines (82 loc) · 3.26 KB
/
header.php
File metadata and controls
85 lines (82 loc) · 3.26 KB
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
<?php
############################################################################
# A Project of TNET Services, Inc. and Saratoga-Weather.org (WD-World-ML template set)
############################################################################
#
# Project: Sample Included Website Design
# Module: header.php
# Purpose: Provides the displayable top of the website
# Authors: Kevin W. Reed <kreed@tnet.com>
# TNET Services, Inc.
# Ken True <webmaster@saratoga-weather.org>
# Saratoga-Weather.org
#
# Copyright: (c) 1992-2007 Copyright TNET Services, Inc.
###########################################################################
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
############################################################################
# This document uses Tab 4 Settings
############################################################################
//Version 1.01 - 28-Jul-2012 - integrated support for nws-alerts scripts
require_once("Settings.php");
require_once("common.php");
// add support for noCron=true fetch of nws-alerts to get current alerts
if(isset($SITE['NWSalertsCodes']) and count($SITE['NWSalertsCodes']) > 0) {
include_once("nws-alerts-config.php"); // load the configuration for nws-alerts
if(isset($noCron) and $noCron) {
print "<!-- nws-alerts noCron=true .. running nws-alerts.php inline -->\n";
include_once("nws-alerts.php");
}
}
############################################################################
if (isset($SITE['uomTemp']) ) {
$tuom = $SITE['uomTemp'];
} else {
$tuom = split('°',$temperature); // extract units
$tuom = '°' . $tuom[1];
}
?>
<div id="page"><!-- page wrapper -->
<!-- header -->
<div id="header">
<h1 class="headerTitle">
<a href="index.php" title="Browse to homepage"><?php echo langtransstr($SITE['organ']); ?></a>
</h1>
<div class="headerTemp">
<span class="doNotPrint">
<span class="ajax" id="ajaxbigtemp"><?php print isset($tempnodp)?"$tempnodp$tuom":" "; ?>
</span>
</span>
</div>
<div class="subHeader">
<?php echo $SITE['location']; ?>
<?php if($SITE['allowLanguageSelect']) { // insert code for language select ?>
<br />
<!-- begin language select -->
<?php echo print_language_selects(); ?>
<!-- end language select -->
<?php } // end code for language select ?>
</div>
<div class="subHeaderRight">
<?php
if (isset($showGizmo) and $showGizmo) {
include_once("ajax-gizmo.php");
} else {
print " <br/><br/>\n"; // needed as placeholder if no gizmo
}
?>
</div><!-- end subHeaderRight -->
</div>
<!-- end of header -->