Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

<?php
$this->headLink()->appendStylesheet('/react-bundles/dashboard/main.css');
$currentUser = $this->currentUserHelper();
$currentUser = $currentUser->getUser();

$acl            = $this->viewModel()->getRoot()->getVariable('acl');
$roleName = $currentUser->usertype_id;


$allowDailyPulse    = $acl->isAllowed($roleName, 'daily-pulse') ? 1 : 0;



$routeMoodle = $this->url('moodle');
$js = <<<JS
const LABELS = {
  ENROLL: 'LABEL_ENROLL',
  STATUS: 'LABEL_STATUS',
  CAPSULES_MICROLEARNING: 'LABEL_CAPSULES_MICROLEARNING',
  MARKETPLACE: "LABEL_MARKETPLACE",
  CAPSULES: "LABEL_CAPSULES",
  ENROLL: "LABEL_ENROLL",
  CLAIM: "LABEL_CLAIM",
  SEARCH: "LABEL_SEARCH",
  STATUS: "LABEL_STATUS",
  SELECT_CATEGORY: "LABEL_SELECT_CATEGORY" 
}

const allowDailyPulse = "$allowDailyPulse"

JS;

$this->inlineScript()->appendScript($js);
$this->inlineScript()->appendFile('/react-bundles/marketplace/marketplaceBundle.js');
?>

<div id="react-marketplace" class="posts-section">
  <div class="process-comm" id="paginator-process-comm">
    <div class="spinner">
      <div class="bounce1"></div>
      <div class="bounce2"></div>
      <div class="bounce3"></div>
    </div>
  </div>
</div>