|
|
@@ -0,0 +1,48 @@
|
|
|
+<?php get_header(); ?>
|
|
|
+
|
|
|
+ <div class="container leader">
|
|
|
+ <div class="row">
|
|
|
+ <div class="col-md-12">
|
|
|
+ <h1 class="cm-sans fs-2 archive-heading animate__animated animate__fadeInLeft"><?php echo get_the_archive_title(); ?></h1>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <article id="content" class="single" role="main">
|
|
|
+ <div class="entry-content archive">
|
|
|
+ <?php if ( have_posts() ) : ?>
|
|
|
+ <?php while ( have_posts() ) : the_post(); ?>
|
|
|
+ <div class="col-sm-6">
|
|
|
+ <div class="entry-meta">
|
|
|
+ <div class="date">
|
|
|
+ <?php the_date(); ?>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <h4><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'dw' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h4>
|
|
|
+ <?php the_excerpt(); ?>
|
|
|
+ </div>
|
|
|
+ <?php endwhile; ?>
|
|
|
+ <div class="clear"> </div>
|
|
|
+ <?php dw_paging_nav();
|
|
|
+ else :
|
|
|
+ printf( __( 'Nothing Found', 'dw' ));
|
|
|
+ get_search_form();
|
|
|
+ endif;
|
|
|
+ ?>
|
|
|
+ </div>
|
|
|
+ </article>
|
|
|
+ <?php
|
|
|
+ // Year-to-year navigation (restored from the old archive.php). Based on the
|
|
|
+ // queried year so it works even for an empty year; the "next" link is hidden
|
|
|
+ // when it would point at a future (not-yet-existing) archive.
|
|
|
+ $this_year = (int) get_query_var( 'year' );
|
|
|
+ if ( ! $this_year ) { $this_year = (int) current_time( 'Y' ); }
|
|
|
+ $prev_year = $this_year - 1;
|
|
|
+ $next_year = $this_year + 1;
|
|
|
+ ?>
|
|
|
+ <nav class="dw-year-nav" aria-label="Yearly archives">
|
|
|
+ <a class="dw-year-prev" href="<?php echo esc_url( get_year_link( $prev_year ) ); ?>">← <?php echo $prev_year; ?></a>
|
|
|
+ <?php if ( $next_year <= (int) current_time( 'Y' ) ) : ?>
|
|
|
+ <a class="dw-year-next" href="<?php echo esc_url( get_year_link( $next_year ) ); ?>"><?php echo $next_year; ?> →</a>
|
|
|
+ <?php endif; ?>
|
|
|
+ </nav>
|
|
|
+ </div>
|
|
|
+<?php get_footer('full'); ?>
|