Rev 15770 | AutorÃa | Comparar con el anterior | Ultima modificación | Ver Log |
<?php
$emojione_image_path_png = $this->basePath('vendors/smiley/assets/png/');
$contactsJson = json_encode($contacts);
$js = <<<JS
const contacts = $contactsJson;
const emojione_image_path_png = "$emojione_image_path_png";
const CHAT_LABELS = {
PEOPLE: 'LABEL_PEOPLE',
SEARCH: 'LABEL_SEARCH',
CHAT: 'LABEL_CHAT',
START_CONVERSATION: 'LABEL_START_CONVERSATION',
CONTACTS: 'LABEL_CONTACTS',
NOT_CONTACTS: 'LABEL_NOT_CONTACTS',
ADD_CONTACTS: 'LABEL_ADD_CONTACTS',
GROUPS: 'LABEL_GROUPS',
ONLINE: 'LABEL_ONLINE',
OFFLINE: 'LABEL_OFFLINE',
CREATE_CONFERENCE: 'LABEL_CREATE_CONFERENCE',
CREATE_GROUP: 'LABEL_CREATE_GROUP',
NEW_MESSAGES: 'LABEL_NEW_MESSAGES',
WRITE_A_MESSAGE: 'LABEL_WRITE_A_MESSAGE',
SEND: 'LABEL_SEND',
CANCEL: 'LABEL_CANCEL',
DATATABLE_SZERORECORDS: 'LABEL_DATATABLE_SZERORECORDS'
}
JS;
$this->inlineScript()->appendScript($js);
$this->inlineScript()->appendFile('/react-bundles/chat/chatBundle.js');
?>
<!-- $is_chat -->
<div id="react-chat"></div>