-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patharchive.php
47 lines (44 loc) · 1.44 KB
/
archive.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
<?php get_header(); ?>
<div class="top-title-wrapper">
<div class="container">
<div class="row">
<div class="col-md-12 col-sm-12 page-info">
<h1 class="page-title">
<?php if ( is_day() ) : ?>
<?php _e( "Daily Archives:", 'stt' ); echo (get_the_date()); ?>
<?php elseif ( is_month() ) : ?>
<?php _e( "Monthly Archives:", 'stt' ); echo (get_the_date( 'F Y' )); ?>
<?php elseif ( is_year() ) : ?>
<?php _e( "Yearly Archives:", 'stt' ); echo (get_the_date( 'Y' )); ?>
<?php else : ?>
<?php _e( "Blog Archives", 'stt' ); ?>
<?php endif; ?>
</h1>
</div>
</div>
</div>
</div>
<?php echo get_page_top_spacer(); ?>
<div class="content-wrapper"><div class="body-wrapper">
<div class="container">
<div class="row">
<div class="col-md-8 col-sm-8">
<?php while(have_posts()):the_post();
global $more; $more = 0;
get_template_part( 'content', get_post_format() );
endwhile; ?>
<div class="pagination">
<?php if ( get_next_posts_link() ): ?>
<?php next_posts_link('<span class="prev">←</span>'.__('Older posts', 'stt' ) ); ?>
<?php endif; ?>
<?php if ( get_previous_posts_link() ): ?>
<?php previous_posts_link( __( 'Newer posts', 'stt' ). '<span class="next">→</span>' ); ?>
<?php endif; ?>
</div>
</div>
<?php get_sidebar(); ?>
</div>
</div>
</div>
</div>
<?php get_footer(); ?>