forked from ronaldaug/styler
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
executable file
·73 lines (55 loc) · 1.93 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<!DOCTYPE html>
<html lang="<?php echo Theme::lang() ?>">
<head>
<?php include(THEME_DIR_PHP.'head.php'); ?>
</head>
<body>
<!-- Load Bludit Plugins: Site Body Begin -->
<?php Theme::plugins('siteBodyBegin'); ?>
<!-- Navbar -->
<?php include(THEME_DIR_PHP.'navbar.php'); ?>
<!-- Slider -->
<?php include(THEME_DIR_PHP.'slider.php'); ?>
<!-- Content -->
<div class="container my-4">
<div class="row">
<!-- Blog Posts -->
<div class="col-md-12">
<?php
if ($WHERE_AM_I == 'category' && $page->category()) {
echo '<h4><span class="la la-tag mr-2"></span> '. $page->category() .'</h4>';
}
// Bludit content are pages
// But if you order the content by date
// These pages works as posts
// $WHERE_AM_I variable detect where the user is browsing
// If the user is watching a particular page/post the variable takes the value "page"
// If the user is watching the frontpage the variable takes the value "home"
if ($WHERE_AM_I == 'page') {
include(THEME_DIR_PHP.'page.php');
} else {
include(THEME_DIR_PHP.'home.php');
}
?>
</div>
</div>
</div>
<!-- Footer -->
<?php include(THEME_DIR_PHP.'footer.php'); ?>
<!-- Javascript -->
<?php
// Include Jquery file from Bludit Core
echo Theme::jquery();
// Include javascript Bootstrap file from Bludit Core
echo Theme::jsBootstrap();
// Animate on scroll
echo Theme::js('https://unpkg.com/[email protected]/dist/aos.js', false);
// Tiny Slider (https://ganlanyuan.github.io/tiny-slider/)
echo Theme::js('https://cdnjs.cloudflare.com/ajax/libs/tiny-slider/2.9.2/min/tiny-slider.js',false);
// Main CSS
echo Theme::js('js/main.js');
?>
<!-- Load Bludit Plugins: Site Body End -->
<?php Theme::plugins('siteBodyEnd'); ?>
</body>
</html>