Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

Rev 5432 | Rev 5573 | 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
const backendVars = {
14
  companyId: "$company_uuid",
15
  cover: "$cover",
16
  image: "$image",
17
  totalFollowers: "$total_followers",
18
  facebook: "$facebook",
19
  twitter: "$twitter",
20
  instagram: "$instagram",
21
  companyName: "$company_name",
22
  overview: "$overview",
5414 stevensc 23
  locations: $locationsJson,
1 www 24
  industry: "$industry",
25
  companySize: "$company_size",
26
  foundationYear: "$foundation_year",
27
  website: "$website",
28
  timeline: '$routeTimeline'
29
}
5432 stevensc 30
const LABELS = {
5433 stevensc 31
  VIEW_LESS: 'LABEL_VIEW_LESS',
5432 stevensc 32
  VIEW_MORE: 'LABEL_VIEW_MORE'
33
}
1 www 34
JS;
2384 stevensc 35
$this->inlineScript()->appendScript($js);
4531 stevensc 36
 
37
if ($currentNetwork->theme_id == Theme::THEME_LEADERSLINKED_LINKEDIN) {
38
  $this->inlineScript()->appendFile('/react-bundles/company/view/linkedinCompanyViewBundle.js');
39
  $this->headLink()->appendStylesheet('/react-bundles/company/view/main.css');
5363 stevensc 40
  $this->headLink()->appendStylesheet('/react-bundles/dashboard/linkedin/main.css');
4531 stevensc 41
} else {
42
  $this->headLink()->appendStylesheet('/look-and-field/dashboard.css');
43
  $this->inlineScript()->appendFile('/react-bundles/company/view/companyViewBundle.js');
44
}
45
 
1 www 46
?>
5414 stevensc 47
<div id="react_my_company">
1 www 48
  <div class="process-comm" id="paginator-process-comm">
49
    <div class="spinner">
50
      <div class="bounce1"></div>
51
      <div class="bounce2"></div>
52
      <div class="bounce3"></div>
53
    </div>
54
  </div>
55
</div>