Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 15762 Rev 15763
Línea 1... Línea 1...
1
<?php
1
<?php
2
$emojione_image_path_png  = $this->basePath('vendors/smiley/assets/png/');
2
$emojione_image_path_png  = $this->basePath('vendors/smiley/assets/png/');
3
$contactsJson = json_encode($contacts);
3
$contactsJson = json_encode($contacts);
4
$js = <<<JS
4
$js = <<<JS
5
const contacts = JSON.parse('$contactsJson');
5
const contacts = $contactsJson;
6
const emojione_image_path_png = "$emojione_image_path_png";
6
const emojione_image_path_png = "$emojione_image_path_png";
-
 
7
const timezones = $timezones;
-
 
8
const timezone = '$timezone';
-
 
9
const defaultNetwork = '$defaultNetwork';
-
 
10
 
-
 
11
const CHAT_LABELS = {
-
 
12
  PEOPLE: 'LABEL_PEOPLE',
-
 
13
  SEARCH: 'LABEL_SEARCH',
-
 
14
  CHAT: 'LABEL_CHAT',
-
 
15
  START_CONVERSATION: 'LABEL_START_CONVERSATION',
-
 
16
  CONTACTS: 'LABEL_CONTACTS',
-
 
17
  NOT_CONTACTS: 'LABEL_NOT_CONTACTS',
-
 
18
  ADD_CONTACTS: 'LABEL_ADD_CONTACTS',
-
 
19
  GROUPS: 'LABEL_GROUPS',
-
 
20
  ONLINE: 'LABEL_ONLINE',
-
 
21
  OFFLINE: 'LABEL_OFFLINE',
-
 
22
  CREATE_CONFERENCE: 'LABEL_CREATE_CONFERENCE',
-
 
23
  CREATE_GROUP: 'LABEL_CREATE_GROUP',
-
 
24
  NEW_MESSAGES: 'LABEL_NEW_MESSAGES',
-
 
25
  WRITE_A_MESSAGE: 'LABEL_WRITE_A_MESSAGE',
-
 
26
  SEND: 'LABEL_SEND',
-
 
27
  CANCEL: 'LABEL_CANCEL',
-
 
28
  DATATABLE_SZERORECORDS: 'LABEL_DATATABLE_SZERORECORDS'
-
 
29
}
7
JS;
30
JS;
8
$this->inlineScript()->appendScript($js);
31
$this->inlineScript()->appendScript($js);
9
$this->inlineScript()->appendFile('/react-bundles/chat/chatBundle.js');
32
$this->inlineScript()->appendFile('/react-bundles/chat/chatBundle.js');
10
$this->headLink()->appendStylesheet('/css/chat.css');
33
$this->headLink()->appendStylesheet('/css/chat.css');
11
?>
34
?>