Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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