-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdate.php
More file actions
84 lines (69 loc) · 1.94 KB
/
date.php
File metadata and controls
84 lines (69 loc) · 1.94 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
75
76
77
78
79
80
81
82
83
<?php
get_header();
?>
<section id="page-title">
<div class="container clearfix">
<h1><?php the_archive_title(); ?></h1>
<span>
<?php
if (is_year()) {
?>
You're viewing a year archive.
<?php
}else if (is_month()) {
?>
You're viewing a month archive.
<?php
}else if (is_day()) {
?>
You're viewing a day archive.
<?php
}
?>
</span>
</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('partials/post/content-excerpt');*/
get_template_part( 'partials/post/content', 'excerpt' );
endwhile;
endif;
?>
</div><!-- #posts end -->
<!-- Pagination
============================================= -->
<div class="row mb-3">
<div class="col-12">
<?php
next_posts_link( '← Older' );
previous_posts_link( 'Newer →' );
?>
<!--<a href="#" class="btn btn-outline-secondary float-left">
← Older
</a>
<a href="#" class="btn btn-outline-dark float-right">
Newer →
</a>-->
</div>
</div>
<!-- .pager end -->
</div><!-- .postcontent end -->
<?php get_sidebar(); ?>
</div>
</div>
</section><!-- #content end -->
<?php get_footer();