-
Notifications
You must be signed in to change notification settings - Fork 184
/
archive.php
executable file
·29 lines (22 loc) · 1.38 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 tag archive */ if ( is_tag() ) { ?>
<?php printf(__('<div class="archive">» Greinar í flokknum „%s“</div>'), single_tag_title('', false) ); ?>
<?php /* If this is a daily archive */ } elseif (is_day()) { ?>
<?php printf(_c('<div class="archive"> Greinasafn %s</div>'), get_the_time(__('M j, Y'))); ?>
<?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
<?php printf(_c('<div class="archive"> Greinasafn %s</div>'), get_the_time(__('F, Y'))); ?>
<?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
<?php printf(_c('<div class="archive"> Greinasafn %s</div>'), get_the_time(__('Y'))); ?>
<?php /* If this is an author archive */ } elseif (is_author()) { ?>
<?php printf(__('<div class="archive"> » Greinar eftir %s</div>'), get_the_author_meta('name2') ); ?>
<?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
<?php _e('Arkífur'); ?>
<?php } ?>
</div>
<!--googleoff: all-->
<?php get_template_part('loop-greinasafn'); ?>
<?php get_template_part('pagination'); ?>
<!--googleon: all-->
<?php get_footer(); ?>