| 1 |
www |
1 |
<?php
|
|
|
2 |
// vars to json
|
|
|
3 |
$locationsJson = json_encode($locations);
|
|
|
4 |
$routeTimeline = $this->url('feed/timeline', ['id' => $company_uuid, 'type' => 'company']);
|
|
|
5 |
|
|
|
6 |
$js = <<<JS
|
|
|
7 |
|
|
|
8 |
const backendVars = {
|
|
|
9 |
companyId: "$company_uuid",
|
|
|
10 |
cover: "$cover",
|
|
|
11 |
image: "$image",
|
|
|
12 |
totalFollowers: "$total_followers",
|
|
|
13 |
facebook: "$facebook",
|
|
|
14 |
twitter: "$twitter",
|
|
|
15 |
instagram: "$instagram",
|
|
|
16 |
companyName: "$company_name",
|
|
|
17 |
overview: "$overview",
|
|
|
18 |
locations: JSON.parse('$locationsJson'),
|
|
|
19 |
industry: "$industry",
|
|
|
20 |
companySize: "$company_size",
|
|
|
21 |
foundationYear: "$foundation_year",
|
|
|
22 |
website: "$website",
|
|
|
23 |
timeline: '$routeTimeline'
|
|
|
24 |
}
|
|
|
25 |
JS;
|
|
|
26 |
$this->headLink()->appendStylesheet('/react-bundles/company/view/main.css');
|
|
|
27 |
$this->inlineScript()->appendScript($js);
|
|
|
28 |
$this->inlineScript()->appendFile('/react-bundles/company/view/companyViewBundle.js');
|
|
|
29 |
?>
|
|
|
30 |
<div id="react_my_connections">
|
|
|
31 |
<div class="process-comm" id="paginator-process-comm">
|
|
|
32 |
<div class="spinner">
|
|
|
33 |
<div class="bounce1"></div>
|
|
|
34 |
<div class="bounce2"></div>
|
|
|
35 |
<div class="bounce3"></div>
|
|
|
36 |
</div>
|
|
|
37 |
</div>
|
|
|
38 |
</div>
|