Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 14145 Rev 14150
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 82... Línea 82...
82
	}	
82
	}	
83
JS;
83
JS;
84
}
84
}
85
$this->inlineScript()->appendScript($js);
85
$this->inlineScript()->appendScript($js);
86
$this->inlineScript()->appendFile('/react-bundles/menu/menuBundle.js');
86
$this->inlineScript()->appendFile('/react-bundles/menu/menuBundle.js');
87
$this->inlineScript()->appendFile('/react-bundles/navbar/navbarBundle.js');
-
 
Línea 88... Línea 87...
88
 
87
 
89
?>
88
?>
90
<!DOCTYPE html>
89
<!DOCTYPE html>
Línea 102... Línea 101...
102
		->appendHttpEquiv('Cache-Control', 'no-cache')
101
		->appendHttpEquiv('Cache-Control', 'no-cache')
103
		->appendHttpEquiv('charset', 'UTF-8')
102
		->appendHttpEquiv('charset', 'UTF-8')
104
		->appendName('viewport', 'width=device-width, initial-scale=1.0');
103
		->appendName('viewport', 'width=device-width, initial-scale=1.0');
105
	?>
104
	?>
Línea 106... Línea 105...
106
 
105
 
107
	<!-- Google Font: Source Sans Pro -->
106
<!-- Google Font: Source Sans Pro -->
108
	<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">
109
	<!-- Font Awesome -->
108
<!-- Font Awesome -->
110
	<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') ?>">
111
	<!-- Theme style -->
110
	<!-- Theme style -->
112
	<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') ?>">
113
	<!-- App style -->
112
	<!-- App style -->
114
	<link rel="stylesheet" href="<?php echo $this->basePath('css/app.css') ?>">
113
	<link rel="stylesheet" href="<?php echo $this->basePath('css/app.css') ?>">
115
	<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 116... Línea 115...
116
	<script src="<?php echo $this->basePath('plugins/ckeditor/ckeditor.js') ?>"></script>
115
	<script src="<?php echo $this->basePath('plugins/ckeditor/ckeditor.js') ?>"></script>
117
 
116
 
118
	<?php if ($currentUserHelper->hasIdentity()) :  ?>
117
	<?php if ($currentUserHelper->hasIdentity()) :  ?>
119
		<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') ?>" />
120
		<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') ?>" />
121
		<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') ?>" />
122
		<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') ?>" />
123
 
122
    
124
		<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') ?>" />
125
	<?php endif; ?>
124
	<?php endif; ?>
126
	<?php
125
	<?php
127
	echo $this->headStyle();
126
	echo $this->headStyle();
128
	echo $this->headLink();
127
	echo $this->headLink();
-
 
128
	echo $this->headScript();
Línea 129... Línea -...
129
	echo $this->headScript();
-
 
130
	?>
129
	?>
131
 
130
	
Línea 132... Línea 131...
132
 
131
 
133
 
132
	
134
</head>
-
 
135
 
133
</head>
136
<body class="hold-transition sidebar-mini">
134
 
137
	<!-- Site wrapper -->
-
 
138
	<nav id="menu-nav" class="navbar navbar-expand navbar-white navbar-light">
135
<body class="hold-transition sidebar-mini">
139
	</nav>
-
 
Línea 140... Línea 136...
140
 
136
	<!-- Site wrapper -->
141
	<div class="wrapper" style="height: 100vh;overflow: scroll;">
137
	<div class="wrapper">
142
		<aside id="menu-sidebar" class="main-sidebar sidebar-light-primary right-border">
138
		
143
		</aside>
139
		<div id="menu-sidebar"></div>
144
 
140
 
-
 
141
		<!-- Content Wrapper. Contains page content -->
145
		<!-- Content Wrapper. Contains page content -->
142
		<div class="content-wrapper">
146
		<div class="content-wrapper">
143
			<section class="content">
147
			<section class="content">
144
				<?php echo $this->content ?>
148
				<?php echo $this->content ?>
145
			</section>
149
			</section>
146
			
150
 
147
			
151
			<?php
148
			<?php 
152
			if ($currentUserHelper->hasIdentity()) {
149
			if ($currentUserHelper->hasIdentity()) {
153
				echo $this->chatHelper($user->id);
150
			    echo $this->chatHelper($user->id); 
154
			}
151
			}
155
			?>
152
			?>
156
 
153
			
Línea 172... Línea 169...
172
		<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>
173
	<?php endif; ?>
170
	<?php endif; ?>
174
	<?php
171
	<?php
175
	echo $this->inlineScript();
172
	echo $this->inlineScript();
176
	?>
173
	?>
177
 
174
	
178
 
175
	
179
</body>
176
</body>
Línea 180... Línea 177...
180
 
177
 
181
</html>
178
</html>