forked from emoncms/emoncms
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy paththeme.php
108 lines (94 loc) · 3.46 KB
/
theme.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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<?php
/*
All Emoncms code is released under the GNU Affero General Public License.
See COPYRIGHT.txt and LICENSE.txt.
---------------------------------------------------------------------
Emoncms - open source energy visualisation
Part of the OpenEnergyMonitor project:
http://openenergymonitor.org
*/
global $session, $theme, $path;
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<!-- Thanks to Baptiste Gaultier for the emoncms dial icon http://bit.ly/zXgScz -->
<link rel="shortcut icon" href="<?php echo $path; ?>Theme/basic/favicon.png" />
<link href="<?php print $GLOBALS['path']; ?>Lib/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="<?php echo $path; ?>Theme/basic/style.css" />
<!-- APPLE TWEAKS - thanks to Paul Dreed -->
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<link rel="apple-touch-startup-image" href="<?php echo $path; ?>Theme/basic/ios_load.png">
<link rel="apple-touch-icon" href="<?php echo $path; ?>Theme/basic/logo_normal.png">
<title>Emoncms</title>
</head>
<body style="padding-top:42px;" >
<?php
/*------------------------------------------------------
* HEADER
*------------------------------------------------------
*/
?>
<div class="navbar navbar-fixed-top">
<div class="navbar-inner">
<div class="container">
<?php if (!isset($runmenu)) $runmenu = '';
echo $mainmenu.$runmenu;
?>
</div>
</div>
</div>
<?php
if (isset($message))
{
$alert = 'info';
if (count($message)==2) {
$alert = $message[0];
$message = $message[1];
}
if ($message) { ?>
<div class="alert alert-<?php echo $alert; ?>">
<button class="close" data-dismiss="alert">×</button>
<strong>Message: </strong><?php print $message; ?>
</div>
<?php
}
}
/*------------------------------------------------------
* GREY SUBMENU
*------------------------------------------------------
*/
if (isset($submenu) && ($submenu)) { ?>
<div style="width:100%; background-color:#ddd; height:27px;">
<div style="margin: 0px auto; text-align:left; width:940px;">
<?php echo $submenu; ?>
</div>
</div>
<?php }
/*------------------------------------------------------
* CONTENT
*------------------------------------------------------
*/
?>
<div class="content">
<?php
if (!isset($fullwidth)) $fullwidth = false;
if (!$fullwidth) {
echo '<div style="margin: 0px auto; max-width:940px; padding:10px;">';
print $content;
echo '</div>';
}
else {
print $content;
}
?>
</div>
<div style="clear:both; height:37px;"></div>
<div class="footer"><?php echo _('Powered by '); ?><a href="http://openenergymonitor.org">openenergymonitor.org</a></div>
<!-- needed for modal -->
<!-- MOVED TO DASHBOARD_CONFIG_VIEW (declaring jquery here conflics with the jquery lib loaded by the visualisations)-->
</body>
</html>