Rev 11393 |
Ir a la última revisión |
|
Ultima modificación |
Ver Log
|
Rev |
Autor |
Línea Nro. |
Línea |
11351 |
nelberth |
1 |
<?php
|
|
|
2 |
$emojione_image_path_png = $this->basePath('vendors/smiley/assets/png/');
|
|
|
3 |
$contactsJson = json_encode($contacts);
|
|
|
4 |
$js = <<<JS
|
|
|
5 |
const contacts = JSON.parse('$contactsJson');
|
|
|
6 |
const emojione_image_path_png = "$emojione_image_path_png";
|
|
|
7 |
JS;
|
|
|
8 |
$this->inlineScript()->appendScript($js);
|
|
|
9 |
$this->inlineScript()->appendFile('/react-bundles/chat/chatBundle.js');
|
|
|
10 |
?>
|
|
|
11 |
|
|
|
12 |
<!-- $is_chat -->
|
|
|
13 |
<div id="react-chat"></div>
|