-
Notifications
You must be signed in to change notification settings - Fork 0
/
archive.php
executable file
·50 lines (43 loc) · 1.57 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
<?php Nuclear::render_template($header_templates); ?>
<?php if (have_posts()): ?>
<?php if ( is_day() ) : ?>
<h2>Archive: <?php echo get_the_date( 'D M Y' ); ?></h2>
<?php elseif ( is_month() ) : ?>
<h2>Archive: <?php echo get_the_date( 'M Y' ); ?></h2>
<?php elseif ( is_year() ) : ?>
<h2>Archive: <?php echo get_the_date( 'Y' ); ?></h2>
<?php else : ?>
<h2>Archive</h2>
<?php endif; ?>
<ol class="list-unstyled">
<?php while (have_posts()) : the_post(); ?>
<li>
<article id="post-<?php the_ID(); ?>" <?php post_class('cf entry'); ?> role="article">
<header class="entry-header">
<h1 class="entry-title single-title">
<a href="<?php esc_url( the_permalink() ); ?>" title="Permalink to <?php the_title(); ?>" rel="bookmark">
<?php the_title(); ?>
</a>
</h1>
<time datetime="<?php the_time( 'Y-m-d' ); ?>" pubdate>
<?php the_date(); ?> <?php the_time(); ?>
</time>
<?php comments_popup_link('Leave a Comment', '1 Comment', '% Comments'); ?>
</header>
<section class="cf entry-content">
<?php the_content(); ?>
<?php wp_link_pages([
'before' => '<div class="page-links"><span class="page-links-title">' . __('Pages:') . '</span>',
'after' => '</div>',
'link_before' => '<span>',
'link_after' => '</span>',
]); ?>
</section>
</article>
</li>
<?php endwhile; ?>
</ol>
<?php else: ?>
<h2>No posts to display</h2>
<?php endif; ?>
<?php Nuclear::render_template($footer_templates); ?>