Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

Rev 4877 | Rev 5195 | 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
 
4876 stevensc 5
$currentNetworkHelper = $this->currentNetworkHelper();
6
$currentNetwork = $currentNetworkHelper->getNetwork();
4877 stevensc 7
$defaultNetwork = $currentNetwork->default;
4876 stevensc 8
 
1 www 9
$emojione_image_path_png  = $this->basePath('vendors/smiley/assets/png/');
10
$contactsJson = json_encode($contacts);
4113 efrain 11
 
12
$timezones = [];
13
$records = Functions::getAllTimeZones();
4858 stevensc 14
foreach ($records as $record) {
4113 efrain 15
    $record = trim($record);
4858 stevensc 16
    $timezones[$record] = $record;
4113 efrain 17
}
18
 
4858 stevensc 19
$timezones = json_encode($timezones);
4113 efrain 20
 
1 www 21
$js = <<<JS
4859 stevensc 22
const contacts = $contactsJson;
1 www 23
const emojione_image_path_png = "$emojione_image_path_png";
4865 stevensc 24
const timezones = $timezones;
4872 stevensc 25
const timezone = '$timezone';
4879 stevensc 26
const defaultNetwork = '$defaultNetwork';
1 www 27
JS;
4122 stevensc 28
 
1 www 29
$this->inlineScript()->appendScript($js);
30
$this->inlineScript()->appendFile('/react-bundles/chat/chatBundle.js');
31
?>
32
 
33
<!-- $is_chat  -->
665 steven 34
<div id="react-chat"></div>