-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
120 lines (93 loc) · 3.72 KB
/
index.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
<?php require_once('users/models/config.php'); ?>
<!DOCTYPE html>
<!--[if IE 7 ]><html lang="en" class="ie7 nojs"><![endif]-->
<!--[if IE 8 ]><html lang="en" class="ie8 nojs"><![endif]-->
<!--[if IE 9 ]><html lang="en" class="ie9 nojs"><![endif]-->
<!--[if gt IE 9]><!--><html lang="en" class="nojs"><!--<![endif]-->
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="keywords" content="" />
<meta name="description" content="" />
<meta name="viewport" content="width=device-width, maximum-scale=1.0" />
<meta property="og:site_name" content="" />
<meta property="og:title" content="" />
<meta property="og:description" content="" />
<meta property="og:url" content="" />
<meta property="og:image" content="" />
<meta property="og:type" content="website" />
<meta property="og:locale" content="en_US" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<title>Twig</title>
<link rel="shortcut icon" href="images/favicon.ico" />
<script>document.documentElement.className = document.documentElement.className.replace('nojs', '');</script>
<?php
if(isUserLoggedIn()) {
echo "<script>";
echo ("window.alreadyLogged = {'userName': '" . $loggedInUser->username ."', 'displayName': '" . $loggedInUser->displayname . "', 'userID': '" . $loggedInUser->user_id . "'};");
echo "</script>";
}
?>
<link rel="stylesheet" href="stylesheets/reset.css" />
<link rel="stylesheet" href="stylesheets/app/app.css" />
<link rel="stylesheet" href="stylesheets/app/mobile.css" />
<link rel="stylesheet" href="stylesheets/plugins/animate.css" />
<link rel="stylesheet" href="stylesheets/plugins/ui-lightness/jquery-ui-1.9.2.custom.css" />
<link rel="stylesheet" href="stylesheets/app/print.css" />
<!--
<script type="text/template" id="example_backbone_template">
Test Template
</script>
-->
</head>
<body>
<!-- BEGIN: section_main -->
<div id="section_main">
<div id="mouseLoader"></div>
<noscript>
<p>Javascript is currently disabled. Please <a href="http://www.google.com/support/bin/answer.py?answer=23852" target="_blank">enable javascript</a> for the optimal experience!</p>
</noscript>
<div id="header_global">
</div>
<div id="side_menu">
</div>
<div id="section_content">
</div>
<div id="footer_global"></div>
</div>
<!-- END: section_main -->
<script src="javascripts/lib/LAB-debug.min.js"></script>
<script>
$LAB
.setOptions({
'Debug': true
})
// Libraries
.script('javascripts/lib/jquery.min.js').wait()
.script('javascripts/lib/underscore.js').wait()
.script('javascripts/lib/backbone.js').wait()
.script('javascripts/app/router/AppRouter.js').wait()
.script('javascripts/plugins/touchable.js').wait()
.script('javascripts/plugins/jquery-ui-1.9.2.custom.min.js').wait()
// Backbone - Models
// Backbone - Views
.script('javascripts/app/view/HeaderView.js').wait()
.script('javascripts/app/view/DashboardView.js').wait()
.script('javascripts/app/view/SplashView.js').wait()
.script('javascripts/app/view/ProfileView.js').wait()
.script('javascripts/app/view/AddPlantView.js').wait()
.script('javascripts/app/view/IndexView.js').wait()
.script('javascripts/app/view/MenuView.js').wait()
.script('javascripts/app/view/SearchView.js').wait()
// Site-Specific JS - Global
.script('javascripts/app/app.utilities.js').wait()
.script('javascripts/app/app.user.js').wait()
.script('javascripts/app/app.animation.js').wait()
// Page-Specific JS
.script('javascripts/app/app.global.js').wait(function() {
window.isDebugMode = true;
App.Global.init();
});
</script>
</body>
</html>