Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev Autor Línea Nro. Línea
1 www 1
<?php
4858 stevensc 2
 
4113 efrain 3
use LeadersLinked\Library\Functions;
4
 
1 www 5
$emojione_image_path_png  = $this->basePath('vendors/smiley/assets/png/');
6
$contactsJson = json_encode($contacts);
4113 efrain 7
 
8
$timezones = [];
9
$records = Functions::getAllTimeZones();
4858 stevensc 10
foreach ($records as $record) {
4113 efrain 11
    $record = trim($record);
4858 stevensc 12
    $timezones[$record] = $record;
4113 efrain 13
}
14
 
4858 stevensc 15
$timezones = json_encode($timezones);
4113 efrain 16
 
1 www 17
$js = <<<JS
4859 stevensc 18
const contacts = $contactsJson;
1 www 19
const emojione_image_path_png = "$emojione_image_path_png";
4865 stevensc 20
const timezones = $timezones;
4872 stevensc 21
const timezone = '$timezone';
22
const defaultNetwork = $defaultNetwork;
1 www 23
JS;
4122 stevensc 24
 
1 www 25
$this->inlineScript()->appendScript($js);
26
$this->inlineScript()->appendFile('/react-bundles/chat/chatBundle.js');
27
?>
28
 
29
<!-- $is_chat  -->
665 steven 30
<div id="react-chat"></div>