-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsingle.php
More file actions
65 lines (48 loc) · 1.74 KB
/
single.php
File metadata and controls
65 lines (48 loc) · 1.74 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
58
59
60
61
62
63
64
65
<?php
/**
* The template for displaying all single posts.
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/#single-post
*
* @package comet
*/
get_header(); ?>
<section class="page-title parallax">
<div data-parallax="scroll" data-image-src="<?php global $comet; echo $comet['blog-header-image']['url']; ?>" class="parallax-bg"></div>
<div class="parallax-overlay">
<div class="centrize">
<div class="v-center">
<div class="container">
<div class="title center">
<h1 class="upper"><?php echo $comet['blog-header-title']; ?><span class="red-dot"></span></h1>
<h4><?php echo $comet['blog-header-subtitle']; ?></h4>
<hr>
</div>
</div>
</div>
</div>
</div>
</section>
<section>
<div class="container">
<div class="col-md-8 col-md-offset-2">
<?php while(have_posts()) : the_post(); ?>
<article class="post-single">
<div class="post-info text-center">
<h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
<h6 class="upper"><span>By</span><a href="#"> <?php the_author(); ?></a><span class="dot"></span><span><?php the_time('d F Y'); ?></span><span class="dot"></span><?php the_tags(); ?></h6>
</div>
<div class="post-media">
<?php the_post_thumbnail(); ?>
</div>
<div class="post-body">
<?php the_content(); ?>
</div>
</article>
<?php endwhile; ?>
<hr>
<?php comments_template(); ?>
</div>
</div>
</section>
<?php get_footer(); ?>