Proyectos de Subversion LeadersLinked - Backend

Rev

Rev 15770 | | 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";
15763 stevensc 7
 
8
const CHAT_LABELS = {
15771 stevensc 9
  PEOPLE: 'LABEL_PEOPLE',
15763 stevensc 10
  SEARCH: 'LABEL_SEARCH',
11
  CHAT: 'LABEL_CHAT',
12
  START_CONVERSATION: 'LABEL_START_CONVERSATION',
13
  CONTACTS: 'LABEL_CONTACTS',
14
  NOT_CONTACTS: 'LABEL_NOT_CONTACTS',
15
  ADD_CONTACTS: 'LABEL_ADD_CONTACTS',
16
  GROUPS: 'LABEL_GROUPS',
17
  ONLINE: 'LABEL_ONLINE',
18
  OFFLINE: 'LABEL_OFFLINE',
19
  CREATE_CONFERENCE: 'LABEL_CREATE_CONFERENCE',
20
  CREATE_GROUP: 'LABEL_CREATE_GROUP',
21
  NEW_MESSAGES: 'LABEL_NEW_MESSAGES',
22
  WRITE_A_MESSAGE: 'LABEL_WRITE_A_MESSAGE',
23
  SEND: 'LABEL_SEND',
24
  CANCEL: 'LABEL_CANCEL',
25
  DATATABLE_SZERORECORDS: 'LABEL_DATATABLE_SZERORECORDS'
26
}
11583 nelberth 27
JS;
28
$this->inlineScript()->appendScript($js);
15499 stevensc 29
$this->inlineScript()->appendFile('/react-bundles/chat/chatBundle.js');
11351 nelberth 30
?>
31
 
11583 nelberth 32
<!-- $is_chat  -->
33
<div id="react-chat"></div>