Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

Rev 4532 | Rev 5414 | 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
4531 stevensc 2
 
3
use LeadersLinked\Model\Theme;
4
 
5
$currentNetworkHelper = $this->currentNetworkHelper();
6
$currentNetwork = $currentNetworkHelper->getNetwork();
7
 
1 www 8
// vars to json
9
$locationsJson = json_encode($locations);
10
$routeTimeline  = $this->url('feed/timeline', ['id' => $company_uuid, 'type' => 'company']);
11
 
12
$js = <<<JS
13
 
14
const backendVars = {
15
  companyId: "$company_uuid",
16
  cover: "$cover",
17
  image: "$image",
18
  totalFollowers: "$total_followers",
19
  facebook: "$facebook",
20
  twitter: "$twitter",
21
  instagram: "$instagram",
22
  companyName: "$company_name",
23
  overview: "$overview",
24
  locations: JSON.parse('$locationsJson'),
25
  industry: "$industry",
26
  companySize: "$company_size",
27
  foundationYear: "$foundation_year",
28
  website: "$website",
29
  timeline: '$routeTimeline'
30
}
31
JS;
2384 stevensc 32
$this->inlineScript()->appendScript($js);
4531 stevensc 33
 
34
if ($currentNetwork->theme_id == Theme::THEME_LEADERSLINKED_LINKEDIN) {
35
  $this->inlineScript()->appendFile('/react-bundles/company/view/linkedinCompanyViewBundle.js');
36
  $this->headLink()->appendStylesheet('/react-bundles/company/view/main.css');
5363 stevensc 37
  $this->headLink()->appendStylesheet('/react-bundles/dashboard/linkedin/main.css');
4531 stevensc 38
} else {
39
  $this->headLink()->appendStylesheet('/look-and-field/dashboard.css');
40
  $this->inlineScript()->appendFile('/react-bundles/company/view/companyViewBundle.js');
41
}
42
 
1 www 43
?>
44
<div id="react_my_connections">
45
  <div class="process-comm" id="paginator-process-comm">
46
    <div class="spinner">
47
      <div class="bounce1"></div>
48
      <div class="bounce2"></div>
49
      <div class="bounce3"></div>
50
    </div>
51
  </div>
52
</div>