| 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 |
|
| 4458 |
efrain |
8 |
$currentNetworkHelper = $this->currentNetworkHelper();
|
|
|
9 |
$currentNetwork = $currentNetworkHelper->getNetwork();
|
|
|
10 |
|
|
|
11 |
|
| 1 |
www |
12 |
$routeMoodle = $this->url('moodle');
|
|
|
13 |
$emojione_image_path_png = $this->basePath('vendors/smiley/assets/png/');
|
| 4305 |
stevensc |
14 |
|
| 1 |
www |
15 |
$js = <<<JS
|
|
|
16 |
|
|
|
17 |
const backendVars={
|
|
|
18 |
image: "$image",
|
|
|
19 |
fullName: `$fullname`,
|
|
|
20 |
description: `$description`,
|
|
|
21 |
country: "$country",
|
|
|
22 |
visits: "$visits",
|
|
|
23 |
connections: "$connections",
|
| 2270 |
stevensc |
24 |
feed: "$feed"
|
| 1 |
www |
25 |
}
|
| 5104 |
stevensc |
26 |
|
|
|
27 |
const LABELS = {
|
|
|
28 |
MY_GROUPS: 'LABEL_MY_GROUPS',
|
|
|
29 |
GROUPS: 'LABEL_GROUPS',
|
|
|
30 |
WHAT_ARE_YOU_THINKING: 'LABEL_WHAT_ARE_YOU_THINKING',
|
|
|
31 |
GROUP_VIEW: 'LABEL_GROUP_VIEW',
|
|
|
32 |
VIEW_MORE: 'LABEL_VIEW_MORE',
|
|
|
33 |
VIEW_LESS: 'LABEL_VIEW_LESS',
|
|
|
34 |
CONNECT_WITH: 'LABEL_CONNECT_WITH',
|
|
|
35 |
POSTS: 'LABEL_POSTS',
|
|
|
36 |
DATATABLE_EMPTY: 'LABEL_DATATABLE_EMPTY',
|
|
|
37 |
CONNECT: 'LABEL_CONNECT',
|
|
|
38 |
CANCEL: 'LABEL_CANCEL',
|
|
|
39 |
NOT_AVAILABLE_POSTS: 'LABEL_NOT_AVAILABLE_POSTS',
|
|
|
40 |
MICRO_LEARNING: 'LABEL_MICRO_LEARNING'
|
|
|
41 |
}
|
|
|
42 |
|
| 3146 |
efrain |
43 |
const routeTimeline= "$link_timeline"
|
| 1 |
www |
44 |
JS;
|
|
|
45 |
$this->inlineScript()->appendScript($js);
|
| 4458 |
efrain |
46 |
|
| 5104 |
stevensc |
47 |
if ($currentNetwork->theme_id == Theme::THEME_LEADERSLINKED_LINKEDIN) {
|
|
|
48 |
$this->headLink()->appendStylesheet('/react-bundles/templates/linkedin/dashboard/main.css');
|
|
|
49 |
$this->inlineScript()->appendFile('/react-bundles/templates/linkedin/dashboard/dashboardBundle.js');
|
| 4458 |
efrain |
50 |
} else {
|
| 5104 |
stevensc |
51 |
$this->headLink()->appendStylesheet('/look-and-field/dashboard.css');
|
|
|
52 |
$this->inlineScript()->appendFile('/react-bundles/dashboard/dashboardBundle.js');
|
| 4458 |
efrain |
53 |
}
|
|
|
54 |
|
| 1 |
www |
55 |
?>
|
|
|
56 |
|
|
|
57 |
<div id="react-feeds" class="posts-section">
|
|
|
58 |
<div class="process-comm" id="paginator-process-comm">
|
|
|
59 |
<div class="spinner">
|
|
|
60 |
<div class="bounce1"></div>
|
|
|
61 |
<div class="bounce2"></div>
|
|
|
62 |
<div class="bounce3"></div>
|
|
|
63 |
</div>
|
|
|
64 |
</div>
|
|
|
65 |
</div>
|