Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 11741 Rev 14132
Línea 47... Línea 47...
47
 
47
 
48
//[REQUEST_URI] => /settings/company-sizes/
48
//[REQUEST_URI] => /settings/company-sizes/
Línea 49... Línea 49...
49
$request_uri = isset($_SERVER['REQUEST_URI']) ? $_SERVER['REQUEST_URI'] : '';
49
$request_uri = isset($_SERVER['REQUEST_URI']) ? $_SERVER['REQUEST_URI'] : '';
50
 
50
 
51
if ($request_uri) {
51
if ($request_uri) {
52
  if (substr($request_uri, 0, 1) == '/') {
52
	if (substr($request_uri, 0, 1) == '/') {
53
    $request_uri = substr($request_uri, 1);
53
		$request_uri = substr($request_uri, 1);
54
  }
54
	}
55
  if (substr($request_uri, strlen($request_uri) - 1, 1) == '/') {
55
	if (substr($request_uri, strlen($request_uri) - 1, 1) == '/') {
56
    $request_uri = substr($request_uri, 0, strlen($request_uri) - 1);
56
		$request_uri = substr($request_uri, 0, strlen($request_uri) - 1);
Línea 57... Línea 57...
57
  }
57
	}
Línea 58... Línea 58...
58
}
58
}
59
 
59
 
60
$acl = $this->viewModel()->getCurrent()->getVariable('acl');
60
$acl = $this->viewModel()->getCurrent()->getVariable('acl');
61
 
61
 
62
$jsonMenu = json_encode($menu);
62
$jsonMenu = json_encode($menu);
63
	
63
 
