Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

Rev 3607 | Rev 3639 | Ir a la última revisión | | Comparar con el anterior | Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 www 1
<?php
2
 
3
use LeadersLinked\Library\Functions;
4
use LeadersLinked\Model\UserType;
5
 
6
$notify = '';
7
$messages = $this->flashMessenger()->getInfoMessages();
8
foreach ($messages as $message) {
9
  $notify .= "$.fn.showInfo('$message')";
10
}
11
 
12
$messages = $this->flashMessenger()->getSuccessMessages();
13
foreach ($messages as $message) {
14
  $notify .= "$.fn.showSuccess('$message')";
15
}
16
 
17
$messages = $this->flashMessenger()->getWarningMessages();
18
foreach ($messages as $message) {
19
  $notify .= " $.fn.showWarning('$message')";
20
}
21
 
22
$messages = $this->flashMessenger()->getErrorMessages();
23
foreach ($messages as $message) {
24
  $notify .= " $.fn.showError('$message')";
25
}
26
 
27
if ($notify) {
28
  $this->inlineScript()->captureStart();
29
  echo " jQuery( document ).ready(function( $ ) { $notify }); ";
30
  $this->inlineScript()->captureEnd();
31
}
32
 
33
$routeCheckSession = $this->url('check-session');
34
 
35
$currentUser    = $this->currentUserHelper();
640 steven 36
// if ($currentUser->hasIdentity()) {
37
//   $this->inlineScript()->captureStart();
38
//   echo <<<EOT
39
//     jQuery( document ).ready(function( $ ) {
40
//         $.fn.checkSession = function() {
41
//             $.ajax({
42
//                 'dataType'  : 'json',
43
//                 'accept'    : 'application/json',
44
//                 'method'    : 'get',
45
//                 'url'       : '$routeCheckSession',
46
//             }).done(function(response) {
47
//                 if(response['success']) {
48
//                     if(parseInt(response['data']['total_messages']) > 0) {
49
//                         $('#badge-inmail').html(response['data']['total_messages']);
50
//                         $('#badge-inmail').show();
51
//                     } else {
52
//                         $('#badge-inmail').hide();
53
//                     }
1 www 54
 
640 steven 55
//                     if(parseInt(response['data']['total_messages']) > 0) {
56
//                         $('#badge-message').html(response['data']['total_messages']);
57
//                         $('#badge-message').show();
58
//                     } else {
59
//                         $('#badge-message').hide();
60
//                     }
2535 stevensc 61
 
640 steven 62
//                     if(parseInt(response['data']['total_notifications']) > 0) {
63
//                         $('#badge-notification').html(response['data']['total_notifications']);
64
//                         $('#badge-notification').show();
65
//                     } else {
66
//                         $('#badge-notification').hide();
67
//                     }
2535 stevensc 68
 
69
 
640 steven 70
//     		    } else {
71
//                     if(response['data']['url']) {
72
//                         window.location.href = response['data']['url'];
73
//                     } else {
74
//                         $.fn.showError(response['data']['message'])
75
//                     }
76
//                 }
77
//             }).fail(function( jqXHR, textStatus, errorThrown) {
78
//             }).always(function() {
2535 stevensc 79
 
640 steven 80
//                 setTimeout(function() {
81
//                     $.fn.checkSession();
82
//                 }, 3000);
83
//             })
2535 stevensc 84
 
640 steven 85
//         }
2535 stevensc 86
 
640 steven 87
//         setTimeout(function() {
88
//             $.fn.checkSession();
89
//         }, 3000);
2535 stevensc 90
 
640 steven 91
//     });
92
// EOT;
93
//   $this->inlineScript()->captureEnd();
94
// }
1 www 95
$acl = $this->viewModel()->getRoot()->getVariable('acl');
96
 
97
?>
98
 
99
<!DOCTYPE html>
100
<html>
101
 
102
<head>
103
  <?php
104
  echo $this->headTitle();
105
  echo $this->headMeta()->appendHttpEquiv('X-UA-Compatible', 'IE=edge')
106
    ->appendHttpEquiv('expires', '0')
107
    ->appendHttpEquiv('expires', 'Tue, 01 Jan 1980 1:00:00 GMT')
108
    ->appendHttpEquiv('pragma', 'no-cache')
