-
Notifications
You must be signed in to change notification settings - Fork 0
/
date.php
76 lines (57 loc) · 1.9 KB
/
date.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<?php get_header(); ?>
<!-- Page Title
============================================= -->
<section id="page-title">
<div class="container clearfix">
<h1>
<?php the_archive_title(); ?>
</h1>
</div>
</section><!-- #page-title end -->
<!-- Content
============================================= -->
<section id="content">
<div class="content-wrap">
<div class="container clearfix">
<!-- Post Content
============================================= -->
<div class="postcontent nobottommargin clearfix">
<!-- Posts
============================================= -->
<div id="posts">
<?php if ( have_posts() ) :
while ( have_posts() ) : the_post();
get_template_part( 'templates/post/content', 'excerpt' );
?>
<?php endwhile; else : ?>
<p>
<?php _e( 'Sorry, no posts found.' ); ?>
</p>
<?php endif; ?>
</div><!-- #posts end -->
<!-- Pagination
============================================= -->
<div class="row mb-3">
<div class="col-12">
<?php if (get_next_posts_link()): ?>
<div class="btn btn-outline-dark float-right">
<?php next_posts_link( __('Newer →', 'bodjack') ); ?>
</div>
<?php endif; ?>
<?php if (get_previous_posts_link()): ?>
<div class="btn btn-outline-secondary float-left">
<?php previous_posts_link( __('← Older', 'bodjack') ); ?>
</div>
<?php endif; ?>
</div>
</div>
<!-- .pager end -->
</div><!-- .postcontent end -->
<!-- Sidebar
============================================= -->
<?php get_sidebar(); ?>
</div><!-- .sidebar end -->
</div>
</div>
</section><!-- #content end -->
<?php get_footer(); ?>