-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsingle.php
More file actions
executable file
·53 lines (45 loc) · 2.48 KB
/
single.php
File metadata and controls
executable file
·53 lines (45 loc) · 2.48 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
<?php
get_header();
?>
<?php get_template_part('template-parts/category-nav'); ?>
<main class="main-content-wrapper">
<div class="d-flex flex-column justify-content-between min-vh-100">
<?php get_template_part('template-parts/toolbar'); ?>
<div>
<div class="content-area pt-4 pb-5 mx-auto flex-grow-1">
<div>
<h1 class="single-post-title fw-bold">
<?php the_title(); ?>
</h1>
<?php
the_tags('<div class="my-3 content-categories">Topics - ', '', '</div>' );
?>
<div class="d-flex flex-wrap post-meta-info">
<a href="" class="d-flex text-decoration-none text-light me-3 position-relative">
<i class="ri-edit-line text-primary align-self-center me-2"></i>
<span class="text-xsm text-muted lh-1 align-self-center">Written By</span>
<span class="align-self-center"> - </span>
<span class="align-self-center"><?php echo get_the_author_meta('display_name'); ?></span>
</a>
<a href="" class="d-flex text-decoration-none text-light me-3 position-relative">
<i class="ri-calendar-todo-line text-primary align-self-center me-2"></i>
<span class="text-xsm align-self-center"><?php echo get_the_date(); ?></span>
</a>
<a href="" class="d-flex text-decoration-none text-light me-3 position-relative">
<i class="ri-file-copy-fill text-primary align-self-center me-2"></i>
<span class="text-xsm align-self-center"><?php echo get_the_category()[0]->cat_name; ?></span>
</a>
</div>
<?php
if(has_post_thumbnail()) {
the_post_thumbnail('large', array('class'=>'img-fluid w-100 rounded-3 mt-4 mb-5'));
}
?>
</div>
<?php
the_content();
?>
</div>
</div>
<?php
get_footer();