This repository was archived by the owner on Apr 23, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patharchive.php
More file actions
53 lines (44 loc) · 1.26 KB
/
Copy patharchive.php
File metadata and controls
53 lines (44 loc) · 1.26 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
<?php
/**
* archive.php
*
*
*/
?>
<?php get_header(); ?>
<div class="row">
<div class="col-sm-12">
<?php $title = $wp_query->get_queried_object(); ?>
<h1>
<?php
echo 'Archive for <em>';
// echo out correct title depending on archive type
if ( is_day() ) {
echo the_time('F jS, Y');
}
elseif ( is_month() ) {
echo the_time('F Y');
}
elseif ( is_year() ) {
echo the_time('Y');
}
else {
echo $title->name;
}
echo '</em>';
?>
</h1>
<hr>
</div>
</div>
<div class="row">
<div class="col-sm-8 blog-main">
<?php
// get the default loop
get_template_part( 'loop' );
?>
</div><!-- /.blog-main -->
<?php get_sidebar(); ?>
</div><!-- /.row -->
</div><!-- /.container -->
<?php get_footer(); ?>