forked from shiasi/layladiary
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
57 lines (45 loc) · 1.34 KB
/
index.php
File metadata and controls
57 lines (45 loc) · 1.34 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
<!DOCTYPE html>
<html lang="<?php echo Theme::lang() ?>">
<head>
<?php include(THEME_DIR_PHP . 'head.php'); ?>
</head>
<!--
'Layla's Diary' is a bludit theme by Shevina.
Bulma CSS & Vanilla Javascript
shevina.ir | @shevina.ir (instagram) | shevina.shiasi [at] gmail.com
Released under the "GPL v3" license (https://www.gnu.org/licenses/gpl-3.0.en.html)
-->
<body>
<!-- Load plugins with the hook siteBodyBegin -->
<?php Theme::plugins('siteBodyBegin') ?>
<!--- Header -->
<header class="">
<!-- Navbar -->
<?php include(THEME_DIR_PHP . 'navbar.php'); ?>
</header>
<?php
if ($WHERE_AM_I == 'page') {
// check for front page
if ($page->slug() == 'front' || $page->slug() == 'home') {
include(THEME_DIR_PHP . 'front.php');
} else {
include(THEME_DIR_PHP . 'page.php');
}
// load the blog.php
} else {
include(THEME_DIR_PHP . 'blog.php');
}
?>
<!-- FOOTER -->
<?php
if ($WHERE_AM_I == 'page' && $page->slug() == 'front') {
include(THEME_DIR_PHP . 'frontFooter.php');
} else {
include(THEME_DIR_PHP . 'footer.php');
}
?>
<!-- Load plugins with the hook siteBodyBegin -->
<?php Theme::plugins('siteBodyEnd') ?>
<?php echo Theme::js('assets/js/main.js'); ?>
</body>
</html>