-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsingle.php
60 lines (59 loc) · 1.99 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
<?php
if(is_front_page()){
get_header();
}else{
get_header('blog');
}
?>
<!-- Page header Start -->
<section class="page-header" <?php if(has_post_thumbnail()) : ?> style="background-image:url(<?php the_post_thumbnail_url(); ?>)" <?php endif; ?>>
<div class="container">
<div class="row justify-content-md-center">
<div class="col-md-12">
<div class="breadcrumb-wrapper text-center">
<h2><?php echo esc_html__('Single Post', 'minimal');?></h2>
<p><a href="<?php echo site_url(); ?>">Home </a><?php echo esc_html__('/ Single Blog', 'minimal'); ?></p>
</div>
</div>
</div>
</div>
</section>
<!-- Page header End -->
<!-- Blog Section Start -->
<div id="blog-single">
<div class="container">
<div class="row">
<div class="col-lg-8 col-md-12 col-xs-12">
<?php while(have_posts()) : the_post(); ?>
<div class="blog-post <?php post_class(); ?>">
<?php if(has_post_thumbnail()) : ?>
<div class="post-thumb">
<?php the_post_thumbnail(); ?>
</div>
<?php else : ?>
<div class="post-thumb">
<img src="<?php echo get_template_directory_uri(); ?>/assets/img/blog/blog-1-big.jpg" alt="" />
</div>
<?php endif; ?>
<div class="post-content">
<?php the_title('<h3>', '</h3'); ?>
<?php the_content(); ?>
</div>
</div>
<?php endwhile; ?>
<div class="single-post-comments">
<?php
if ( comments_open() || get_comments_number() ) :
comments_template();
endif;
?>
</div>
</div>
<div class="col-lg-4 col-md-12 col-xs-12">
<?php get_sidebar(); ?>
</div>
</div>
</div>
</div>
<!-- Blog Section End -->
<?php get_footer(); ?>