64
if($company){
64
if ($company) {
65
$js = <<<JS
65
	$js = <<<JS
66
	const backendVars= {
66
	const backendVars= {
Línea 101... Línea 101...
101
		->appendHttpEquiv('Cache-Control', 'no-cache')
101
		->appendHttpEquiv('Cache-Control', 'no-cache')
102
		->appendHttpEquiv('charset', 'UTF-8')
102
		->appendHttpEquiv('charset', 'UTF-8')
103
		->appendName('viewport', 'width=device-width, initial-scale=1.0');
103
		->appendName('viewport', 'width=device-width, initial-scale=1.0');
104
	?>
104
	?>
Línea 105... Línea 105...
105
 
105
 
106
<!-- Google Font: Source Sans Pro -->
106
	<!-- Google Font: Source Sans Pro -->
107
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700&display=fallback">
107
	<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700&display=fallback">
108
<!-- Font Awesome -->
108
	<!-- Font Awesome -->
109
<link rel="stylesheet" href="<?php echo $this->basePath('plugins/font-awesome/css/font-awesome.css') ?>">
109
	<link rel="stylesheet" href="<?php echo $this->basePath('plugins/font-awesome/css/font-awesome.css') ?>">
110
	<!-- Theme style -->
110
	<!-- Theme style -->
111
	<link rel="stylesheet" href="<?php echo $this->basePath('css/adminlte.min.css') ?>">
111
	<link rel="stylesheet" href="<?php echo $this->basePath('css/adminlte.min.css') ?>">
112
	<!-- App style -->
112
	<!-- App style -->
113
	<link rel="stylesheet" href="<?php echo $this->basePath('css/app.css') ?>">
113
	<link rel="stylesheet" href="<?php echo $this->basePath('css/app.css') ?>">
114
	<link rel="stylesheet" href="<?php echo $this->basePath('/react-bundles/menu/main.css') ?>">
114
	<link rel="stylesheet" href="<?php echo $this->basePath('/react-bundles/menu/main.css') ?>">
Línea 115... Línea 115...
115
	<script src="<?php echo $this->basePath('plugins/ckeditor/ckeditor.js') ?>"></script>
115
	<script src="<?php echo $this->basePath('plugins/ckeditor/ckeditor.js') ?>"></script>
116
 
116
 
117
	<?php if ($currentUserHelper->hasIdentity()) :  ?>
117
	<?php if ($currentUserHelper->hasIdentity()) :  ?>
118
    <link rel="stylesheet" type="text/css" href="<?php echo $this->basePath('css/icons.css') ?>" />
118
		<link rel="stylesheet" type="text/css" href="<?php echo $this->basePath('css/icons.css') ?>" />
119
    <link rel="stylesheet" type="text/css" href="<?php echo $this->basePath('vendors/smiley/assets/sprites/emojione.sprites.css') ?>" />
119
		<link rel="stylesheet" type="text/css" href="<?php echo $this->basePath('vendors/smiley/assets/sprites/emojione.sprites.css') ?>" />
120
    <link rel="stylesheet" type="text/css" href="<?php echo $this->basePath('vendors/uploader/jquery.ui.plupload/css/jquery-ui.css') ?>" />
120
		<link rel="stylesheet" type="text/css" href="<?php echo $this->basePath('vendors/uploader/jquery.ui.plupload/css/jquery-ui.css') ?>" />
121
    <link rel="stylesheet" type="text/css" href="<?php echo $this->basePath('vendors/uploader/jquery.ui.plupload/css/jquery.ui.plupload.css') ?>" />
121
		<link rel="stylesheet" type="text/css" href="<?php echo $this->basePath('vendors/uploader/jquery.ui.plupload/css/jquery.ui.plupload.css') ?>" />
122
    
122
 
123
    <link rel="stylesheet" type="text/css" href="<?php echo $this->basePath('css/chat.css') ?>" />
123
		<link rel="stylesheet" type="text/css" href="<?php echo $this->basePath('css/chat.css') ?>" />
124
	<?php endif; ?>
124
	<?php endif; ?>
125
	<?php
125
	<?php
126
	echo $this->headStyle();
126
	echo $this->headStyle();
127
	echo $this->headLink();
127
	echo $this->headLink();
128
	echo $this->headScript();
-
 
Línea -... Línea 128...
-
 
128
	echo $this->headScript();
129
	?>
129
	?>
130
	
130
 
Línea 131... Línea 131...
131
 
131
 
132
	
132
 
133
</head>
133
</head>
134
 
134
 
135
<body class="hold-transition sidebar-mini">
135
<body class="hold-transition sidebar-mini">
Línea 136... Línea 136...
136
	<!-- Site wrapper -->
136
	<!-- Site wrapper -->
137
	<div class="wrapper">
137
	<div class="wrapper">
138
		
138
 
139
		<div id="menu-sidebar"></div>
139
		<aside id="menu-sidebar" class="main-sidebar sidebar-light-primary right-border"></aside>
140
 
140
 
141
		<!-- Content Wrapper. Contains page content -->
141
		<!-- Content Wrapper. Contains page content -->
142
		<div class="content-wrapper">
142
		<div class="content-wrapper">
143
			<section class="content">
143
			<section class="content">
144
				<?php echo $this->content ?>
144
				<?php echo $this->content ?>
145
			</section>
145
			</section>
146
			
146
 
147
			
147
 
148
			<?php 
148
			<?php
149
			if ($currentUserHelper->hasIdentity()) {
149
			if ($currentUserHelper->hasIdentity()) {
150
			    echo $this->chatHelper($user->id); 
150
				echo $this->chatHelper($user->id);
151
			}
151
			}
152
			?>
152
			?>
153
			
153
 
Línea 169... Línea 169...
169
		<script type="text/javascript" src="<?php echo $this->basePath('vendors/smiley/js/emojione.min.js') ?>"></script>
169
		<script type="text/javascript" src="<?php echo $this->basePath('vendors/smiley/js/emojione.min.js') ?>"></script>
170
	<?php endif; ?>
170
	<?php endif; ?>
171
	<?php
171
	<?php
172
	echo $this->inlineScript();
172
	echo $this->inlineScript();
173
	?>
173
	?>
174
	
174
 
175
	
175
 
176
</body>
176
</body>
Línea 177... Línea 177...
177
 
177
 
178
</html>
178
</html>