| 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",
|
| 5848 |
efrain |
37 |
moodle_name: "$moodle_name",
|
|
|
38 |
moodle_image: "$moodle_image",
|
|
|
39 |
microlearning_appstore: "$microlearning_appstore",
|
|
|
40 |
microlearning_playstore: "$microlearning_playstore",
|
| 1 |
www |
41 |
}
|
| 5104 |
stevensc |
42 |
|
|
|
43 |
const LABELS = {
|
|
|
44 |
MY_GROUPS: 'LABEL_MY_GROUPS',
|
|
|
45 |
GROUPS: 'LABEL_GROUPS',
|
|
|
46 |
WHAT_ARE_YOU_THINKING: 'LABEL_WHAT_ARE_YOU_THINKING',
|
|
|
47 |
GROUP_VIEW: 'LABEL_GROUP_VIEW',
|
|
|
48 |
VIEW_MORE: 'LABEL_VIEW_MORE',
|
|
|
49 |
VIEW_LESS: 'LABEL_VIEW_LESS',
|
| 5107 |
stevensc |
50 |
WHO_HAS_SEEN_MY_PROFILE: 'LABEL_WHO_HAS_SEEN_MY_PROFILE',
|
| 5104 |
stevensc |
51 |
CONNECT_WITH: 'LABEL_CONNECT_WITH',
|
|
|
52 |
POSTS: 'LABEL_POSTS',
|
|
|
53 |
DATATABLE_EMPTY: 'LABEL_DATATABLE_EMPTY',
|
|
|
54 |
CONNECT: 'LABEL_CONNECT',
|
|
|
55 |
CANCEL: 'LABEL_CANCEL',
|
|
|
56 |
NOT_AVAILABLE_POSTS: 'LABEL_NOT_AVAILABLE_POSTS',
|
| 5106 |
stevensc |
57 |
MICRO_LEARNING: 'LABEL_MICRO_LEARNING',
|
|
|
58 |
NOT_AVAILABLE_FEEDS: 'LABEL_NOT_AVAILABLE_FEEDS',
|
|
|
59 |
SEND: 'LABEL_SEND',
|
|
|
60 |
SHARE_A_POST: 'LABEL_SHARE_A_POST',
|
|
|
61 |
SHARE_WITH: 'LABEL_SHARE_WITH',
|
|
|
62 |
CONNECTIONS: 'LABEL_CONNECTIONS',
|
| 5107 |
stevensc |
63 |
PUBLIC: 'LABEL_PUBLIC',
|
|
|
64 |
SUGGEST_GROUPS: 'LABEL_SUGGEST_GROUPS',
|
|
|
65 |
VIEW_RECOMMENDATIONS: 'LABEL_VIEW_RECOMMENDATIONS',
|
|
|
66 |
IMAGE: 'LABEL_IMAGE',
|
|
|
67 |
DOCUMENT: 'LABEL_DOCUMENT',
|
|
|
68 |
AUDIO: 'LABEL_AUDIO',
|
|
|
69 |
VIDEO: 'LABEL_VIDEO',
|
| 5109 |
stevensc |
70 |
WRITE_A_POST: 'LABEL_WRITE_A_POST',
|
|
|
71 |
DELETE: 'LABEL_DELETE',
|
| 5115 |
stevensc |
72 |
DOWNLOAD: 'LABEL_DOWNLOAD',
|
|
|
73 |
READ_MORE: 'LABEL_READ_MORE',
|
|
|
74 |
READ_LESS: 'LABEL_READ_LESS',
|
|
|
75 |
LIKE: 'LABEL_LIKE',
|
|
|
76 |
COMMENT: 'LABEL_COMMENT',
|
|
|
77 |
SHARE: 'LABEL_SHARE',
|
| 5267 |
stevensc |
78 |
SHARED: 'LABEL_SHARED',
|
| 5115 |
stevensc |
79 |
COMMENTS: 'LABEL_COMMENTS',
|
|
|
80 |
SENDS: 'LABEL_SENDS',
|
| 5279 |
stevensc |
81 |
WRITE_A_COMMENT: 'LABEL_WRITE_A_COMMENT',
|
| 5899 |
stevensc |
82 |
MICRO_LEARNING: 'LABEL_MICRO_LEARNING',
|
| 5900 |
stevensc |
83 |
WRITE: 'LABEL_WRITE',
|
| 5104 |
stevensc |
84 |
}
|
|
|
85 |
|
| 5751 |
efrain |
86 |
const routeTimeline = "$routeTimeline"
|
| 5205 |
efrain |
87 |
const routeDailyPulse = "$routeDailyPulse"
|
| 1 |
www |
88 |
JS;
|
| 5695 |
stevensc |
89 |
|
| 1 |
www |
90 |
$this->inlineScript()->appendScript($js);
|
| 4458 |
efrain |
91 |
|
| 5104 |
stevensc |
92 |
if ($currentNetwork->theme_id == Theme::THEME_LEADERSLINKED_LINKEDIN) {
|
| 5362 |
stevensc |
93 |
$this->headLink()->appendStylesheet('/react-bundles/dashboard/linkedin/main.css');
|
|
|
94 |
$this->inlineScript()->appendFile('/react-bundles/dashboard/linkedin/dashboardBundle.js');
|
| 4458 |
efrain |
95 |
} else {
|
| 5104 |
stevensc |
96 |
$this->headLink()->appendStylesheet('/look-and-field/dashboard.css');
|
| 5362 |
stevensc |
97 |
$this->inlineScript()->appendFile('/react-bundles/dashboard/default/dashboardBundle.js');
|
| 4458 |
efrain |
98 |
}
|
|
|
99 |
|
| 1 |
www |
100 |
?>
|
|
|
101 |
|
|
|
102 |
<div id="react-feeds" class="posts-section">
|
|
|
103 |
<div class="process-comm" id="paginator-process-comm">
|
|
|
104 |
<div class="spinner">
|
|
|
105 |
<div class="bounce1"></div>
|
|
|
106 |
<div class="bounce2"></div>
|
|
|
107 |
<div class="bounce3"></div>
|
|
|
108 |
</div>
|
|
|
109 |
</div>
|
|
|
110 |
</div>
|