This repository was archived by the owner on Mar 25, 2024. It is now read-only.
Repository navigation
Expand file tree
/
Copy pathsingle.php
More file actions
74 lines (58 loc) · 2.55 KB
/
Copy pathsingle.php
File metadata and controls
74 lines (58 loc) · 2.55 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
66
67
68
69
70
71
72
73
74
<?php
/**
* @author Sovware
* @since 1.0
* @version 1.0
*/
namespace Sovware\Theme;
get_header();
Helper::setPostViews(get_the_id());
?>
<div class="blog-details-wrapper">
<div class="blog-banner-area__shape1"><img src="<?php echo Helper::get_svg('shapes/shape-rounded.svg'); ?>" alt="blog left design shape" height="293" width="585"></div>
<div class="blog-banner-area__shape2"><?php echo Helper::the_svg("shapes/shape-circle-cut"); ?></div>
<div class="container">
<div class="row">
<div class="col-md-10 offset-md-1">
<?php
if (have_posts()) {
while (have_posts()) {
the_post();
?>
<?php if (has_post_thumbnail()) { ?>
<div class="blog-details-thumbnail">
<?php the_post_thumbnail('single-blog'); ?>
</div>
<?php } ?>
<article class="blog-details">
<?php do_action( 'theme_single_post_table_of_content', get_the_content() ); ?>
<div class="blog-details-content">
<h1><?php the_title(); ?></h1>
<?php get_template_part('template-parts/content-meta'); ?>
<div class="blog-body"><?php the_content(); ?></div>
<div class="blog-tags"><?php echo get_the_tag_list(' '); ?></div>
<?php get_template_part('template-parts/social-share'); ?>
<?php get_template_part('template-parts/author-bio'); ?>
</div>
<div class="blog-share-top">
<?php get_template_part('template-parts/social-share'); ?>
</div>
<?php get_template_part('template-parts/related-blogs');
if (comments_open() || get_comments_number()) {
comments_template();
}
?>
</article>
<?php
}
}
else {
get_template_part('template-parts/content', 'none');
}
?>
</div>
</div>
</div>
</div>
<?php
get_footer();