109
    ->appendHttpEquiv('Cache-Control', 'no-store')
110
    ->appendHttpEquiv('Cache-Control', 'max-age=0')
111
    ->appendHttpEquiv('Cache-Control', 'no-cache')
112
    ->appendHttpEquiv('charset', 'UTF-8')
113
    ->appendName('viewport', 'width=device-width, initial-scale=1.0');
114
  //->appendName('description', '')
115
  //->appendName('author', '{AUTHOR}')
116
  //->appendName('keywords', '{KEYWORDS}')
117
  //->appendName('copyright', '{COPYRIGHT}')
118
  //->appendName('google-signin-client_id', '{GOOGLE_CLIENT_ID');
119
  ?>
3252 stevensc 120
  <meta id="share">
1 www 121
  <link rel="stylesheet" type="text/css" href="<?php echo $this->basePath('css/animate.css') ?>">
122
  <link rel="stylesheet" type="text/css" href="<?php echo $this->basePath('css/bootstrap.min.css') ?>">
123
  <link rel="stylesheet" type="text/css" href="<?php echo $this->basePath('css/line-awesome.css') ?>">
124
  <link rel="stylesheet" type="text/css" href="<?php echo $this->basePath('css/line-awesome-font-awesome.min.css') ?>">
125
 
126
  <link rel="stylesheet" type="text/css" href="<?php echo $this->basePath('vendors/fontawesome-free/css/all.min.css') ?>">
127
  <link rel="stylesheet" type="text/css" href="<?php echo $this->basePath('vendors/font-awesome/css/font-awesome.min.css') ?>">
128
  <!--
129
 
130
    	<link rel="stylesheet" type="text/css" href="<?php echo $this->basePath('css/font-awesome.min.css') ?>">
131
    	<link rel="stylesheet" type="text/css" href="<?php echo $this->basePath('vendors/font-awesome/font-awesome.min.css') ?>">
132
    	-->
133
 
134
 
135
  <link rel="stylesheet" type="text/css" href="<?php echo $this->basePath('lib/slick/slick.css') ?>">
136
  <link rel="stylesheet" type="text/css" href="<?php echo $this->basePath('lib/slick/slick-theme.css') ?>">
137
 
138
 
139
  <link rel="stylesheet" type="text/css" href="<?php echo $this->basePath('css/responsive.css') ?>" />
140
  <link rel="stylesheet" type="text/css" href="<?php echo $this->basePath('css/responsive-cesa.css') ?>" />
2535 stevensc 141
 
1 www 142
  <link rel="stylesheet" type="text/css" href="<?php echo $this->basePath('css/jquery.mCustomScrollbar.min.css') ?>" />
2535 stevensc 143
 
1 www 144
  <link rel="stylesheet" type="text/css" href="<?php echo $this->basePath('vendors/nprogress/nprogress.css') ?>">
2535 stevensc 145
 
1 www 146
  <?php if ($currentUser->hasIdentity()) : ?>
2535 stevensc 147
 
1 www 148
    <link rel="stylesheet" type="text/css" href="<?php echo $this->basePath('css/icons.css') ?>" />
149
    <link rel="stylesheet" type="text/css" href="<?php echo $this->basePath('vendors/smiley/assets/sprites/emojione.sprites.css') ?>" />
150
    <link rel="stylesheet" type="text/css" href="<?php echo $this->basePath('vendors/uploader/jquery.ui.plupload/css/jquery-ui.css') ?>" />
151
    <link rel="stylesheet" type="text/css" href="<?php echo $this->basePath('vendors/uploader/jquery.ui.plupload/css/jquery.ui.plupload.css') ?>" />
3594 stevensc 152
    <link rel="stylesheet" type="text/css" href="<?php echo $this->basePath('look-and-field/chat.css') ?>" />
3508 stevensc 153
    <link rel="stylesheet" type="text/css" href="<?php echo $this->basePath('look-and-field/style-cesa.css') ?>" />
3479 stevensc 154
    <link rel="stylesheet" type="text/css" href="<?php echo $this->basePath('look-and-field/main.css') ?>" />
3623 stevensc 155
    <link rel="stylesheet" type="text/css" href="<?php echo $this->basePath('look-and-field/dashboard.css') ?>" />
