Proyectos de Subversion LeadersLinked - Backend

Rev

Rev 11152 | Rev 14592 | Ir a la última revisión | | Comparar con el anterior | Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
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
 
14527 stevensc 25
$this->headLink()->appendStylesheet($this->basePath('plugins/bootstrap4-toggle/css/bootstrap4-toggle.min.css'));
26
$this->inlineScript()->appendFile($this->basePath('plugins/bootstrap4-toggle/js/bootstrap4-toggle.min.js'));
27
 
28
$this->inlineScript()->appendFile($this->basePath('plugins/select2/js/select2.js'));
29
$this->headLink()->appendStylesheet($this->basePath('plugins/select2/css/select2.css'));
30
$this->headLink()->appendStylesheet($this->basePath('plugins/select2-bootstrap4-theme/select2-bootstrap4.css'));
31
 
6005 stevensc 32
$jsonLocations = json_encode($locations);
8525 stevensc 33
 
5743 stevensc 34
$js = <<<JS
35
const urlVars = {
36
    routeWebsite: "$routeWebsite",
37
    routeCompanySize: "$routeCompanySize",
38
    routeIndustry: "$routeIndustry",
39
    routeExtended: "$routeExtended",
40
    routeSocialNetworks: "$routeSocialNetworks",
41
    routeLocationAdd: "$routeLocationAdd",
42
    routeFoundationYear: "$routeFoundationYear",
43
    routeImageUpload: "$routeImageUpload",
44
    routeCoverUpload: "$routeCoverUpload",
45
    routeFooterUpload: "$routeFooterUpload",
5757 stevensc 46
    routeHeaderUpload: "$routeHeaderUpload",
47
    cover: "$cover",
5795 stevensc 48
    companyId: "$companyId",
5925 stevensc 49
    followers: "$follower",
5988 stevensc 50
    image: "$image",
6002 stevensc 51
    overview: "$overview",
6025 stevensc 52
    locations: JSON.parse('$jsonLocations'),
6026 stevensc 53
    industry: "$industry",
6027 stevensc 54
    companySize: "$company_size",
6050 stevensc 55
    companyName: "$company_name",
56
    foundationYear: "$foundation_year",
6055 stevensc 57
    website: "$website",
6059 stevensc 58
    header: "$header",
8525 stevensc 59
    footer: "$footer"
5743 stevensc 60
}
61
JS;
62
 
63
$this->inlineScript()->appendScript($js);
6448 stevensc 64
$this->headLink()->appendStylesheet('/react-bundles/profile/main.css');
5743 stevensc 65
$this->inlineScript()->appendFile('/react-bundles/profile/profileBundle.js');
1 www 66
?>
67
 
777 geraldo 68
<style>
5743 stevensc 69
    .user-profile-ov {
70
        position: relative;
71
    }
777 geraldo 72
 
5743 stevensc 73
    .user-profile-ov .add-dp {
74
        position: absolute;
75
        top: 30%;
76
        right: 10%;
77
    }
779 geraldo 78
 
5743 stevensc 79
    .user-profile-ov .add-dp i {
80
        font-size: 14px;
81
        border: 2px solid #fff;
82
        background: #e44d3a;
83
        padding: 11px;
84
        color: #ffff
85
    }
777 geraldo 86
</style>
87
 
1 www 88
<!-- Content Header (Page header) -->
5743 stevensc 89
<div id="profile">
6060 stevensc 90
</div>