Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

Rev 4874 | Rev 5886 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 4874 Rev 4966
Línea 1... Línea 1...
1
<?php
1
<?php
-
 
2
 
2
use LeadersLinked\Library\Functions;
3
use LeadersLinked\Library\Functions;
Línea 3... Línea 4...
3
 
4
 
4
$this->headLink()->appendStylesheet('/react-bundles/mobileChat/main.css');
5
$this->headLink()->appendStylesheet('/react-bundles/mobileChat/main.css');
5
/**
6
/**
Línea 8... Línea 9...
8
 */
9
 */
9
$emojione_image_path_png  = $this->basePath('vendors/smiley/assets/png/');
10
$emojione_image_path_png  = $this->basePath('vendors/smiley/assets/png/');
10
$contactsJson = json_encode($contacts);
11
$contactsJson = json_encode($contacts);
11
$groupsJson = json_encode($groups);
12
$groupsJson = json_encode($groups);
Línea -... Línea 13...
-
 
13
 
-
 
14
$currentNetworkHelper = $this->currentNetworkHelper();
-
 
15
$currentNetwork = $currentNetworkHelper->getNetwork();
12
 
16
 
13
$timezones = [];
17
$timezones = [];
14
$records = Functions::getAllTimeZones();
18
$records = Functions::getAllTimeZones();
15
foreach($records as $record)
-
 
16
{
19
foreach ($records as $record) {
17
    $record = trim($record);
20
  $record = trim($record);
18
    $timezones[ $record ] = $record;
21
  $timezones[$record] = $record;
Línea 19... Línea -...
19
}
-
 
20
 
-
 
21
 
-
 
22
 
22
}
Línea 23... Línea 23...
23
 
23
 
24
$timezones = json_encode( $timezones );
24
$timezones = json_encode($timezones);
Línea 25... Línea 25...
25
 
25
 
Línea 31... Línea 31...
31
  contacts: JSON.parse('$contactsJson'),
31
  contacts: JSON.parse('$contactsJson'),
32
  groups: JSON.parse('$groupsJson'),
32
  groups: JSON.parse('$groupsJson'),
33
  emojione_image_path_png: '$emojione_image_path_png',
33
  emojione_image_path_png: '$emojione_image_path_png',
34
  timezones: JSON.parse('$timezones'),
34
  timezones: JSON.parse('$timezones'),
35
  timezone: '$timezone',
35
  timezone: '$timezone',
-
 
36
  defaultNetwork: '$currentNetwork->default',
36
}
37
}
37
JS;
38
JS;
Línea 38... Línea 39...
38
 
39
 
39
$this->inlineScript()->appendScript($js);
40
$this->inlineScript()->appendScript($js);