-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
49 lines (42 loc) · 1.24 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
<?php
/*
| fur.zerendo - A small configurable blogger template.
| @file ./index.php
| @author SamBrishes <[email protected]>
| @version 1.0.0
|
| @website https://github.com/pytesNET/fur.zerendo
| @license X11 / MIT License
| @copyright Copyright © 2018 - 2019 SamBrishes, pytesNET <[email protected]>
*/
if(!defined("BLUDIT")){ die("Go directly to Jail. Do not pass Go. Do not collect 200 Cookies!"); }
// Render Header
pd_get_part("header");
// Render Homepage
if(pd_is_home(true)){
pd_get_part("templates", "home");
} else
// Render 404
if(pd_is_404()){
pd_get_part("templates", "404");
} else
// Render Search
if(pd_is_search()){
pd_get_part("templates", "search");
} else
// Render Archive
if(pd_is_category() || pd_is_tag()){
pd_get_part("templates", "archive");
} else
// Render Page Templates
if(pd_is_page()){
if(pd_is_template("fullwidth")){
pd_get_part("templates", "page-fullwidth");
} else if(pd_is_static()){
pd_get_part("templates", "page-static");
} else {
pd_get_part("templates", "page");
}
}
// Render Footer
pd_get_part("footer");