Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

Rev 3542 | Rev 4495 | 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
4494 stevensc 2
 
3
use LeadersLinked\Model\Theme;
4
 
1 www 5
$routeTimeline = $this->url('feed/timeline', ['id' => $group_uuid, 'type' => 'group']);
4494 stevensc 6
 
7
$currentNetworkHelper = $this->currentNetworkHelper();
8
$currentNetwork = $currentNetworkHelper->getNetwork();
9
 
1 www 10
$js = <<<JS
11
    const groupId = "$group_uuid"
12
    const backendVars = {
13
        user_id: "$user_id",
14
        totalMembers: "$total_members",
15
        accessibility: "$accessibility",
16
        privacy: "$privacy",
17
        industry: "$industry",
18
        groupId,
19
        groupType: "$group_type",
20
        groupUuid: "$group_uuid",
21
        name: "$name",
22
        image: "$image",
23
        cover: "$cover",
24
        overview: "$overview",
25
        website: "$website",
26
        routeTimeline: "$routeTimeline",
27
        linkInmail: "$link_inmail"
28
    }
29
JS;
3542 stevensc 30
 
1 www 31
$this->inlineScript()->appendScript($js);
4494 stevensc 32
 
33
if ($currentNetwork->theme_id == Theme::THEME_LEADERSLINKED_LINKEDIN) {
34
  $this->headLink()->appendStylesheet('/react-bundles/group/groupView/main.css');
35
  $this->inlineScript()->appendFile('/react-bundles/group/groupView/linkedinGroupView.js');
36
} else {
37
  $this->headLink()->appendStylesheet('/look-and-field/dashboard.css');
38
  $this->inlineScript()->appendFile('/react-bundles/group/groupView/groupView.js');
39
}
1 www 40
?>
41
 
42
<div id="react_group_view">
43
  <div class="process-comm" id="paginator-process-comm">
44
    <div class="spinner">
45
      <div class="bounce1"></div>
46
      <div class="bounce2"></div>
47
      <div class="bounce3"></div>
48
    </div>
49
  </div>
4494 stevensc 50
</div>