Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

<?php
$currentUser = $this->currentUserHelper();
$currentUser = $currentUser->getUser();


$routeMoodle = $this->url('moodle');
$emojione_image_path_png  = $this->basePath('vendors/smiley/assets/png/');
$id = $user_uuid ?? null;

$js = <<<JS
const backendVars = {
  id: "$id",
  emojione_image_path_png: '$emojione_image_path_png',
}

const LABELS = {
  PEOPLE: 'LABEL_PEOPLE',
  SEARCH: 'LABEL_SEARCH',
  CHAT: 'LABEL_CHAT',
  START_CONVERSATION: 'LABEL_START_CONVERSATION',
  SELECT_CONVERSATION: 'LABEL_SELECT_CONVERSATION',
  NO_MESSAGE_CONVERSATION: 'LABEL_NO_MESSAGE_CONVERSATION',
  WRITE_YOUR_MESSAGE_HERE: 'LABEL_WRITE_YOUR_MESSAGE_HERE',
  NEW_MESSAGES: 'LABEL_NEW_MESSAGES',
  CREATE_INMAIL: 'LABEL_CREATE_INMAIL',
  WRITE_NAME: 'LABEL_WRITE_NAME',
  WRITE_PERSON_NAME: 'LABEL_WRITE_PERSON_NAME',
  RETURN: 'LABEL_RETURN',
  OPEN_DOCUMENT: 'LABEL_OPEN_DOCUMENT',
}
JS;

$this->inlineScript()->appendScript($js);
$this->headLink()->appendStylesheet('/look-and-field/mobile-chat.css');
$this->inlineScript()->appendFile('/react-bundles/inmail/inmailBundle.js');
?>

<div id="react-inmail" 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>