-
Notifications
You must be signed in to change notification settings - Fork 0
/
single.php
executable file
·90 lines (79 loc) · 2.95 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 dark_portfolio
*/
get_header();
?>
<main class="site__main row blog">
<?php while ( have_posts() ) : the_post(); ?>
<?php $image = wp_get_attachment_image_src( get_post_thumbnail_id(), 'full' );
?>
<section class="bgimage" style="background-image: linear-gradient(rgba(0, 0, 0, 0.8),rgba(0, 0, 0, 0.8)), url(<?php echo $image[0];?>)">
<div class="container">
<div class="row">
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12" style="padding-top:15vh">
<h1 class="text-center lead-text" title="<?php the_title() ?>">
<?php the_title() ?>
</h1>
<h2 class="text-center ">
<?php the_excerpt(); ?>
</h2>
</div>
</div>
</div>
</section>
<section class="container">
<div class="row">
<div class="col-lg-12">
<div class="entry__meta" style="text-align: center;font-size: 1.6rem;padding-top: 2vh;padding-bottom: 2vh">
<p class="post-meta">
<?php blm_basic_posted_on(); ?>
</p>
</div>
</div>
</div>
<div class="row">
<div class="col-lg-12">
<div id="primary" class="content block__left">
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<div class="content__area">
<?php the_content(); ?>
</div>
</article><!-- #post-## -->
</div><!-- #primary -->
</div>
</div>
<div class="row">
<div class="col-lg-12">
<hr>
</div>
</div>
<div class="row" style="margin-bottom: 5vh">
<div class="col-lg-12">
<?php blm_basic_entry_category_and_tags(); ?>
</div>
<div class="col-lg-12">
<p class="tags">
<?php the_tags( 'Tags: ', ', ', '<br />' ); ?>
</p>
</div>
</div>
<div class="row">
<div class="col-lg-12">
<hr>
</div>
</div>
<div class="row" style="margin-bottom: 5vh">
<div class="col-lg-12">
<?php // If comments are open or we have at least one comment, load up the comment template.
if ( comments_open() || get_comments_number() ) {
comments_template();
} ?>
</div>
</div>
</section><!-- .container -->
<?php endwhile; ?>
</main><!-- .site__main -->
<?php get_footer(); ?>