1 |
www |
1 |
<?php
|
|
|
2 |
|
|
|
3 |
use LeadersLinked\Library\Functions;
|
|
|
4 |
use LeadersLinked\Model\UserType;
|
4470 |
stevensc |
5 |
use LeadersLinked\Model\Theme;
|
1 |
www |
6 |
|
|
|
7 |
$notify = '';
|
|
|
8 |
$messages = $this->flashMessenger()->getInfoMessages();
|
|
|
9 |
foreach ($messages as $message) {
|
|
|
10 |
$notify .= "$.fn.showInfo('$message')";
|
|
|
11 |
}
|
|
|
12 |
|
|
|
13 |
$messages = $this->flashMessenger()->getSuccessMessages();
|
|
|
14 |
foreach ($messages as $message) {
|
|
|
15 |
$notify .= "$.fn.showSuccess('$message')";
|
|
|
16 |
}
|
|
|
17 |
|
|
|
18 |
$messages = $this->flashMessenger()->getWarningMessages();
|
|
|
19 |
foreach ($messages as $message) {
|
|
|
20 |
$notify .= " $.fn.showWarning('$message')";
|
|
|
21 |
}
|
|
|
22 |
|
|
|
23 |
$messages = $this->flashMessenger()->getErrorMessages();
|
|
|
24 |
foreach ($messages as $message) {
|
|
|
25 |
$notify .= " $.fn.showError('$message')";
|
|
|
26 |
}
|
|
|
27 |
|
|
|
28 |
if ($notify) {
|
|
|
29 |
$this->inlineScript()->captureStart();
|
|
|
30 |
echo " jQuery( document ).ready(function( $ ) { $notify }); ";
|
|
|
31 |
$this->inlineScript()->captureEnd();
|
|
|
32 |
}
|
|
|
33 |
|
|
|
34 |
$routeCheckSession = $this->url('check-session');
|
|
|
35 |
|
4471 |
stevensc |
36 |
$currentNetworkHelper = $this->currentNetworkHelper();
|
|
|
37 |
$currentNetwork = $currentNetworkHelper->getNetwork();
|
|
|
38 |
|
1 |
www |
39 |
$currentUser = $this->currentUserHelper();
|
640 |
steven |
40 |
// if ($currentUser->hasIdentity()) {
|
|
|
41 |
// $this->inlineScript()->captureStart();
|
|
|
42 |
// echo <<<EOT
|
|
|
43 |
// jQuery( document ).ready(function( $ ) {
|
|
|
44 |
// $.fn.checkSession = function() {
|
|
|
45 |
// $.ajax({
|
|
|
46 |
// 'dataType' : 'json',
|
|
|
47 |
// 'accept' : 'application/json',
|
|
|
48 |
// 'method' : 'get',
|
|
|
49 |
// 'url' : '$routeCheckSession',
|
|
|
50 |
// }).done(function(response) {
|
|
|
51 |
// if(response['success']) {
|
|
|
52 |
// if(parseInt(response['data']['total_messages']) > 0) {
|
|
|
53 |
// $('#badge-inmail').html(response['data']['total_messages']);
|
|
|
54 |
// $('#badge-inmail').show();
|
|
|
55 |
// } else {
|
|
|
56 |
// $('#badge-inmail').hide();
|
|
|
57 |
// }
|
1 |
www |
58 |
|
640 |
steven |
59 |
// if(parseInt(response['data']['total_messages']) > 0) {
|
|
|
60 |
// $('#badge-message').html(response['data']['total_messages']);
|
|
|
61 |
// $('#badge-message').show();
|
|
|
62 |
// } else {
|
|
|
63 |
// $('#badge-message').hide();
|
|
|
64 |
// }
|
2535 |
stevensc |
65 |
|
640 |
steven |
66 |
// if(parseInt(response['data']['total_notifications']) > 0) {
|
|
|
67 |
// $('#badge-notification').html(response['data']['total_notifications']);
|
|
|
68 |
// $('#badge-notification').show();
|
|
|
69 |
// } else {
|
|
|
70 |
// $('#badge-notification').hide();
|
|
|
71 |
// }
|
2535 |
stevensc |
72 |
|
|
|
73 |
|
640 |
steven |
74 |
// } else {
|
|
|
75 |
// if(response['data']['url']) {
|
|
|
76 |
// window.location.href = response['data']['url'];
|
|
|
77 |
// } else {
|
|
|
78 |
// $.fn.showError(response['data']['message'])
|
|
|
79 |
// }
|
|
|
80 |
// }
|
|
|
81 |
// }).fail(function( jqXHR, textStatus, errorThrown) {
|
|
|
82 |
// }).always(function() {
|
2535 |
stevensc |
83 |
|
640 |
steven |
84 |
// setTimeout(function() {
|
|
|
85 |
// $.fn.checkSession();
|
|
|
86 |
// }, 3000);
|
|
|
87 |
// })
|
2535 |
stevensc |
88 |
|
640 |
steven |
89 |
// }
|
2535 |
stevensc |
90 |
|
640 |
steven |
91 |
// setTimeout(function() {
|
|
|
92 |
// $.fn.checkSession();
|
|
|
93 |
// }, 3000);
|
2535 |
stevensc |
94 |
|
640 |
steven |
95 |
// });
|
|
|
96 |
// EOT;
|
|
|
97 |
// $this->inlineScript()->captureEnd();
|
|
|
98 |
// }
|
1 |
www |
99 |
$acl = $this->viewModel()->getRoot()->getVariable('acl');
|
|
|
100 |
|
|
|
101 |
?>
|
|
|
102 |
|
|
|
103 |
<!DOCTYPE html>
|
|
|
104 |
<html>
|
|
|
105 |
|
|
|
106 |
<head>
|
4198 |
stevensc |
107 |
<?php
|
|
|
108 |
echo $this->headTitle();
|
|
|
109 |
?>
|
|
|
110 |
<link rel="icon" href="<?php echo $this->networkFavicoHelper(); ?>">
|
|
|
111 |
<?php
|
1 |
www |
112 |
echo $this->headMeta()->appendHttpEquiv('X-UA-Compatible', 'IE=edge')
|
|
|
113 |
->appendHttpEquiv('expires', '0')
|
|
|
114 |
->appendHttpEquiv('expires', 'Tue, 01 Jan 1980 1:00:00 GMT')
|
|
|
115 |
->appendHttpEquiv('pragma', 'no-cache')
|
|
|
116 |
->appendHttpEquiv('Cache-Control', 'no-store')
|
|
|
117 |
->appendHttpEquiv('Cache-Control', 'max-age=0')
|
|
|
118 |
->appendHttpEquiv('Cache-Control', 'no-cache')
|
|
|
119 |
->appendHttpEquiv('charset', 'UTF-8')
|
|
|
120 |
->appendName('viewport', 'width=device-width, initial-scale=1.0');
|
|
|
121 |
//->appendName('description', '')
|
|
|
122 |
//->appendName('author', '{AUTHOR}')
|
|
|
123 |
//->appendName('keywords', '{KEYWORDS}')
|
|
|
124 |
//->appendName('copyright', '{COPYRIGHT}')
|
|
|
125 |
//->appendName('google-signin-client_id', '{GOOGLE_CLIENT_ID');
|
|
|
126 |
?>
|
3252 |
stevensc |
127 |
<meta id="share">
|
1 |
www |
128 |
<link rel="stylesheet" type="text/css" href="<?php echo $this->basePath('css/bootstrap.min.css') ?>">
|
|
|
129 |
<link rel="stylesheet" type="text/css" href="<?php echo $this->basePath('css/line-awesome.css') ?>">
|
|
|
130 |
<link rel="stylesheet" type="text/css" href="<?php echo $this->basePath('css/line-awesome-font-awesome.min.css') ?>">
|
|
|
131 |
|
|
|
132 |
<link rel="stylesheet" type="text/css" href="<?php echo $this->basePath('vendors/fontawesome-free/css/all.min.css') ?>">
|
|
|
133 |
<link rel="stylesheet" type="text/css" href="<?php echo $this->basePath('vendors/font-awesome/css/font-awesome.min.css') ?>">
|
|
|
134 |
<!--
|
|
|
135 |
|
|
|
136 |
<link rel="stylesheet" type="text/css" href="<?php echo $this->basePath('css/font-awesome.min.css') ?>">
|
|
|
137 |
<link rel="stylesheet" type="text/css" href="<?php echo $this->basePath('vendors/font-awesome/font-awesome.min.css') ?>">
|
|
|
138 |
-->
|
|
|
139 |
|
|
|
140 |
<link rel="stylesheet" type="text/css" href="<?php echo $this->basePath('css/jquery.mCustomScrollbar.min.css') ?>" />
|
2535 |
stevensc |
141 |
|
1 |
www |
142 |
<link rel="stylesheet" type="text/css" href="<?php echo $this->basePath('vendors/nprogress/nprogress.css') ?>">
|
2535 |
stevensc |
143 |
|
|
|
144 |
|
7343 |
efrain |
145 |
|
1 |
www |
146 |
<link rel="stylesheet" type="text/css" href="<?php echo $this->basePath('css/icons.css') ?>" />
|
|
|
147 |
<link rel="stylesheet" type="text/css" href="<?php echo $this->basePath('vendors/smiley/assets/sprites/emojione.sprites.css') ?>" />
|
4236 |
stevensc |
148 |
<link rel="stylesheet" type="text/css" href="<?php echo $this->basePath('lib/slick/slick.css') ?>">
|
4246 |
stevensc |
149 |
<link rel="stylesheet" type="text/css" href="<?php echo $this->basePath('lib/slick/slick-theme.css') ?>">
|
3594 |
stevensc |
150 |
<link rel="stylesheet" type="text/css" href="<?php echo $this->basePath('look-and-field/chat.css') ?>" />
|
5097 |
stevensc |
151 |
<link rel="stylesheet" type="text/css" href="<?php echo $this->basePath('look-and-field/style-cesa.css') ?>" />
|
3479 |
stevensc |
152 |
<link rel="stylesheet" type="text/css" href="<?php echo $this->basePath('look-and-field/main.css') ?>" />
|
3491 |
stevensc |
153 |
<link rel="stylesheet" type="text/css" href="<?php echo $this->basePath('look-and-field/navbar.css') ?>" />
|
4123 |
stevensc |
154 |
<link rel="stylesheet" type="text/css" href="<?php echo $this->basePath('react-bundles/chat/main.css') ?>" />
|
5897 |
stevensc |
155 |
<link rel="stylesheet" type="text/css" href="<?php echo $this->basePath('look-and-field/dashboard.css') ?>" />
|
4886 |
stevensc |
156 |
|
7343 |
efrain |
157 |
<link rel="stylesheet" type="text/css" href="<?php echo $this->basePath('react-bundles/app/main.css') ?>" />
|
4246 |
stevensc |
158 |
|
1 |
www |
159 |
|
|
|
160 |
<?php
|
|
|
161 |
echo $this->headStyle();
|
3639 |
efrain |
162 |
echo $this->networkStylesAndColorsHelper();
|
1 |
www |
163 |
echo $this->headLink();
|
|
|
164 |
echo $this->headScript();
|
|
|
165 |
?>
|
|
|
166 |
|
|
|
167 |
</head>
|
|
|
168 |
|
|
|
169 |
<body>
|
|
|
170 |
|
5280 |
stevensc |
171 |
<?php echo $this->menuHelper($currentUser->getUserId()) ?>
|
1 |
www |
172 |
|
5280 |
stevensc |
173 |
<div id="app">
|
7343 |
efrain |
174 |
<div id="root">
|
|
|
175 |
<div class="process-comm" id="paginator-process-comm">
|
|
|
176 |
<div class="spinner">
|
|
|
177 |
<div class="bounce1"></div>
|
|
|
178 |
<div class="bounce2"></div>
|
|
|
179 |
<div class="bounce3"></div>
|
|
|
180 |
</div>
|
|
|
181 |
</div>
|
|
|
182 |
</div>
|
5280 |
stevensc |
183 |
</div>
|
2535 |
stevensc |
184 |
|
5280 |
stevensc |
185 |
<?php if ($currentUser->hasIdentity() && !$currentUser->hasImpersonate()) {
|
|
|
186 |
$user = $currentUser->getUser();
|
|
|
187 |
echo $this->chatHelper($user->id);
|
|
|
188 |
}
|
|
|
189 |
?>
|
1 |
www |
190 |
|
5280 |
stevensc |
191 |
<footer>
|
|
|
192 |
<div class="footy-sec mn container">
|
1 |
www |
193 |
|
5280 |
stevensc |
194 |
<img class="fl-rgt" src="<?php echo $this->basePath('/images/LL-08.png') ?>" alt="">
|
4904 |
stevensc |
195 |
|
5280 |
stevensc |
196 |
<?php echo $this->footerHelper() ?>
|
4910 |
stevensc |
197 |
|
5280 |
stevensc |
198 |
<div class="d-flex align-items-center">
|
|
|
199 |
<img src="<?php echo $this->basePath('images/copy-icon2.png') ?>" alt="">
|
|
|
200 |
<p>CESA MS Copyright <?php echo date('Y') ?></p>
|
|
|
201 |
</div>
|
4904 |
stevensc |
202 |
|
5280 |
stevensc |
203 |
</div>
|
|
|
204 |
</footer>
|
4904 |
stevensc |
205 |
|
7343 |
efrain |
206 |
|
668 |
steven |
207 |
<script type="text/javascript" src="<?php echo $this->basePath('vendors/smiley/smiley.js') ?>"></script>
|
1 |
www |
208 |
<script type="text/javascript" src="<?php echo $this->basePath('vendors/smiley/js/emojione.min.js') ?>"></script>
|
7343 |
efrain |
209 |
|
1 |
www |
210 |
|
4198 |
stevensc |
211 |
<script type="text/javascript" src="<?php echo $this->basePath('vendors/jquery/jquery.min.js') ?>"></script>
|
|
|
212 |
<!-- Bootstrap 4 -->
|
|
|
213 |
<script type="text/javascript" src="<?php echo $this->basePath('vendors/bootstrap/js/bootstrap.bundle.min.js') ?>"></script>
|
|
|
214 |
<!-- Aplicacion -->
|
|
|
215 |
<script type="text/javascript" src="<?php echo $this->basePath('vendors/bootstrap-notify/bootstrap-notify.min.js') ?>"></script>
|
3731 |
efrain |
216 |
|
4198 |
stevensc |
217 |
<script type="text/javascript" src="<?php echo $this->basePath('js/app.js') ?>"></script>
|
|
|
218 |
|
|
|
219 |
|
7343 |
efrain |
220 |
<script type="text/javascript" src="<?php echo $this->basePath('react-bundles/app/applicationBundle.js') ?>"></script>
|
|
|
221 |
|
|
|
222 |
<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?key=$google_map_key&libraries=places"></script>
|
7344 |
efrain |
223 |
<script async="async" defer="defer" src="https://www.google.com/recaptcha/api.js?render=explicit"></script>
|
7343 |
efrain |
224 |
|
1 |
www |
225 |
<?php
|
|
|
226 |
echo $this->inlineScript();
|
|
|
227 |
?>
|
|
|
228 |
</body>
|
|
|
229 |
|
|
|
230 |
</html>
|