Repository navigation
Expand file tree
/
Copy pathsingle.php
More file actions
57 lines (56 loc) · 2.22 KB
/
Copy pathsingle.php
File metadata and controls
57 lines (56 loc) · 2.22 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
<?php get_header(); ?>
<div class="container">
<div class="posts-content">
<?php if (have_posts()) : ?>
<?php while(have_posts()) : the_post(); ?>
<?php get_template_part('content', get_post_format());
if ( comments_open() || get_comments_number() ) :
comments_template();
endif;
?>
<!-- Adding post class function -->
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<!-- Post class function code ends here -->
<p><?php the_tags(); ?></p>
<!-- wp link pages starts-->
<?php wp_link_pages( array(
'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'bs-wp' ) . '</span>',
'after' => '</div>',
'link_before' => '<span>',
'link_after' => '</span>',
) );
?>
<!-- wp link pages finishes -->
<?php endwhile; ?>
<!-- Add pagination -->
<?php pagination_nav(); ?>
<?php else : ?>
<p><?php __('No Posts', 'bs-wp')?></p>
<?php endif; ?>
</div><!-- post div -->
<!--Archive sidebar -->
<div class="sidebar">
<!-- Top right sidebar widget start -->
<?php if ( is_active_sidebar( 'info-top-right' ) ) : ?>
<?php dynamic_sidebar( 'info-top-right' ); ?>
<?php else : ?>
<!-- Time to add some widgets! -->
<?php endif; ?>
<!-- Post archive sidebar widget end -->
<?php if ( is_active_sidebar( 'post-archive' ) ) : ?>
<?php dynamic_sidebar( 'post-archive' ); ?>
<?php else : ?>
<!-- Time to add some widgets! -->
<?php endif; ?>
<!-- Buttom right sidebar widget start -->
<?php if ( is_active_sidebar( 'social-buttom-right' ) ) : ?>
<?php dynamic_sidebar( 'social-buttom-right' ); ?>
<?php else : ?>
<!-- Time to add some widgets! -->
<?php endif; ?>
<!-- Top right sidebar widget end -->
</div> <!--sidebars-->
<!-- </div> row -->
</div> <!-- Container -->
<!--blog-->
<?php get_footer(); ?>