-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patharchive.php
executable file
·29 lines (23 loc) · 1.35 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
<?php get_header(); ?>
<div class="content-title">
<?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?>
<?php /* If this is a category archive */ if (is_category()) { ?>
<?php printf(__('%s'), single_cat_title('', false)); ?>
<?php /* If this is a tag archive */ } elseif( is_tag() ) { ?>
<?php printf(__('Posts tagged "%s"'), single_tag_title('', false) ); ?>
<?php /* If this is a daily archive */ } elseif (is_day()) { ?>
<?php printf(_c('Daily archive %s'), get_the_time(__('M j, Y'))); ?>
<?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
<?php printf(_c('Monthly archive %s'), get_the_time(__('F, Y'))); ?>
<?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
<?php printf(_c('Yearly archive %s'), get_the_time(__('Y'))); ?>
<?php /* If this is an author archive */ } elseif (is_author()) { ?>
<?php _e('Author Archive'); ?>
<?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
<?php _e('Blog Archives'); ?>
<?php } ?>
<a href="javascript: void(0);" id="mode"<?php if ($_COOKIE['mode'] == 'grid') echo ' class="flip"'; ?>></a>
</div>
<?php get_template_part('loop'); ?>
<?php get_template_part('pagination'); ?>
<?php get_footer(); ?>