forked from BeOleg/PHPcontacts
/
index.php
50 lines (47 loc) · 1.2 KB
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<?php
require_once($_SERVER['DOCUMENT_ROOT'] . '/src/includes.php');
?>
<!DOCTYPE html>
<html>
<head>
<title><?=Router::getTitle($viewValue)?></title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="author" content="Oleg Tikhonov">
<meta name="distribution" content="Global">
<meta name="resource-type" content="document">
<meta name="robots" content="INDEX,FOLLOW">
<?php
foreach(Router::getStatics($viewValue, 'css') as $path){
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"{$path}\">";
}
?>
</head>
<body>
<?php
Router::includeView('menu', $viewValue);
?>
<div class="mainFrame">
<div class="jumbotron">
<?php
if(Router::showSearchDialog($viewValue)){
Router::includeView('search');
}
?>
<div id="blockContent" class="tbl">
<?php
Router::includeCtrl($viewValue);
?>
</div>
</div>
</div>
<?php
Router::includeView('footer');
foreach(Router::getStatics($viewValue, 'js') as $path){
echo "<script type=\"text/javascript\" src=\"{$path}\"></script>";
}
?>
</body>
</html>
</body>
</html>