-
Notifications
You must be signed in to change notification settings - Fork 2
/
index_template.inc.php
executable file
·85 lines (73 loc) · 1.65 KB
/
index_template.inc.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
<?php
/**
* @Author: ido_alit
* @Date: 2015-11-12 18:45:37
* @Last Modified by: ido_alit
* @Last Modified time: 2015-11-22 19:23:00
*/
/*
=========================
Be sure that this file not accessed directly
=========================
*/
if (!defined('INDEX_AUTH')) {
die("can not access this file directly");
} elseif (INDEX_AUTH != 1) {
die("can not access this file directly");
}
/*
=========================
Define current public template directory
=========================
*/
define('CURRENT_TEMPLATE_DIR', $sysconf['template']['dir'].'/'.$sysconf['template']['theme'].'/');
/*
=========================
Load config template
=========================
*/
include 'tinfo.inc.php';
utility::loadSettings($dbs);
/*
=========================
Load custome function
=========================
*/
include 'function.php';
/*
=========================
Load header
- open html tag
- head tag
- open body tag
=========================
*/
include 'part/head.php';
/*
=========================
Load content
=========================
| You can change the layout of template part
| by change/move/remove structure of load content part
*/
include 'part/nav.php';
include 'part/hero.php';
if (!isset($_GET['p']) or isset($_GET['keyword']) && isset($_GET['search']) ){
include 'part/service.php';
}
// open row for grouping
include 'part/content/row_open.php';
include 'part/main-content.php';
include 'part/sidebar.php';
// close row
include 'part/content/row_close.php';
include 'part/content/row_close_end_wrap.php';
/*
=========================
Load footer
- close body tag
- close html tag
=========================
*/
include 'part/footer.php';
include 'part/promo.php';