/
theme.php
124 lines (116 loc) · 4.9 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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
<!doctype html>
<?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 $ltime,$path,$fullwidth,$menucollapses,$emoncms_version,$theme,$favicon;
?>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Emoncms - <?php echo $route->controller.' '.$route->action.' '.$route->subaction; ?></title>
<link rel="shortcut icon" href="<?php echo $path; ?>Theme/<?php echo $theme; ?>/<?php echo $favicon; ?>" />
<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/<?php echo $theme; ?>/ios_load.png">
<link rel="apple-touch-icon" href="<?php echo $path; ?>Theme/<?php echo $theme; ?>/logo_normal.png">
<link href="<?php echo $path; ?>Lib/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<link href="<?php echo $path; ?>Lib/bootstrap/css/bootstrap-responsive.min.css" rel="stylesheet">
<link href="<?php echo $path; ?>Lib/bootstrap-datetimepicker-0.0.11/css/bootstrap-datetimepicker.min.css" rel="stylesheet">
<link href="<?php echo $path; ?>Theme/<?php echo $theme; ?>/emon.css" rel="stylesheet">
<script type="text/javascript" src="<?php echo $path; ?>Lib/jquery-1.11.3.min.js"></script>
</head>
<body>
<div id="wrap">
<div class="navbar navbar-inverse navbar-fixed-top">
<div class="navbar-inner">
<div class="container">
<?php if ($menucollapses) { ?>
<style>
/* this is menu colapsed */
@media (max-width: 979px){
.menu-description {
display: inherit !important ;
}
}
@media (min-width: 980px) and (max-width: 1200px){
.menu-text {
display: none !important;
}
}
</style>
<button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
<img src="<?php echo $path; ?>Theme/<?php echo $theme; ?>/favicon.png" style="width:28px;"/>
</button>
<div class="nav-collapse collapse">
<?php } else { ?>
<style>
@media (max-width: 1200px){
.menu-text {
display: none !important;
}
}
@media (max-width: 480px){
.menu-dashboard {
display: none !important;
}
}
@media (max-width: 320px){
.menu-extra {
display: none !important;
}
}
</style>
<?php } ?>
<?php if (!isset($runmenu)) $runmenu = '';
echo $mainmenu.$runmenu;
?>
<?php
if ($menucollapses) {
?>
</div>
<?php
}
?>
</div>
</div>
</div>
<div id="topspacer"></div>
<?php if (isset($submenu) && ($submenu)) { ?>
<div id="submenu">
<div class="container">
<?php echo $submenu; ?>
</div>
</div><br>
<?php } ?>
<?php
if ($fullwidth && $route->controller=="dashboard") {
?>
<div>
<?php echo $content; ?>
</div>
<?php } else if ($fullwidth) { ?>
<div class = "container-fluid"><div class="row-fluid"><div class="span12">
<?php echo $content; ?>
</div></div></div>
<?php } else { ?>
<div class="container">
<?php echo $content; ?>
</div>
<?php } ?>
<div style="clear:both; height:60px;"></div>
</div>
<div id="footer">
<?php echo _('Powered by '); ?>
<a href="http://openenergymonitor.org">openenergymonitor.org</a>
<span> | <a href="https://github.com/emoncms/emoncms/releases"><?php echo $emoncms_version; ?></a></span>
</div>
<script type="text/javascript" src="<?php echo $path; ?>Lib/bootstrap/js/bootstrap.js"></script>
</body>
</html>