forked from arnabwahid/octopress-classic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
archive.php
56 lines (46 loc) · 1.21 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
48
49
50
51
52
53
54
55
56
<?php
/**
* Part: archive.php
*
* @package WordPress
* @subpackage octopress-classic
* @since 1.0
*/
?>
<?php get_header(); ?>
<div id="main">
<div id="content">
<div class="container">
<article role="article">
<header>
<?php if ( is_category() || is_tag() ) : ?>
<h1 class="entry-title"><?php single_cat_title(); ?></h1>
<?php else : ?>
<h1 class="entry-title"><?php the_archive_title(); ?></h1>
<?php endif; ?>
</header>
<div id="blog-archives">
<h2>↓</h2>
<?php if ( have_posts() ) : ?>
<?php while ( have_posts() ) : ?>
<?php the_post(); ?>
<article>
<h1><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h1>
<time datetime="" pubdate>
<span class="month"><?php echo wp_kses_post( get_the_time( 'M' ) ); ?></span>
<span class="day"><?php echo wp_kses_post( get_the_time( 'd' ) ); ?></span>
<span class="year"></span>
</time>
</article>
<?php endwhile; ?>
<?php endif; ?>
</div>
</article>
<?php octopress_pagination(); ?>
</div>
<aside class="sidebar thirds">
<?php dynamic_sidebar(); ?>
</aside>
</div>
</div>
<?php get_footer(); ?>