Rev 5195 | AutorÃa | Comparar con el anterior | Ultima modificación | Ver Log |
<?phpuse LeadersLinked\Library\Functions;$currentNetworkHelper = $this->currentNetworkHelper();$currentNetwork = $currentNetworkHelper->getNetwork();$defaultNetwork = $currentNetwork->default;$emojione_image_path_png = $this->basePath('vendors/smiley/assets/png/');$contactsJson = json_encode($contacts);$timezones = [];$records = Functions::getAllTimeZones();foreach ($records as $record) {$record = trim($record);$timezones[$record] = $record;}$timezones = json_encode($timezones);$js = <<<JSconst contacts = $contactsJson;const emojione_image_path_png = "$emojione_image_path_png";const timezones = $timezones;const timezone = '$timezone';const defaultNetwork = '$defaultNetwork';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>