Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

Rev 4457 | Rev 4471 | 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;
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
 
36
$currentUser    = $this->currentUserHelper();
640 steven 37
// if ($currentUser->hasIdentity()) {
38
//   $this->inlineScript()->captureStart();
39
//   echo <<<EOT
40
//     jQuery( document ).ready(function( $ ) {
41
//         $.fn.checkSession = function() {
42
//             $.ajax({
43
//                 'dataType'  : 'json',
44
//                 'accept'    : 'application/json',
45
//                 'method'    : 'get',
46
//                 'url'       : '$routeCheckSession',
47
//             }).done(function(response) {
48
//                 if(response['success']) {
49
//                     if(parseInt(response['data']['total_messages']) > 0) {
50
//                         $('#badge-inmail').html(response['data']['total_messages']);
51
//                         $('#badge-inmail').show();
52
//                     } else {
53
//                         $('#badge-inmail').hide();
54
//                     }
1 www 55
 
640 steven 56
//                     if(parseInt(response['data']['total_messages']) > 0) {
57
//                         $('#badge-message').html(response['data']['total_messages']);
58
//                         $('#badge-message').show();
59
//                     } else {
60
//                         $('#badge-message').hide();
61
//                     }
2535 stevensc 62
 
640 steven 63
//                     if(parseInt(response['data']['total_notifications']) > 0) {
64
//                         $('#badge-notification').html(response['data']['total_notifications']);
65
//                         $('#badge-notification').show();
66
//                     } else {
67
//                         $('#badge-notification').hide();
68
//                     }
2535 stevensc 69
 
70
 
640 steven 71
//     		    } else {
72
//                     if(response['data']['url']) {
73
//                         window.location.href = response['data']['url'];
74
//                     } else {
75
//                         $.fn.showError(response['data']['message'])
76
//                     }
77
//                 }
78
//             }).fail(function( jqXHR, textStatus, errorThrown) {
79
//             }).always(function() {
2535 stevensc 80
 
640 steven 81
//                 setTimeout(function() {
82
//                     $.fn.checkSession();
83
//                 }, 3000);
84
//             })
2535 stevensc 85
 
640 steven 86
//         }
2535 stevensc 87
 
640 steven 88
//         setTimeout(function() {
89
//             $.fn.checkSession();
90
//         }, 3000);
2535 stevensc 91
 
640 steven 92
//     });
93
// EOT;
94
//   $this->inlineScript()->captureEnd();
95
// }
1 www 96
$acl = $this->viewModel()->getRoot()->getVariable('acl');
97
 
98
?>
99
 
100
<!DOCTYPE html>
101
<html>
102
 
103
<head>
4198 stevensc 104
  <?php
105
  echo $this->headTitle();
106
  ?>
107
  <link rel="icon" href="<?php echo $this->networkFavicoHelper(); ?>">
108
  <?php
1 www 109
  echo $this->headMeta()->appendHttpEquiv('X-UA-Compatible', 'IE=edge')
110
    ->appendHttpEquiv('expires', '0')
111
    ->appendHttpEquiv('expires', 'Tue, 01 Jan 1980 1:00:00 GMT')
112
    ->appendHttpEquiv('pragma', 'no-cache')
113
    ->appendHttpEquiv('Cache-Control', 'no-store')
114
    ->appendHttpEquiv('Cache-Control', 'max-age=0')
115
    ->appendHttpEquiv('Cache-Control', 'no-cache')
116
    ->appendHttpEquiv('charset', 'UTF-8')
117
    ->appendName('viewport', 'width=device-width, initial-scale=1.0');
118
  //->appendName('description', '')
119
  //->appendName('author', '{AUTHOR}')
120
  //->appendName('keywords', '{KEYWORDS}')
121
  //->appendName('copyright', '{COPYRIGHT}')
122
  //->appendName('google-signin-client_id', '{GOOGLE_CLIENT_ID');
123
  ?>
3252 stevensc 124
  <meta id="share">
1 www 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
  <link rel="stylesheet" type="text/css" href="<?php echo $this->basePath('css/jquery.mCustomScrollbar.min.css') ?>" />
2535 stevensc 138
 
1 www 139
  <link rel="stylesheet" type="text/css" href="<?php echo $this->basePath('vendors/nprogress/nprogress.css') ?>">
2535 stevensc 140
 
1 www 141
  <?php if ($currentUser->hasIdentity()) : ?>
