1 |
www |
1 |
<?php
|
5363 |
stevensc |
2 |
|
4494 |
stevensc |
3 |
use LeadersLinked\Model\Theme;
|
|
|
4 |
|
1 |
www |
5 |
$routeTimeline = $this->url('feed/timeline', ['id' => $group_uuid, 'type' => 'group']);
|
4494 |
stevensc |
6 |
|
|
|
7 |
$currentNetworkHelper = $this->currentNetworkHelper();
|
|
|
8 |
$currentNetwork = $currentNetworkHelper->getNetwork();
|
|
|
9 |
|
1 |
www |
10 |
$js = <<<JS
|
|
|
11 |
const backendVars = {
|
|
|
12 |
user_id: "$user_id",
|
|
|
13 |
totalMembers: "$total_members",
|
|
|
14 |
accessibility: "$accessibility",
|
|
|
15 |
privacy: "$privacy",
|
|
|
16 |
industry: "$industry",
|
5795 |
stevensc |
17 |
groupId: "$group_uuid",
|
1 |
www |
18 |
groupType: "$group_type",
|
|
|
19 |
groupUuid: "$group_uuid",
|
|
|
20 |
name: "$name",
|
|
|
21 |
image: "$image",
|
|
|
22 |
cover: "$cover",
|
|
|
23 |
overview: "$overview",
|
|
|
24 |
website: "$website",
|
|
|
25 |
routeTimeline: "$routeTimeline",
|
4632 |
efrain |
26 |
linkInmail: "$link_inmail",
|
|
|
27 |
owner_first_name: "$owner_first_name",
|
|
|
28 |
owner_last_name: "$owner_last_name",
|
|
|
29 |
owner_image: "$owner_image",
|
1 |
www |
30 |
}
|
5365 |
stevensc |
31 |
const LABELS = {
|
5795 |
stevensc |
32 |
MY_GROUPS: 'LABEL_MY_GROUPS',
|
|
|
33 |
GROUPS: 'LABEL_GROUPS',
|
|
|
34 |
WHAT_ARE_YOU_THINKING: 'LABEL_WHAT_ARE_YOU_THINKING',
|
|
|
35 |
GROUP_VIEW: 'LABEL_GROUP_VIEW',
|
|
|
36 |
VIEW_MORE: 'LABEL_VIEW_MORE',
|
|
|
37 |
VIEW_LESS: 'LABEL_VIEW_LESS',
|
|
|
38 |
WHO_HAS_SEEN_MY_PROFILE: 'LABEL_WHO_HAS_SEEN_MY_PROFILE',
|
|
|
39 |
CONNECT_WITH: 'LABEL_CONNECT_WITH',
|
|
|
40 |
POSTS: 'LABEL_POSTS',
|
|
|
41 |
DATATABLE_EMPTY: 'LABEL_DATATABLE_EMPTY',
|
|
|
42 |
CONNECT: 'LABEL_CONNECT',
|
|
|
43 |
CANCEL: 'LABEL_CANCEL',
|
|
|
44 |
NOT_AVAILABLE_POSTS: 'LABEL_NOT_AVAILABLE_POSTS',
|
|
|
45 |
MICRO_LEARNING: 'LABEL_MICRO_LEARNING',
|
|
|
46 |
NOT_AVAILABLE_FEEDS: 'LABEL_NOT_AVAILABLE_FEEDS',
|
|
|
47 |
SEND: 'LABEL_SEND',
|
|
|
48 |
SHARE_A_POST: 'LABEL_SHARE_A_POST',
|
|
|
49 |
SHARE_WITH: 'LABEL_SHARE_WITH',
|
|
|
50 |
CONNECTIONS: 'LABEL_CONNECTIONS',
|
|
|
51 |
PUBLIC: 'LABEL_PUBLIC',
|
|
|
52 |
SUGGEST_GROUPS: 'LABEL_SUGGEST_GROUPS',
|
|
|
53 |
VIEW_RECOMMENDATIONS: 'LABEL_VIEW_RECOMMENDATIONS',
|
|
|
54 |
IMAGE: 'LABEL_IMAGE',
|
|
|
55 |
DOCUMENT: 'LABEL_DOCUMENT',
|
|
|
56 |
AUDIO: 'LABEL_AUDIO',
|
|
|
57 |
VIDEO: 'LABEL_VIDEO',
|
|
|
58 |
WRITE_A_POST: 'LABEL_WRITE_A_POST',
|
|
|
59 |
DELETE: 'LABEL_DELETE',
|
|
|
60 |
DOWNLOAD: 'LABEL_DOWNLOAD',
|
|
|
61 |
READ_MORE: 'LABEL_READ_MORE',
|
|
|
62 |
READ_LESS: 'LABEL_READ_LESS',
|
|
|
63 |
LIKE: 'LABEL_LIKE',
|
|
|
64 |
COMMENT: 'LABEL_COMMENT',
|
|
|
65 |
SHARE: 'LABEL_SHARE',
|
|
|
66 |
SHARED: 'LABEL_SHARED',
|
|
|
67 |
COMMENTS: 'LABEL_COMMENTS',
|
|
|
68 |
SENDS: 'LABEL_SENDS',
|
|
|
69 |
WRITE_A_COMMENT: 'LABEL_WRITE_A_COMMENT',
|
|
|
70 |
MICRO_LEARNING: 'LABEL_MICRO_LEARNING',
|
|
|
71 |
}
|
1 |
www |
72 |
JS;
|
3542 |
stevensc |
73 |
|
1 |
www |
74 |
$this->inlineScript()->appendScript($js);
|
4494 |
stevensc |
75 |
|
|
|
76 |
if ($currentNetwork->theme_id == Theme::THEME_LEADERSLINKED_LINKEDIN) {
|
5363 |
stevensc |
77 |
$this->headLink()->appendStylesheet('/react-bundles/dashboard/linkedin/main.css');
|
4494 |
stevensc |
78 |
$this->headLink()->appendStylesheet('/react-bundles/group/groupView/main.css');
|
|
|
79 |
$this->inlineScript()->appendFile('/react-bundles/group/groupView/linkedinGroupView.js');
|
|
|
80 |
} else {
|
5793 |
stevensc |
81 |
$this->headLink()->appendStylesheet('/look-and-field/group.css');
|
4494 |
stevensc |
82 |
$this->inlineScript()->appendFile('/react-bundles/group/groupView/groupView.js');
|
|
|
83 |
}
|
1 |
www |
84 |
?>
|
|
|
85 |
|
|
|
86 |
<div id="react_group_view">
|
|
|
87 |
<div class="process-comm" id="paginator-process-comm">
|
|
|
88 |
<div class="spinner">
|
|
|
89 |
<div class="bounce1"></div>
|
|
|
90 |
<div class="bounce2"></div>
|
|
|
91 |
<div class="bounce3"></div>
|
|
|
92 |
</div>
|
|
|
93 |
</div>
|
4494 |
stevensc |
94 |
</div>
|