Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

Rev 3731 | Rev 3996 | 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>
3712 efrain 103
		<?php
104
        echo $this->headTitle();
105
        ?>
106
        <link rel="icon" href="<?php echo $this->networkFavicoHelper(); ?>">
107
        <?php
1 www 108
  echo $this->headMeta()->appendHttpEquiv('X-UA-Compatible', 'IE=edge')
109
    ->appendHttpEquiv('expires', '0')
110
    ->appendHttpEquiv('expires', 'Tue, 01 Jan 1980 1:00:00 GMT')
111
    ->appendHttpEquiv('pragma', 'no-cache')
112
    ->appendHttpEquiv('Cache-Control', 'no-store')
113
    ->appendHttpEquiv('Cache-Control', 'max-age=0')
114
    ->appendHttpEquiv('Cache-Control', 'no-cache')
115
    ->appendHttpEquiv('charset', 'UTF-8')
116
    ->appendName('viewport', 'width=device-width, initial-scale=1.0');
117
  //->appendName('description', '')
118
  //->appendName('author', '{AUTHOR}')
119
  //->appendName('keywords', '{KEYWORDS}')
120
  //->appendName('copyright', '{COPYRIGHT}')
121
  //->appendName('google-signin-client_id', '{GOOGLE_CLIENT_ID');
122
  ?>
3252 stevensc 123
  <meta id="share">
1 www 124
  <link rel="stylesheet" type="text/css" href="<?php echo $this->basePath('css/animate.css') ?>">
125
  <link rel="stylesheet" type="text/css" href="<?php echo $this->basePath('css/bootstrap.min.css') ?>">
126
  <link rel="stylesheet" type="text/css" href="<?php echo $this->basePath('css/line-awesome.css') ?>">
127
  <link rel="stylesheet" type="text/css" href="<?php echo $this->basePath('css/line-awesome-font-awesome.min.css') ?>">
128
 
129
  <link rel="stylesheet" type="text/css" href="<?php echo $this->basePath('vendors/fontawesome-free/css/all.min.css') ?>">
130
  <link rel="stylesheet" type="text/css" href="<?php echo $this->basePath('vendors/font-awesome/css/font-awesome.min.css') ?>">
131
  <!--
132
 
133
    	<link rel="stylesheet" type="text/css" href="<?php echo $this->basePath('css/font-awesome.min.css') ?>">
134
    	<link rel="stylesheet" type="text/css" href="<?php echo $this->basePath('vendors/font-awesome/font-awesome.min.css') ?>">
135
    	-->
136
 
137
 
138
  <link rel="stylesheet" type="text/css" href="<?php echo $this->basePath('lib/slick/slick.css') ?>">
139
  <link rel="stylesheet" type="text/css" href="<?php echo $this->basePath('lib/slick/slick-theme.css') ?>">
140
 
141
 
142
  <link rel="stylesheet" type="text/css" href="<?php echo $this->basePath('css/responsive.css') ?>" />
143
  <link rel="stylesheet" type="text/css" href="<?php echo $this->basePath('css/responsive-cesa.css') ?>" />
2535 stevensc 144
 
1 www 145
  <link rel="stylesheet" type="text/css" href="<?php echo $this->basePath('css/jquery.mCustomScrollbar.min.css') ?>" />
2535 stevensc 146
 
1 www 147
  <link rel="stylesheet" type="text/css" href="<?php echo $this->basePath('vendors/nprogress/nprogress.css') ?>">
2535 stevensc 148
 
1 www 149
  <?php if ($currentUser->hasIdentity()) : ?>
2535 stevensc 150
 
1 www 151
    <link rel="stylesheet" type="text/css" href="<?php echo $this->basePath('css/icons.css') ?>" />
152
    <link rel="stylesheet" type="text/css" href="<?php echo $this->basePath('vendors/smiley/assets/sprites/emojione.sprites.css') ?>" />
