Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 9002 Rev 9056
Línea 28... Línea 28...
28
	$this->inlineScript()->captureStart();
28
	$this->inlineScript()->captureStart();
29
	echo " jQuery( document ).ready(function( $ ) { $notify }); ";
29
	echo " jQuery( document ).ready(function( $ ) { $notify }); ";
30
	$this->inlineScript()->captureEnd();
30
	$this->inlineScript()->captureEnd();
31
}
31
}
Línea -... Línea 32...
-
 
32
 
-
 
33
if ($company) {
-
 
34
	$menu = getAclMenuCompany();
-
 
35
} else {
-
 
36
	$menu = getAclMenuSystem();
-
 
37
}
-
 
38
 
-
 
39
if ($company) {
-
 
40
	$names = explode(' ', $company->name);
-
 
41
	$companyId = $company->uuid;
-
 
42
	$companyName = $company->name;
-
 
43
	$companyImg = $company->image;
-
 
44
}
-
 
45
 
-
 
46
$usertype_id = $user->usertype_id;
-
 
47
 
-
 
48
//[REQUEST_URI] => /settings/company-sizes/
Línea -... Línea 49...
-
 
49
$request_uri = isset($_SERVER['REQUEST_URI']) ? $_SERVER['REQUEST_URI'] : '';
-
 
50
 
-
 
51
if ($request_uri) {
-
 
52
  if (substr($request_uri, 0, 1) == '/') {
-
 
53
    $request_uri = substr($request_uri, 1);
-
 
54
  }
-
 
55
  if (substr($request_uri, strlen($request_uri) - 1, 1) == '/') {
-
 
56
    $request_uri = substr($request_uri, 0, strlen($request_uri) - 1);
-
 
57
  }
-
 
58
}
-
 
59
 
-
 
60
$acl = $this->viewModel()->getCurrent()->getVariable('acl');
-
 
61
 
-
 
62
$jsonMenu = json_encode($menu);
-
 
63
	
-
 
64
if($company){
-
 
65
$js = <<<JS
-
 
66
	const backendVars= {
-
 
67
		menu:JSON.parse('$jsonMenu'),
-
 
68
		companyId: "$company->uuid",
-
 
69
		companyImg: "$companyImg",
-
 
70
		companyName: "$companyName",
-
 
71
		name: "$names[0]",
-
 
72
	}	
-
 
73
JS;
-
 
74
} else {
-
 
75
	$js = <<<JS
-
 
76
	const backendVars= {
-
 
77
		menu:JSON.parse('$jsonMenu'),
-
 
78
		companyId: "",
-
 
79
		companyImg: "",
-
 
80
		companyName: "",
-
 
81
		name: "",
-
 
82
	}	
-
 
83
JS;
-
 
84
}
Línea 32... Línea 85...
32
 
85
$this->inlineScript()->appendScript($js);
33
 
86
$this->inlineScript()->appendFile('/react-bundles/menu/menuBundle.js');
34
 
87
 
Línea 68... Línea 121...
68
	?>
121
	?>
69
</head>
122
</head>
Línea 70... Línea 123...
70
 
123
 
71
<body class="hold-transition sidebar-mini">
124
<body class="hold-transition sidebar-mini">
72
	<!-- Site wrapper -->
125
	<!-- Site wrapper -->
Línea 73... Línea -...
73
	<div class="wrapper">
-
 
74
 
-
 
75
		<!-- Main Sidebar Container -->
-
 
76
		<aside class="main-sidebar sidebar-light-primary right-border">
-
 
77
			<!-- Brand Logo -->
-
 
78
			<a href="<?php echo $this->url('dashboard') ?>" class="brand-link">
-
 
79
				<?php if ($company) :
126
	<div class="wrapper" id="menu-sidebar">
80
					$names = explode(' ', $company->name);
-
 
81
 
-
 
82
				?>
-
 
83
					<img src="<?php echo $this->url('storage', ['type' => 'company', 'code' => $company->uuid, 'filename' => $company->image]) ?>" alt="<?php echo $company->name ?>" class="brand-image " style="opacity: .8; background-color: white">
-
 
84
					<span class="brand-text font-weight-light"><?php echo $names[0] ?></span>
-
 
85
 
-
 
86
				<?php else : ?>
-
 
87
					<img src="<?php echo $this->basePath('img/logo-ll34x34.png') ?>" alt="Administrador" class="brand-image " style="opacity: .8; background-color: white">
-
 
88
					<span class="brand-text font-weight-light">Admin</span>
-
 
89
				<?php endif; ?>
-
 
90
			</a>
-
 
91
 
-
 
92
			<!-- Sidebar -->
-
 
93
			<div class="sidebar">
-
 
94
				<?php echo $this->menuHelper() ?>
-
 
95
 
-
 
96
			</div>
-
 
Línea 97... Línea 127...
97
			<!-- /.sidebar -->
127
 
98
		</aside>
128
		
99
 
129
 
100
		<!-- Content Wrapper. Contains page content -->
130
		<!-- Content Wrapper. Contains page content -->