Proyectos de Subversion LeadersLinked - Backend

Rev

Rev 15763 | Rev 15765 | Ir a la última revisión | | Comparar con el anterior | Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
11583 nelberth 1
<?php
11351 nelberth 2
$emojione_image_path_png  = $this->basePath('vendors/smiley/assets/png/');
11583 nelberth 3
$contactsJson = json_encode($contacts);
4
$js = <<<JS
15763 stevensc 5
const contacts = $contactsJson;
11583 nelberth 6
const emojione_image_path_png = "$emojione_image_path_png";
15764 stevensc 7
const timezones = {};
15763 stevensc 8
const timezone = '$timezone';
9
const defaultNetwork = '$defaultNetwork';
10
 
11
const CHAT_LABELS = {
12
  PEOPLE: 'LABEL_PEOPLE',
13
  SEARCH: 'LABEL_SEARCH',
14
  CHAT: 'LABEL_CHAT',
15
  START_CONVERSATION: 'LABEL_START_CONVERSATION',
16
  CONTACTS: 'LABEL_CONTACTS',
17
  NOT_CONTACTS: 'LABEL_NOT_CONTACTS',
18
  ADD_CONTACTS: 'LABEL_ADD_CONTACTS',
19
  GROUPS: 'LABEL_GROUPS',
20
  ONLINE: 'LABEL_ONLINE',
21
  OFFLINE: 'LABEL_OFFLINE',
22
  CREATE_CONFERENCE: 'LABEL_CREATE_CONFERENCE',
23
  CREATE_GROUP: 'LABEL_CREATE_GROUP',
24
  NEW_MESSAGES: 'LABEL_NEW_MESSAGES',
25
  WRITE_A_MESSAGE: 'LABEL_WRITE_A_MESSAGE',
26
  SEND: 'LABEL_SEND',
27
  CANCEL: 'LABEL_CANCEL',
28
  DATATABLE_SZERORECORDS: 'LABEL_DATATABLE_SZERORECORDS'
29
}
11583 nelberth 30
JS;
31
$this->inlineScript()->appendScript($js);
15499 stevensc 32
$this->inlineScript()->appendFile('/react-bundles/chat/chatBundle.js');
15762 stevensc 33
$this->headLink()->appendStylesheet('/css/chat.css');
11351 nelberth 34
?>
35
 
11583 nelberth 36
<!-- $is_chat  -->
37
<div id="react-chat"></div>