-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
232 lines (187 loc) · 9.73 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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
<?php
error_reporting(-1);
ini_set('display_errors', 1);
require_once 'actions.php';
$app = new App();
$parameters = $app->getParameters();
if (isset($_POST['currentToken'])) {
$app->getApiTokenAction($_POST['currentToken'], @$_POST['refreshToken']);
}
if (isset($_GET['getParameters'])) {
$app->getParametersAction();
}
?>
<!DOCTYPE html>
<html>
<head>
<meta name="msapplication-tap-highlight" content="no">
<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width">
<link rel="stylesheet" type="text/css" href="/css/styles.css">
<title><?php echo $parameters->applicationName; ?></title>
<meta http-equiv="Access-Control-Allow-Origin" content="*">
<meta name="theme-color" content="#455a64">
<link rel="icon" type="image/png" href="/img/favicon.png" />
</head>
<body>
<div id="app">
<!-- NAVBAR -->
<div id="mainLoader" class="progress">
<div class="indeterminate"></div>
</div>
<nav>
<div class="nav-wrapper primary">
<a href="/" class="brand-logo"><?php echo $parameters->applicationName; ?></a>
<ul id="nav-mobile-left" class="left">
<li class="showIfLoggedIn">
<a href='#' data-go="showEvents" class="mainMenu-eventsButton">
<i class="material-icons left" id="showEventsButton">event_note</i>
<span class="button-label hide-on-med-and-down">Évènements</span>
</a>
</li>
</ul>
<ul id="nav-mobile-right" class="right">
<li class="showIfLoggedIn" id="introductionButton">
<a href="javascript:;" data-tooltip="Voir l'introduction">
<i class="material-icons">info_outline</i>
</a>
</li>
<li class="showIfLoggedIn">
<a class='dropdown-button navbar-user-btn userMenu-dropdownButton' href="javascript:;"
data-activates='userMenu'
data-alignment="right"
data-constrainWidth="false"
data-belowOrigin="true"
>
<span class="button-label hide-on-med-and-down">Mon compte</span>
<i class="material-icons" id="showProfileButton">person_outline</i>
</a>
<!-- Dropdown Structure -->
<ul id='userMenu' class='dropdown-content'>
<li>
<a href="javascript:;" data-go="showUserProfile" class="userMenu-profileButton">
<i class="material-icons">featured_play_list</i>
Voir mon profil
</a>
</li>
<li class="divider"></li>
<li id="btn-logout">
<a href="javascript:;" data-go="logout" class="userMenu-logoutButton">
<i class="material-icons">exit_to_app</i>
Se déconnecter
</a>
</li>
</ul>
</li>
<li class="hideIfLoggedIn">
<a href="javascript:;" data-go="login" data-tooltip="Se connecter" class="userMenu-loginButton">
<i class="material-icons">fingerprint</i>
</a>
</li>
</ul>
</div>
</nav>
<div class="content">
<!-- CONTENT LOADER -->
<div id="contentLoader">
<div class="preloader-wrapper big active">
<div class="spinner-layer spinner-blue">
<div class="circle-clipper left">
<div class="circle"></div>
</div><div class="gap-patch">
<div class="circle"></div>
</div><div class="circle-clipper right">
<div class="circle"></div>
</div>
</div>
<div class="spinner-layer spinner-red">
<div class="circle-clipper left">
<div class="circle"></div>
</div><div class="gap-patch">
<div class="circle"></div>
</div><div class="circle-clipper right">
<div class="circle"></div>
</div>
</div>
<div class="spinner-layer spinner-yellow">
<div class="circle-clipper left">
<div class="circle"></div>
</div><div class="gap-patch">
<div class="circle"></div>
</div><div class="circle-clipper right">
<div class="circle"></div>
</div>
</div>
<div class="spinner-layer spinner-green">
<div class="circle-clipper left">
<div class="circle"></div>
</div><div class="gap-patch">
<div class="circle"></div>
</div><div class="circle-clipper right">
<div class="circle"></div>
</div>
</div>
</div>
</div>
<!-- EVENTS TABS -->
<div id="main" class="row">
<div class="col s12 showIfLoggedIn">
<handlebars-template name="mainTabs" src="/js/modules/events/views/tabs.html"></handlebars-template>
</div>
</div>
</div>
<handlebars-template name="cartConfirm" src="/js/modules/cart/views/cartConfirm.html"></handlebars-template>
</div>
<!-- LIBS -->
<script src="/LiftJS/dist/libs/jquery-3.2.1.min.js"></script>
<script src="/LiftJS/dist/libs/jquery-ui.min.js"></script>
<script src="/LiftJS/dist/libs/jquery.ui.touch-punch.min.js"></script>
<script src="/LiftJS/dist/libs/handlebars.min.js"></script>
<script src="/LiftJS/dist/libs/materialize.min.js"></script>
<script src="/LiftJS/dist/libs/moment-with-locales.min.js"></script>
<!-- UNCOMMENT IF YOU WANT TO SUPPORT LEGACY BROWSER -->
<!--<script src="js/libs/jquery.history.js"></script>-->
<!-- APP -->
<script>
var appHostname = "<?php echo $parameters->appHostname; ?>";
</script>
<script type="text/javascript" src="/LiftJS/dist/liftJs.min.js"></script>
<script type="text/javascript" src="/LiftJS/dist/modules/baseUi/baseUi.min.js"></script>
<script type="text/javascript" src="/LiftJS/dist/modules/webservice/webservice.min.js"></script>
<script type="text/javascript" src="/LiftJS/dist/modules/featureDiscovery/featureDiscovery.min.js"></script>
<!-- BUSINESS COMPONENTS -->
<script type="text/javascript" src="/js/modules/user/user.js"></script>
<script type="text/javascript" src="/js/modules/user/ctrl.js"></script>
<script type="text/javascript" src="/js/modules/user/ws.js"></script>
<!-- WEBSERVICE -->
<script type="text/javascript" src="/js/modules/webservice/webservice.js"></script>
<!-- EVENTS -->
<script type="text/javascript" src="/js/modules/events/events.js"></script>
<script type="text/javascript" src="/js/modules/events/ctrl.js"></script>
<script type="text/javascript" src="/js/modules/events/ws.js"></script>
<script type="text/javascript" src="/js/modules/events/ui.js"></script>
<!-- CART -->
<script type="text/javascript" src="/js/modules/cart/cart.js"></script>
<script type="text/javascript" src="/js/modules/cart/ws.js"></script>
<!-- OVERRIDE -->
<script type="text/javascript" src="/js/modules/override/override.js"></script>
<!-- APP STARTER -->
<script type="text/javascript">
// Set your custom host if needed (without trailing slash)
app.config.host = "<?php echo $parameters->appHostname; ?>";
// Set your custom parameters.json path
app.config.parametersPath = "/?getParameters=1&<?php echo date('YmdH') ?>";
app.core.ui.displayContentLoading();
// START APP
$(document).ready(app.init());
</script>
<div class="footer">
<div class="footerText">
Propulsé par <a href="http://www.e-venement.net">e-venement</a>
</div>
<div class="footerText">
Réalisé par <a href="http://www.libre-informatique.fr/">libre-informatique</a>
</div>
<div class="footerText custom"><?php echo nl2br($parameters->footerText); ?></div>
</div>
</body>
</html>