2535 stevensc 142
 
1 www 143
    <link rel="stylesheet" type="text/css" href="<?php echo $this->basePath('css/icons.css') ?>" />
144
    <link rel="stylesheet" type="text/css" href="<?php echo $this->basePath('vendors/smiley/assets/sprites/emojione.sprites.css') ?>" />
4236 stevensc 145
    <link rel="stylesheet" type="text/css" href="<?php echo $this->basePath('lib/slick/slick.css') ?>">
4246 stevensc 146
    <link rel="stylesheet" type="text/css" href="<?php echo $this->basePath('lib/slick/slick-theme.css') ?>">
3594 stevensc 147
    <link rel="stylesheet" type="text/css" href="<?php echo $this->basePath('look-and-field/chat.css') ?>" />
3508 stevensc 148
    <link rel="stylesheet" type="text/css" href="<?php echo $this->basePath('look-and-field/style-cesa.css') ?>" />
3479 stevensc 149
    <link rel="stylesheet" type="text/css" href="<?php echo $this->basePath('look-and-field/main.css') ?>" />
3491 stevensc 150
    <link rel="stylesheet" type="text/css" href="<?php echo $this->basePath('look-and-field/navbar.css') ?>" />
4123 stevensc 151
    <link rel="stylesheet" type="text/css" href="<?php echo $this->basePath('react-bundles/chat/main.css') ?>" />
4199 stevensc 152
    <link rel="stylesheet" type="text/css" href="<?php echo $this->basePath('look-and-field/dashboard.css') ?>" />
4246 stevensc 153
 
4470 stevensc 154
    <?php if ($currentNetwork->theme_id == Theme::THEME_LEADERSLINKED_LINKEDIN) : ?>
155
       <link rel="stylesheet" type="text/css" href="<?php echo $this->basePath('react-bundles/templates/linkedin/main.css') ?>"
156
    <?php endif; ?>
157
 
1 www 158
  <?php endif; ?>
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
 
171
 
172
  <div class="wrapper">
173
    <?php echo $this->menuHelper($currentUser->getUserId()) ?>
2535 stevensc 174
 
791 stevensc 175
    <div id="app" style="min-height: 80vh">
1 www 176
      <?php echo $this->content ?>
177
    </div>
178
 
3639 efrain 179
    <?php if ($currentUser->hasIdentity() && !$currentUser->hasImpersonate()) {
1 www 180
      $user = $currentUser->getUser();
181
      echo $this->chatHelper($user->id);
182
    }
183
    ?>
184
 
2535 stevensc 185
    <footer>
2646 stevensc 186
      <div class="footy-sec mn">
3432 stevensc 187
        <div class="container position-relative">
2535 stevensc 188
          <?php echo $this->footerHelper() ?>
189
          <p><img src="<?php echo $this->basePath('images/copy-icon2.png') ?>" alt="">Copyright <?php echo date('Y') ?></p>
3777 stevensc 190
          <img class="fl-rgt" src="<?php echo $this->basePath('/images/LL-08.png') ?>" alt="">
2535 stevensc 191
        </div>
192
      </div>
193
    </footer>
194
 
1 www 195
  </div>
711 steven 196
  <?php if ($currentUser->hasIdentity()) : ?>
668 steven 197
    <script type="text/javascript" src="<?php echo $this->basePath('vendors/smiley/smiley.js') ?>"></script>
1 www 198
    <script type="text/javascript" src="<?php echo $this->basePath('vendors/smiley/js/emojione.min.js') ?>"></script>
668 steven 199
  <?php endif; ?>
1 www 200
 
4198 stevensc 201
  <script type="text/javascript" src="<?php echo $this->basePath('vendors/jquery/jquery.min.js') ?>"></script>
202
  <!-- Bootstrap 4 -->
203
  <script type="text/javascript" src="<?php echo $this->basePath('vendors/bootstrap/js/bootstrap.bundle.min.js') ?>"></script>
204
  <!--  Aplicacion -->
205
  <script type="text/javascript" src="<?php echo $this->basePath('vendors/bootstrap-notify/bootstrap-notify.min.js') ?>"></script>
3731 efrain 206
 
4198 stevensc 207
  <script type="text/javascript" src="<?php echo $this->basePath('js/app.js') ?>"></script>
208
 
209
 
1 www 210
  <?php
211
  echo $this->inlineScript();
212
  ?>
213
</body>
214
 
215
</html>