Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

Rev 3542 | Rev 4495 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

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