-
Notifications
You must be signed in to change notification settings - Fork 0
/
single.php
90 lines (67 loc) · 1.97 KB
/
single.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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
<?php
/**
* The template for displaying all single posts
*
* @package Understrap
*/
// Exit if accessed directly.
defined('ABSPATH') || exit;
get_header();
$container = get_theme_mod('understrap_container_type');
?>
<div class="post-header-holder" <?php if (has_post_thumbnail()) { ?> style="background-image:url(<?php echo get_the_post_thumbnail_url(); ?>);" <?php } ?>>
<div class="container">
<div class="entry-header">
<?php the_title('<h1 class="entry-title">', '</h1>'); ?>
</div>
</div>
</div>
<div class="post-header-metadata">
<div class="container">
<div class="row">
<div class="col-lg-3">
<i class="fa fa-calendar"></i> Post Date: <?php echo get_the_date('d.m.Y'); ?>
</div>
<div class="col-lg-6">
<i class="fa fa-bars"></i> Post Category: <?php echo get_the_category()[0]->cat_name; ?>
</div>
</div>
</div>
</div>
<div class="wrapper" id="single-wrapper">
<div class="<?php echo esc_attr($container); ?>" id="content" tabindex="-1">
<div class="row">
<div class="col-lg-7">
<main class="site-main" id="main">
<?php
while (have_posts()) {
the_post();
get_template_part('loop-templates/content', 'single');
// understrap_post_nav();
// If comments are open or we have at least one comment, load up the comment template.
// if (comments_open() || get_comments_number()) {
// comments_template();
// }
}
?>
</main>
</div>
<div class="offset-lg-1 col-lg-4">
<div class="right-sidebar-blog-categories">
<h3>Blog Categories</h3>
<ul>
<li>Garden & Household clean-up</li>
<li>Heavy Loads (High volumes of dirt, concrete, bricks or rubble)</li>
<li>Ideal for narrow alleys or small streets</li>
<li>Building Sites</li>
</ul>
</div>
</div>
</div><!-- .row -->
<div class="post-navigation-options">
<?php understrap_post_nav(); ?>
</div>
</div><!-- #content -->
</div><!-- #single-wrapper -->
<?php
get_footer();