Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

Rev 5695 | Rev 5848 | 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
5104 stevensc 2
 
4458 efrain 3
use LeadersLinked\Model\Theme;
1 www 4
 
4458 efrain 5
$currentUserHelper = $this->currentUserHelper();
6
$currentUser = $currentUserHelper->getUser();
2270 stevensc 7
 
5205 efrain 8
$acl            = $this->viewModel()->getRoot()->getVariable('acl');
9
$roleName = $currentUser->usertype_id;
10
 
11
$allowDailyPulse    = $acl->isAllowed($roleName, 'daily-pulse') ? 1 : 0;
5267 stevensc 12
if ($allowDailyPulse) {
13
  $routeDailyPulse = $this->url('daily-pulse');
5205 efrain 14
} else {
5267 stevensc 15
  $routeDailyPulse = '';
5205 efrain 16
}
17
 
18
 
19
 
4458 efrain 20
$currentNetworkHelper = $this->currentNetworkHelper();
21
$currentNetwork = $currentNetworkHelper->getNetwork();
22
 
23
 
1 www 24
$routeMoodle = $this->url('moodle');
25
$emojione_image_path_png  = $this->basePath('vendors/smiley/assets/png/');
4305 stevensc 26
 
1 www 27
$js = <<<JS
28
 
29
const backendVars={
5541 anderson 30
  image: "$image",
31
  fullName: `$fullname`,
32
  description: `$description`,
33
  country: "$country",
34
  visits: "$visits",
35
  connections: "$connections",
5543 anderson 36
  feed: "$feed",
1 www 37
}
5104 stevensc 38
 
39
const LABELS = {
40
  MY_GROUPS: 'LABEL_MY_GROUPS',
41
  GROUPS: 'LABEL_GROUPS',
42
  WHAT_ARE_YOU_THINKING: 'LABEL_WHAT_ARE_YOU_THINKING',
43
  GROUP_VIEW: 'LABEL_GROUP_VIEW',
44
  VIEW_MORE: 'LABEL_VIEW_MORE',
45
  VIEW_LESS: 'LABEL_VIEW_LESS',
5107 stevensc 46
  WHO_HAS_SEEN_MY_PROFILE: 'LABEL_WHO_HAS_SEEN_MY_PROFILE',
5104 stevensc 47
  CONNECT_WITH: 'LABEL_CONNECT_WITH',
48
  POSTS: 'LABEL_POSTS',
49
  DATATABLE_EMPTY: 'LABEL_DATATABLE_EMPTY',
50
  CONNECT: 'LABEL_CONNECT',
51
  CANCEL: 'LABEL_CANCEL',
52
  NOT_AVAILABLE_POSTS: 'LABEL_NOT_AVAILABLE_POSTS',
5106 stevensc 53
  MICRO_LEARNING: 'LABEL_MICRO_LEARNING',
54
  NOT_AVAILABLE_FEEDS: 'LABEL_NOT_AVAILABLE_FEEDS',
55
  SEND: 'LABEL_SEND',
56
  SHARE_A_POST: 'LABEL_SHARE_A_POST',
57
  SHARE_WITH: 'LABEL_SHARE_WITH',
58
  CONNECTIONS: 'LABEL_CONNECTIONS',
5107 stevensc 59
  PUBLIC: 'LABEL_PUBLIC',
60
  SUGGEST_GROUPS: 'LABEL_SUGGEST_GROUPS',
61
  VIEW_RECOMMENDATIONS: 'LABEL_VIEW_RECOMMENDATIONS',
62
  IMAGE: 'LABEL_IMAGE',
63
  DOCUMENT: 'LABEL_DOCUMENT',
64
  AUDIO: 'LABEL_AUDIO',
65
  VIDEO: 'LABEL_VIDEO',
5109 stevensc 66
  WRITE_A_POST: 'LABEL_WRITE_A_POST',
67
  DELETE: 'LABEL_DELETE',
5115 stevensc 68
  DOWNLOAD: 'LABEL_DOWNLOAD',
69
  READ_MORE: 'LABEL_READ_MORE',
70
  READ_LESS: 'LABEL_READ_LESS',
71
  LIKE: 'LABEL_LIKE',
72
  COMMENT: 'LABEL_COMMENT',
73
  SHARE: 'LABEL_SHARE',
5267 stevensc 74
  SHARED: 'LABEL_SHARED',
5115 stevensc 75
  COMMENTS: 'LABEL_COMMENTS',
76
  SENDS: 'LABEL_SENDS',
5279 stevensc 77
  WRITE_A_COMMENT: 'LABEL_WRITE_A_COMMENT',
5275 stevensc 78
  MICRO_LEARNING: 'LABEL_MICRO_LEARNING'
5104 stevensc 79
}
80
 
5751 efrain 81
const routeTimeline = "$routeTimeline"
5205 efrain 82
const routeDailyPulse = "$routeDailyPulse"
1 www 83
JS;
5695 stevensc 84
 
1 www 85
$this->inlineScript()->appendScript($js);
4458 efrain 86
 
5104 stevensc 87
if ($currentNetwork->theme_id == Theme::THEME_LEADERSLINKED_LINKEDIN) {
5362 stevensc 88
  $this->headLink()->appendStylesheet('/react-bundles/dashboard/linkedin/main.css');
89
  $this->inlineScript()->appendFile('/react-bundles/dashboard/linkedin/dashboardBundle.js');
4458 efrain 90
} else {
5104 stevensc 91
  $this->headLink()->appendStylesheet('/look-and-field/dashboard.css');
5362 stevensc 92
  $this->inlineScript()->appendFile('/react-bundles/dashboard/default/dashboardBundle.js');
4458 efrain 93
}
94
 
1 www 95
?>
96
 
97
<div id="react-feeds" class="posts-section">
98
  <div class="process-comm" id="paginator-process-comm">
99
    <div class="spinner">
100
      <div class="bounce1"></div>
101
      <div class="bounce2"></div>
102
      <div class="bounce3"></div>
103
    </div>
104
  </div>
105
</div>