153
    <link rel="stylesheet" type="text/css" href="<?php echo $this->basePath('vendors/uploader/jquery.ui.plupload/css/jquery-ui.css') ?>" />
154
    <link rel="stylesheet" type="text/css" href="<?php echo $this->basePath('vendors/uploader/jquery.ui.plupload/css/jquery.ui.plupload.css') ?>" />
3594 stevensc 155
    <link rel="stylesheet" type="text/css" href="<?php echo $this->basePath('look-and-field/chat.css') ?>" />
3508 stevensc 156
    <link rel="stylesheet" type="text/css" href="<?php echo $this->basePath('look-and-field/style-cesa.css') ?>" />
3479 stevensc 157
    <link rel="stylesheet" type="text/css" href="<?php echo $this->basePath('look-and-field/main.css') ?>" />
3623 stevensc 158
    <link rel="stylesheet" type="text/css" href="<?php echo $this->basePath('look-and-field/dashboard.css') ?>" />
3491 stevensc 159
    <link rel="stylesheet" type="text/css" href="<?php echo $this->basePath('look-and-field/navbar.css') ?>" />
3639 efrain 160
 
1 www 161
  <?php endif; ?>
162
 
163
  <?php
164
  echo $this->headStyle();
3639 efrain 165
  echo $this->networkStylesAndColorsHelper();
1 www 166
  echo $this->headLink();
167
  echo $this->headScript();
168
  ?>
169
 
170
</head>
171
 
172
<body>
173
 
174
 
175
  <div class="wrapper">
176
    <?php echo $this->menuHelper($currentUser->getUserId()) ?>
2535 stevensc 177
 
791 stevensc 178
    <div id="app" style="min-height: 80vh">
1 www 179
      <?php echo $this->content ?>
180
    </div>
181
 
3639 efrain 182
    <?php if ($currentUser->hasIdentity() && !$currentUser->hasImpersonate()) {
1 www 183
      $user = $currentUser->getUser();
184
      echo $this->chatHelper($user->id);
185
    }
186
    ?>
187
 
2535 stevensc 188
    <footer>
2646 stevensc 189
      <div class="footy-sec mn">
3432 stevensc 190
        <div class="container position-relative">
2535 stevensc 191
          <?php echo $this->footerHelper() ?>
192
          <p><img src="<?php echo $this->basePath('images/copy-icon2.png') ?>" alt="">Copyright <?php echo date('Y') ?></p>
3777 stevensc 193
          <img class="fl-rgt" src="<?php echo $this->basePath('/images/LL-08.png') ?>" alt="">
2535 stevensc 194
        </div>
195
      </div>
196
    </footer>
197
 
1 www 198
  </div>
711 steven 199
  <?php if ($currentUser->hasIdentity()) : ?>
668 steven 200
    <script type="text/javascript" src="<?php echo $this->basePath('vendors/smiley/smiley.js') ?>"></script>
1 www 201
    <script type="text/javascript" src="<?php echo $this->basePath('vendors/smiley/js/emojione.min.js') ?>"></script>
668 steven 202
  <?php endif; ?>
3731 efrain 203
 
204
  	<script type="text/javascript" src="<?php echo $this->basePath('vendors/jquery/jquery.min.js') ?>"></script>
205
        <!-- Bootstrap 4 -->
206
		<script type="text/javascript" src="<?php echo $this->basePath('vendors/bootstrap/js/bootstrap.bundle.min.js') ?>"></script>
207
    	<!--  Aplicacion -->
208
    	<script type="text/javascript" src="<?php echo $this->basePath('vendors/bootstrap-notify/bootstrap-notify.min.js') ?>"></script>
1 www 209
 
3731 efrain 210
    	<script type="text/javascript" src="<?php echo $this->basePath('js/app.js') ?>"></script>
211
 
212
 
1 www 213
  <?php
214
  echo $this->inlineScript();
215
  ?>
216
</body>
217
 
218
</html>