Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 4685 Rev 4686
Línea 1... Línea 1...
1
<?php
1
<?php
2
$this->headLink()->appendStylesheet('/react-bundles/menu/main.css');
-
 
Línea 3... Línea 2...
3
 
2
 
Línea 4... Línea 3...
4
use LeadersLinked\Model\UserType;
3
use LeadersLinked\Model\UserType;
5
 
4
 
6
$currentUserPlugin = $this->currentUserHelper();
5
$currentUserPlugin = $this->currentUserHelper();
Línea 7... Línea -...
7
$currentUser = $currentUserPlugin->getUser();
-
 
8
$currentCompany = $currentUserPlugin->getCompany();
6
$currentUser = $currentUserPlugin->getUser();
9
 
7
$currentCompany = $currentUserPlugin->getCompany();
10
 
8
 
11
if ($currentCompany) {
9
if ($currentCompany) {
12
  $menu = getAclMenuCompany();
10
  $menu = getAclMenuCompany();
Línea 13... Línea -...
13
} else {
-
 
14
  $menu = getAclMenuSystem();
-
 
15
}
-
 
16
 
11
} else {
Línea 17... Línea 12...
17
 
12
  $menu = getAclMenuSystem();
18
 
13
}
Línea 19... Línea -...
19
 
-
 
20
$usertype_id = $currentUser->usertype_id;
14
 
21
 
15
$usertype_id = $currentUser->usertype_id;
22
//[REQUEST_URI] => /settings/company-sizes/
16
 
23
$request_uri = isset($_SERVER['REQUEST_URI']) ? $_SERVER['REQUEST_URI'] : '';
17
//[REQUEST_URI] => /settings/company-sizes/
24
 
18
$request_uri = isset($_SERVER['REQUEST_URI']) ? $_SERVER['REQUEST_URI'] : '';
Línea 49... Línea 43...
49
const backendVars= JSON.parse('$jsonMenu')
43
const backendVars= JSON.parse('$jsonMenu')
50
JS;
44
JS;
51
$this->inlineScript()->appendScript($js);
45
$this->inlineScript()->appendScript($js);
52
$this->inlineScript()->appendFile('/react-bundles/menu/menuBundle.js');
46
$this->inlineScript()->appendFile('/react-bundles/menu/menuBundle.js');
53
?>
47
?>
54
<nav class="mt-2" id="menu-sidebar">
-
 
55
 
-
 
56
</nav>
-
 
57
48
<nav class="mt-2" id="menu-sidebar"></nav>
-
 
49
58
50