| 1 |
www |
1 |
<?php
|
|
|
2 |
$acl = $this->viewModel()->getRoot()->getVariable('acl');
|
|
|
3 |
$currentUser = $this->currentUserHelper();
|
|
|
4 |
$roleName = $currentUser->getUserTypeId();
|
|
|
5 |
|
|
|
6 |
$routeAdd = $this->url('profile/my-profiles/add');
|
|
|
7 |
$routeMyProfiles = $this->url('profile/my-profiles');
|
|
|
8 |
|
|
|
9 |
$allowAdd = $acl->isAllowed($roleName, 'profile/my-profiles/add') ? 1 : 0;
|
|
|
10 |
$allowEdit = $acl->isAllowed($roleName, 'profile/my-profiles/edit') ? 1 : 0;
|
|
|
11 |
$allowDelete = $acl->isAllowed($roleName, 'profile/my-profiles/delete') ? 1 : 0;
|
|
|
12 |
|
|
|
13 |
$publicNo = \LeadersLinked\Model\UserProfile::PUBLIC_NO;
|
|
|
14 |
|
|
|
15 |
// $this->inlineScript()->captureStart();
|
|
|
16 |
$js = <<<JS
|
|
|
17 |
const backendVars = {
|
| 5146 |
stevensc |
18 |
allowAdd : $allowAdd,
|
|
|
19 |
allowEdit: $allowEdit,
|
|
|
20 |
allowDelete: $allowDelete
|
| 1 |
www |
21 |
}
|
| 5070 |
stevensc |
22 |
|
|
|
23 |
const LABELS = {
|
|
|
24 |
ADD: 'LABEL_ADD',
|
|
|
25 |
MY_PROFILES: 'LABEL_MY_PROFILES',
|
|
|
26 |
MESSAGE: 'LABEL_MESSAGE',
|
|
|
27 |
APPROVE: 'LABEL_APPROVE',
|
|
|
28 |
REJECT: 'LABEL_REJECT',
|
|
|
29 |
MESSAGE: 'LABEL_MESSAGE',
|
|
|
30 |
ADMINISTRATE: 'LABEL_ADMINISTRATE',
|
|
|
31 |
UNFOLLOW: 'LABEL_UNFOLLOW',
|
| 5085 |
stevensc |
32 |
SEARCH: 'LABEL_SEARCH',
|
| 5070 |
stevensc |
33 |
BLOCK: 'LABEL_BLOCK',
|
|
|
34 |
UNBLOCK: 'LABEL_UNBLOCK',
|
| 5134 |
stevensc |
35 |
CONNECT: 'LABEL_CONNECT',
|
| 5070 |
stevensc |
36 |
CANCEL: 'LABEL_CANCEL',
|
|
|
37 |
LEAVE: 'LABEL_LEAVE',
|
|
|
38 |
NEW_PROFILE: 'LABEL_NEW_PROFILE',
|
|
|
39 |
PROFILE_MAME: 'LABEL_PROFILE_MAME',
|
|
|
40 |
CREATE_PROFILE: 'LABEL_CREATE_PROFILE',
|
| 5149 |
stevensc |
41 |
DATATABLE_SZERORECORDS: 'LABEL_DATATABLE_SZERORECORDS'
|
| 5070 |
stevensc |
42 |
}
|
|
|
43 |
|
| 1 |
www |
44 |
JS;
|
| 5070 |
stevensc |
45 |
|
| 1 |
www |
46 |
$this->inlineScript()->appendScript($js);
|
| 3517 |
stevensc |
47 |
$this->headLink()->appendStylesheet('/look-and-field/profile.css');
|
| 1 |
www |
48 |
$this->inlineScript()->appendFile('/react-bundles/my-profiles/my-profiles/myProfilesBundle.js');
|
|
|
49 |
?>
|
|
|
50 |
|
|
|
51 |
<div id="react-my-profiles" class="posts-section">
|
|
|
52 |
<div class="process-comm" id="paginator-process-comm">
|
|
|
53 |
<div class="spinner">
|
|
|
54 |
<div class="bounce1"></div>
|
|
|
55 |
<div class="bounce2"></div>
|
|
|
56 |
<div class="bounce3"></div>
|
|
|
57 |
</div>
|
|
|
58 |
</div>
|
|
|
59 |
</div>
|