1 |
www |
1 |
<?php
|
14592 |
stevensc |
2 |
|
1 |
www |
3 |
use LeadersLinked\Model\UserExperience;
|
14592 |
stevensc |
4 |
|
1 |
www |
5 |
$acl = $this->viewModel()
|
|
|
6 |
->getRoot()
|
|
|
7 |
->getVariable('acl');
|
|
|
8 |
$currentUserHelper = $this->currentUserHelper();
|
|
|
9 |
$currentUser = $currentUserHelper->getUser();
|
|
|
10 |
$currentCompany = $currentUserHelper->getCompany();
|
5761 |
stevensc |
11 |
$companyId = $currentCompany->uuid;
|
1 |
www |
12 |
|
|
|
13 |
$roleName = $currentUserHelper->getUserTypeId();
|
|
|
14 |
|
5743 |
stevensc |
15 |
$routeWebsite = $this->url('profile/website', ['id' => $currentCompany->uuid]);
|
|
|
16 |
$routeCompanySize = $this->url('profile/company-size', ['id' => $currentCompany->uuid]);
|
|
|
17 |
$routeIndustry = $this->url('profile/industry', ['id' => $currentCompany->uuid]);
|
|
|
18 |
$routeExtended = $this->url('profile/extended', ['id' => $currentCompany->uuid]);
|
|
|
19 |
$routeSocialNetworks = $this->url('profile/social-network', ['id' => $currentCompany->uuid]);
|
|
|
20 |
$routeLocationAdd = $this->url('profile/location', ['id' => $currentCompany->uuid, 'operation' => 'add']);
|
|
|
21 |
$routeFoundationYear = $this->url('profile/foundation_year', ['id' => $currentCompany->uuid, 'operation' => 'add']);
|
|
|
22 |
$routeImageUpload = $this->url('profile/image', ['id' => $currentCompany->uuid, 'operation' => 'upload']);
|
|
|
23 |
$routeCoverUpload = $this->url('profile/cover', ['id' => $currentCompany->uuid, 'operation' => 'upload']);
|
|
|
24 |
$routeFooterUpload = $this->url('profile/footer', ['id' => $currentCompany->uuid, 'operation' => 'upload']);
|
|
|
25 |
$routeHeaderUpload = $this->url('profile/header', ['id' => $currentCompany->uuid, 'operation' => 'upload']);
|
1 |
www |
26 |
|
14527 |
stevensc |
27 |
$this->headLink()->appendStylesheet($this->basePath('plugins/bootstrap4-toggle/css/bootstrap4-toggle.min.css'));
|
|
|
28 |
$this->inlineScript()->appendFile($this->basePath('plugins/bootstrap4-toggle/js/bootstrap4-toggle.min.js'));
|
|
|
29 |
|
|
|
30 |
$this->inlineScript()->appendFile($this->basePath('plugins/select2/js/select2.js'));
|
|
|
31 |
$this->headLink()->appendStylesheet($this->basePath('plugins/select2/css/select2.css'));
|
|
|
32 |
$this->headLink()->appendStylesheet($this->basePath('plugins/select2-bootstrap4-theme/select2-bootstrap4.css'));
|
|
|
33 |
|
6005 |
stevensc |
34 |
$jsonLocations = json_encode($locations);
|
8525 |
stevensc |
35 |
|
5743 |
stevensc |
36 |
$js = <<<JS
|
|
|
37 |
const urlVars = {
|
|
|
38 |
routeWebsite: "$routeWebsite",
|
|
|
39 |
routeCompanySize: "$routeCompanySize",
|
|
|
40 |
routeIndustry: "$routeIndustry",
|
|
|
41 |
routeExtended: "$routeExtended",
|
|
|
42 |
routeSocialNetworks: "$routeSocialNetworks",
|
|
|
43 |
routeLocationAdd: "$routeLocationAdd",
|
|
|
44 |
routeFoundationYear: "$routeFoundationYear",
|
|
|
45 |
routeImageUpload: "$routeImageUpload",
|
|
|
46 |
routeCoverUpload: "$routeCoverUpload",
|
|
|
47 |
routeFooterUpload: "$routeFooterUpload",
|
5757 |
stevensc |
48 |
routeHeaderUpload: "$routeHeaderUpload",
|
|
|
49 |
cover: "$cover",
|
5795 |
stevensc |
50 |
companyId: "$companyId",
|
5925 |
stevensc |
51 |
followers: "$follower",
|
5988 |
stevensc |
52 |
image: "$image",
|
6002 |
stevensc |
53 |
overview: "$overview",
|
6025 |
stevensc |
54 |
locations: JSON.parse('$jsonLocations'),
|
6026 |
stevensc |
55 |
industry: "$industry",
|
6027 |
stevensc |
56 |
companySize: "$company_size",
|
6050 |
stevensc |
57 |
companyName: "$company_name",
|
|
|
58 |
foundationYear: "$foundation_year",
|
6055 |
stevensc |
59 |
website: "$website",
|
6059 |
stevensc |
60 |
header: "$header",
|
14592 |
stevensc |
61 |
footer: "$footer",
|
|
|
62 |
googleApiKey: '$google_map_key'
|
5743 |
stevensc |
63 |
}
|
15062 |
stevensc |
64 |
const LABELS = {
|
|
|
65 |
'PROFILE' : 'LABEL_PROFILE',
|
|
|
66 |
'OVERVIEW' : 'LABEL_OVERVIEW',
|
|
|
67 |
'LOCATION' : 'LABEL_LOCATION',
|
|
|
68 |
'INDUSTRY' : 'LABEL_INDUSTRY',
|
|
|
69 |
'WEBSITE' : 'LABEL_WEBSITE',
|
|
|
70 |
'HEADER_PDF' : 'LABEL_HEADER_PDF',
|
15063 |
stevensc |
71 |
'TEXT_HEADER_PDF' : 'LABEL_TEXT_HEADER_PDF',
|
15062 |
stevensc |
72 |
'FOOTER_PDF' : 'LABEL_FOOTER_PDF',
|
15063 |
stevensc |
73 |
'TEXT_FOOTER_PDF' : 'LABEL_TEXT_FOOTER_PDF',
|
15062 |
stevensc |
74 |
'COMPANY_SIZES' : 'LABEL_COMPANY_SIZES',
|
15063 |
stevensc |
75 |
'FOUNDATION_YEAR' : 'LABEL_FOUNDATION_YEAR',
|
|
|
76 |
'SEND' : 'LABEL_SEND',
|
|
|
77 |
'CANCEL' : 'LABEL_CANCEL',
|
15062 |
stevensc |
78 |
}
|
5743 |
stevensc |
79 |
JS;
|
|
|
80 |
|
|
|
81 |
$this->inlineScript()->appendScript($js);
|
15229 |
stevensc |
82 |
$this->headLink()->appendStylesheet('/react-bundles/profile/main.css');
|
5743 |
stevensc |
83 |
$this->inlineScript()->appendFile('/react-bundles/profile/profileBundle.js');
|
1 |
www |
84 |
?>
|
|
|
85 |
|
777 |
geraldo |
86 |
<style>
|
5743 |
stevensc |
87 |
.user-profile-ov {
|
|
|
88 |
position: relative;
|
|
|
89 |
}
|
777 |
geraldo |
90 |
|
5743 |
stevensc |
91 |
.user-profile-ov .add-dp {
|
|
|
92 |
position: absolute;
|
|
|
93 |
top: 30%;
|
|
|
94 |
right: 10%;
|
|
|
95 |
}
|
777 |
geraldo |
96 |
</style>
|
|
|
97 |
|
1 |
www |
98 |
<!-- Content Header (Page header) -->
|
5743 |
stevensc |
99 |
<div id="profile">
|
6060 |
stevensc |
100 |
</div>
|