-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
142 lines (90 loc) · 2.07 KB
/
index.php
File metadata and controls
142 lines (90 loc) · 2.07 KB
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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
<?php
include('includes/init.inc.php');
/* start the template engine */
$home = new Template('home');
$home->set('googlefonts', $home->googlefonts([
'Open+Sans' => [
300,
400,
600,
800
]
]));
/* load stylesheets into the page header */
$home->set('stylesheets', $home->load_css([
'font-awesome.min' => [
'type' => 'external',
'log' => true
],
'reset' => [
'type' => 'internal',
'log' => true
],
'style' => [
'type' => 'internal',
'log' => true
]
]));
/* inline template includes */
$home->_include('header');
$home->_include('mobilenav');
$home->_include('sidebar');
$home->_include('content');
$home->_include('footer');
$home->_include('modals');
// $home->set_ip_address(client_ip_address());
/* load javascript into the page body */
$home->set('javascript_body', $home->load_js([
'_globals' => [
'type' => 'internal',
'condition' => null,
'log' => true
],
'_jquery-2.1.4.min' => [
'type' => 'external',
'condition' => null,
'log' => true
],
'console.min' => [
'type' => 'dev',
'condition' => null,
'log' => false
],
'godmode' => [
'type' => 'dev',
'condition' => null,
'log' => false
],
'ga.min' => [
'type' => 'external',
'condition' => null,
'log' => true
],
'firebase.min' => [
'type' => 'external',
'condition' => null,
'log' => true
],
'pace.min' => [
'type' => 'external',
'condition' => null,
'log' => true
],
'typewatch' => [
'type' => 'external',
'condition' => null,
'log' => true
],
'mixitup.min' => [
'type' => 'external',
'condition' => null,
'log' => true
],
'site' => [
'type' => 'internal',
'condition' => null,
'log' => true
],
]));
/* build the page */
$home->build_page();