1 |
www |
1 |
<?php
|
|
|
2 |
use LeadersLinked\Model\UserExperience;
|
|
|
3 |
$acl = $this->viewModel()
|
|
|
4 |
->getRoot()
|
|
|
5 |
->getVariable('acl');
|
|
|
6 |
$currentUserHelper = $this->currentUserHelper();
|
|
|
7 |
$currentUser = $currentUserHelper->getUser();
|
|
|
8 |
$currentCompany = $currentUserHelper->getCompany();
|
5761 |
stevensc |
9 |
$companyId = $currentCompany->uuid;
|
1 |
www |
10 |
|
|
|
11 |
$roleName = $currentUserHelper->getUserTypeId();
|
|
|
12 |
|
5743 |
stevensc |
13 |
$routeWebsite = $this->url('profile/website', ['id' => $currentCompany->uuid]);
|
|
|
14 |
$routeCompanySize = $this->url('profile/company-size', ['id' => $currentCompany->uuid]);
|
|
|
15 |
$routeIndustry = $this->url('profile/industry', ['id' => $currentCompany->uuid]);
|
|
|
16 |
$routeExtended = $this->url('profile/extended', ['id' => $currentCompany->uuid]);
|
|
|
17 |
$routeSocialNetworks = $this->url('profile/social-network', ['id' => $currentCompany->uuid]);
|
|
|
18 |
$routeLocationAdd = $this->url('profile/location', ['id' => $currentCompany->uuid, 'operation' => 'add']);
|
|
|
19 |
$routeFoundationYear = $this->url('profile/foundation_year', ['id' => $currentCompany->uuid, 'operation' => 'add']);
|
|
|
20 |
$routeImageUpload = $this->url('profile/image', ['id' => $currentCompany->uuid, 'operation' => 'upload']);
|
|
|
21 |
$routeCoverUpload = $this->url('profile/cover', ['id' => $currentCompany->uuid, 'operation' => 'upload']);
|
|
|
22 |
$routeFooterUpload = $this->url('profile/footer', ['id' => $currentCompany->uuid, 'operation' => 'upload']);
|
|
|
23 |
$routeHeaderUpload = $this->url('profile/header', ['id' => $currentCompany->uuid, 'operation' => 'upload']);
|
1 |
www |
24 |
|
6005 |
stevensc |
25 |
$jsonLocations = json_encode($locations);
|
8525 |
stevensc |
26 |
|
5743 |
stevensc |
27 |
$js = <<<JS
|
|
|
28 |
const urlVars = {
|
|
|
29 |
routeWebsite: "$routeWebsite",
|
|
|
30 |
routeCompanySize: "$routeCompanySize",
|
|
|
31 |
routeIndustry: "$routeIndustry",
|
|
|
32 |
routeExtended: "$routeExtended",
|
|
|
33 |
routeSocialNetworks: "$routeSocialNetworks",
|
|
|
34 |
routeLocationAdd: "$routeLocationAdd",
|
|
|
35 |
routeFoundationYear: "$routeFoundationYear",
|
|
|
36 |
routeImageUpload: "$routeImageUpload",
|
|
|
37 |
routeCoverUpload: "$routeCoverUpload",
|
|
|
38 |
routeFooterUpload: "$routeFooterUpload",
|
5757 |
stevensc |
39 |
routeHeaderUpload: "$routeHeaderUpload",
|
|
|
40 |
cover: "$cover",
|
5795 |
stevensc |
41 |
companyId: "$companyId",
|
5925 |
stevensc |
42 |
followers: "$follower",
|
5988 |
stevensc |
43 |
image: "$image",
|
6002 |
stevensc |
44 |
overview: "$overview",
|
6025 |
stevensc |
45 |
locations: JSON.parse('$jsonLocations'),
|
6026 |
stevensc |
46 |
industry: "$industry",
|
6027 |
stevensc |
47 |
companySize: "$company_size",
|
6050 |
stevensc |
48 |
companyName: "$company_name",
|
|
|
49 |
foundationYear: "$foundation_year",
|
6055 |
stevensc |
50 |
website: "$website",
|
6059 |
stevensc |
51 |
header: "$header",
|
8525 |
stevensc |
52 |
footer: "$footer"
|
5743 |
stevensc |
53 |
}
|
|
|
54 |
JS;
|
|
|
55 |
|
|
|
56 |
$this->inlineScript()->appendScript($js);
|
6448 |
stevensc |
57 |
$this->headLink()->appendStylesheet('/react-bundles/profile/main.css');
|
5743 |
stevensc |
58 |
$this->inlineScript()->appendFile('/react-bundles/profile/profileBundle.js');
|
1 |
www |
59 |
?>
|
|
|
60 |
|
777 |
geraldo |
61 |
<style>
|
5743 |
stevensc |
62 |
.user-profile-ov {
|
|
|
63 |
position: relative;
|
|
|
64 |
}
|
777 |
geraldo |
65 |
|
5743 |
stevensc |
66 |
.user-profile-ov .add-dp {
|
|
|
67 |
position: absolute;
|
|
|
68 |
top: 30%;
|
|
|
69 |
right: 10%;
|
|
|
70 |
}
|
779 |
geraldo |
71 |
|
5743 |
stevensc |
72 |
.user-profile-ov .add-dp i {
|
|
|
73 |
font-size: 14px;
|
|
|
74 |
border: 2px solid #fff;
|
|
|
75 |
background: #e44d3a;
|
|
|
76 |
padding: 11px;
|
|
|
77 |
color: #ffff
|
|
|
78 |
}
|
777 |
geraldo |
79 |
</style>
|
|
|
80 |
|
1 |
www |
81 |
<!-- Content Header (Page header) -->
|
5743 |
stevensc |
82 |
<div id="profile">
|
6060 |
stevensc |
83 |
</div>
|