Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

Rev 5223 | | Comparar con el anterior | Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 www 1
<?php
2
$this->headLink()->appendStylesheet('/react-bundles/dashboard/main.css');
3
$currentUser = $this->currentUserHelper();
4
$currentUser = $currentUser->getUser();
5
 
5223 efrain 6
$acl            = $this->viewModel()->getRoot()->getVariable('acl');
7
$roleName = $currentUser->usertype_id;
8
 
9
 
10
$allowDailyPulse    = $acl->isAllowed($roleName, 'daily-pulse') ? 1 : 0;
11
 
12
 
13
 
1 www 14
$routeMoodle = $this->url('moodle');
15
$js = <<<JS
5183 stevensc 16
const LABELS = {
5182 stevensc 17
  ENROLL: 'LABEL_ENROLL',
18
  STATUS: 'LABEL_STATUS',
19
  CAPSULES_MICROLEARNING: 'LABEL_CAPSULES_MICROLEARNING',
20
  MARKETPLACE: "LABEL_MARKETPLACE",
21
  CAPSULES: "LABEL_CAPSULES",
22
  ENROLL: "LABEL_ENROLL",
5232 stevensc 23
  CLAIM: "LABEL_CLAIM",
5184 stevensc 24
  SEARCH: "LABEL_SEARCH",
5223 efrain 25
  STATUS: "LABEL_STATUS",
26
  SELECT_CATEGORY: "LABEL_SELECT_CATEGORY"
1 www 27
}
5223 efrain 28
 
29
const allowDailyPulse = "$allowDailyPulse"
30
 
5183 stevensc 31
JS;
1 www 32
 
33
$this->inlineScript()->appendScript($js);
34
$this->inlineScript()->appendFile('/react-bundles/marketplace/marketplaceBundle.js');
35
?>
36
 
37
<div id="react-marketplace" class="posts-section">
38
  <div class="process-comm" id="paginator-process-comm">
39
    <div class="spinner">
40
      <div class="bounce1"></div>
41
      <div class="bounce2"></div>
42
      <div class="bounce3"></div>
43
    </div>
44
  </div>
45
</div>