3491 stevensc 156
    <link rel="stylesheet" type="text/css" href="<?php echo $this->basePath('look-and-field/navbar.css') ?>" />
3607 stevensc 157
    <style>
158
      :root {
159
        --bg-color: #fff;
160
        --body-bg-color: #f2f2f2;
161
        --bg-color-secondary: #D9D9D9;
162
        --font-color: #16283c;
163
        --font-color-hover: #1d315c;
164
        --title-color: #000;
165
        --subtitle-color: #626d7a;
166
        --icons-color: #666666;
167
        --button-bg: #16283c;
168
        --button-bg-hover: #1d315c;
169
        --button-text-color: #fff;
170
        --button-bg-secondary: #0000;
171
        --button-bg-secondary-hover: #909090;
172
        --button-text-color-secondary: #000;
173
        --button-bg-tertiary: #f4f4f4;
174
        --button-text-color-tertiary: #909090;
175
        --border-primary: #e8e8e8;
176
        --border-trasnparent: #0000;
177
        --chat-received: #fff;
178
        --chat-send: #d8f1e4;
179
        --chat-color: #626d7a;
180
 
181
        --dark-blue: #01245d;
182
        --primary-green: #1eb89e;
183
        --light-font: #bebebe;
184
        --light-gray: #bebebe;
185
        --dark-white: #e7e7e7;
186
        --gray: #909090;
187
        --primary-lightblue: #0961bf;
188
        --primary-lightblue-hover: #1e5591;
189
        --yellow-highlight: #ecec0e;
190
        --yellow-darker: #decd00;
191
        --background-gray: #f5f5f7;
192
        --danger: #e20808;
193
        --danger-hover: #a10707;
194
        --shadow-gray: rgb(0 0 0 / 5%);
195
        --online-green: #42b72a;
196
        --blue: #0860bf;
197
        --border-gray: #e8e8e8;
198
        --border-gray-primary: #b3b3b3;
199
        --white: #ffffff;
200
        --black: #000000;
201
        --dark-blue-pr: #16283c;
202
 
203
        --white-backdrop: rgba(255, 255, 255, 0.4);
204
        --grayline-border: 1px solid #e5e5e5;
205
        --border-radius: 10px;
206
        --light-shadow: 0px 0px 11px 0px rgb(0 0 0 /10%);
207
        --shadow: 0px 4px 14px -2px rgb(0 0 0 / 12%);
208
      }
209
    </style>
1 www 210
  <?php endif; ?>
211
 
212
  <?php
213
  echo $this->headStyle();
214
  echo $this->headLink();
215
  echo $this->headScript();
216
  ?>
217
 
218
</head>
219
 
220
<body>
221
 
222
 
223
  <div class="wrapper">
224
    <?php echo $this->menuHelper($currentUser->getUserId()) ?>
2535 stevensc 225
 
791 stevensc 226
    <div id="app" style="min-height: 80vh">
1 www 227
      <?php echo $this->content ?>
228
    </div>
229
 
230
    <?php if ($currentUser->hasIdentity()) {
231
      $user = $currentUser->getUser();
232
      echo $this->chatHelper($user->id);
233
    }
234
    ?>
235
 
2535 stevensc 236
    <footer>
2646 stevensc 237
      <div class="footy-sec mn">
3432 stevensc 238
        <div class="container position-relative">
2535 stevensc 239
          <?php echo $this->footerHelper() ?>
240
          <p><img src="<?php echo $this->basePath('images/copy-icon2.png') ?>" alt="">Copyright <?php echo date('Y') ?></p>
241
          <img class="fl-rgt" src="<?php echo $this->basePath('/images/logo-ll34x34.png') ?>" alt="">
242
        </div>
243
      </div>
244
    </footer>
245
 
1 www 246
  </div>
711 steven 247
  <?php if ($currentUser->hasIdentity()) : ?>
668 steven 248
    <script type="text/javascript" src="<?php echo $this->basePath('vendors/smiley/smiley.js') ?>"></script>
1 www 249
    <script type="text/javascript" src="<?php echo $this->basePath('vendors/smiley/js/emojione.min.js') ?>"></script>
668 steven 250
  <?php endif; ?>
1 www 251
 
252
  <?php
253
  echo $this->inlineScript();
254
  ?>
255
</body>
256
 
257
</html>