forked from bludit-themes/typerite
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
executable file
·189 lines (153 loc) · 7.43 KB
/
index.php
File metadata and controls
executable file
·189 lines (153 loc) · 7.43 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
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
<!DOCTYPE html>
<html class="no-js" lang="<?php echo Theme::lang() ?>">
<head>
<!--- basic page needs
================================================== -->
<meta charset="utf-8">
<?php echo Theme::metaTags('title') ?>
<?php echo Theme::metaTags('description') ?>
<meta name="author" content="">
<meta name="generator" content="Bludit">
<!-- mobile specific metas
================================================== -->
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- CSS
================================================== -->
<?php echo Theme::css('css/base.css') ?>
<?php echo Theme::css('css/vendor.css') ?>
<?php echo Theme::css('css/main.css') ?>
<?php echo Theme::css('css/bludit.css') ?>
<!-- script
================================================== -->
<?php echo Theme::js('js/modernizr.js') ?>
<!-- favicons
================================================== -->
<link rel="apple-touch-icon" sizes="180x180" href="<?php echo Theme::src('apple-touch-icon.png') ?>">
<link rel="icon" type="image/png" sizes="32x32" href="<?php echo Theme::src('favicon-32x32.png') ?>">
<link rel="icon" type="image/png" sizes="16x16" href="<?php echo Theme::src('favicon-16x16.png') ?>">
<link rel="manifest" href="<?php echo Theme::src('site.webmanifest') ?>">
<!-- Load Bludit Plugins: Site head -->
<?php Theme::plugins('siteHead') ?>
</head>
<body>
<!-- Load Bludit Plugins: Site Body Begin -->
<?php Theme::plugins('siteBodyBegin') ?>
<!-- preloader
================================================== -->
<div id="preloader">
<div id="loader" class="dots-fade">
<div></div>
<div></div>
<div></div>
</div>
</div>
<div id="top" class="s-wrap site-wrapper">
<!-- site header
================================================== -->
<header class="s-header">
<div class="header__top">
<div class="header__logo">
<a class="site-logo" href="<?php echo Theme::siteUrl() ?>">
<img src="<?php echo ($site->logo()?$site->logo():Theme::src('images/logo.svg')) ?>" alt="Homepage">
</a>
</div>
<?php if (pluginActivated('pluginSearch')): ?>
<div class="header__search">
<form role="search" method="get" class="header__search-form" action="#">
<label>
<span class="hide-content">Search for:</span>
<input id="search-input" type="search" class="header__search-field" placeholder="Type Keywords" value="" name="s" title="Search for:" autocomplete="off">
</label>
<input type="button" onClick="searchNow()" class="header__search-submit" value="Search">
</form>
<a href="#0" title="Close Search" class="header__search-close">Close</a>
<script>
function searchNow() {
var searchURL = "<?php echo Theme::siteUrl(); ?>search/";
window.open(searchURL + document.getElementById("search-input").value, "_self");
}
document.getElementById("search-input").onkeypress = function(e) {
if (!e) e = window.event;
var keyCode = e.keyCode || e.which;
if (keyCode == '13') {
searchNow();
return false;
}
}
</script>
</div> <!-- end header__search -->
<a href="#0" class="header__search-trigger"></a>
<?php endif ?>
<a href="#0" class="header__menu-toggle"><span>Menu</span></a>
</div> <!-- end header__top -->
<nav class="header__nav-wrap">
<ul class="header__nav">
<li class="current"><a href="<?php echo Theme::siteUrl() ?>" title="">Home</a></li>
<!-- Categories -->
<li class="has-children">
<a href="#0" title="">Categories</a>
<ul class="sub-menu">
<?php foreach ($categories->db as $categoryKey=>$categoryFields): ?>
<li><a href="<?php echo DOMAIN_CATEGORIES.$categoryKey ?>"><?php echo $categoryFields['name'] ?></a></li>
<?php endforeach ?>
</ul>
</li>
<!-- Static pages -->
<?php foreach ($staticContent as $staticPage): ?>
<li><a href="<?php echo $staticPage->permalink() ?>" title=""><?php echo $staticPage->title() ?></a></li>
<?php endforeach ?>
</ul> <!-- end header__nav -->
<!-- Social Networks -->
<ul class="header__social">
<?php foreach (Theme::socialNetworks() as $key=>$label): ?>
<li class="ss-<?php echo $key ?>">
<a href="<?php echo $site->{$key}() ?>">
<span class="screen-reader-text"><?php echo $label ?></span>
</a>
</li>
<?php endforeach ?>
<!-- RSS -->
<?php if (Theme::rssUrl()): ?>
<li class="ss-rss">
<a href="<?php echo Theme::rssUrl() ?>">
<span class="screen-reader-text">RSS</span>
</a>
</li>
<?php endif; ?>
</ul>
</nav> <!-- end header__nav-wrap -->
</header> <!-- end s-header -->
<!-- site content
================================================== -->
<?php
if ($WHERE_AM_I == 'page') {
include(THEME_DIR.'page.php');
} else {
include(THEME_DIR.'home.php');
}
?>
<!-- footer
================================================== -->
<footer class="s-footer">
<div class="row">
<div class="column large-full footer__content">
<div class="footer__copyright">
<span><?php echo $site->footer() ?></span>
<span>Design by <a href="https://www.styleshout.com/">StyleShout</a></span>
<span>Powered by <a href="https://www.bludit.com/">Bludit</a></span>
</div>
</div>
</div>
<div class="go-top">
<a class="smoothscroll" title="Back to Top" href="#top"></a>
</div>
</footer>
</div> <!-- end s-wrap -->
<!-- Java Script
================================================== -->
<?php echo Theme::jquery() ?>
<?php echo Theme::js('js/plugins.js') ?>
<?php echo Theme::js('js/main.js') ?>
<!-- Load Bludit Plugins: Site Body End -->
<?php Theme::plugins('siteBodyEnd') ?>
</body>