|
@@ -3,25 +3,56 @@
|
|
|
<div class="container">
|
|
|
<div id="content" role="main">
|
|
|
<div class="entry-content archive">
|
|
|
- <?php if ( have_posts() ) : ?>
|
|
|
- <header class="page-header">
|
|
|
- <h1 class="super cm-sans wow fadeInLeft">Archive: <?php the_time('Y'); ?></h1>
|
|
|
- </header>
|
|
|
- <?php while ( have_posts() ) : the_post();?>
|
|
|
- <h1 class="entry-title"><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></h1>
|
|
|
- <div class="entry-meta">
|
|
|
- <div class="date">
|
|
|
- <?php the_date(); ?>
|
|
|
+ <div class="row">
|
|
|
+ <?php if ( have_posts() ) : ?>
|
|
|
+ <header class="page-header">
|
|
|
+ <h1 class="super cm-sans wow fadeInRight"><?php the_time('Y'); ?></h1>
|
|
|
+ </header>
|
|
|
+ <?php while ( have_posts() ) : the_post();?>
|
|
|
+
|
|
|
+ <div class="col-sm-6">
|
|
|
+ <div class="single-card">
|
|
|
+ <h1 class="entry-title"><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></h1>
|
|
|
+ <div class="entry-meta">
|
|
|
+ <div class="date">
|
|
|
+ <?php the_date(); ?>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="single-card-thumbnail">
|
|
|
+ <?php if ( has_post_thumbnail() ) : ?>
|
|
|
+ <a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>">
|
|
|
+ <?php the_post_thumbnail( 'thumbnail', array( 'class' => 'alignleft' ) ); ?>
|
|
|
+ </a>
|
|
|
+ <?php endif; ?>
|
|
|
+ </div>
|
|
|
+ <?php the_excerpt(); ?>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <?php endwhile;
|
|
|
+ dw_paging_nav();
|
|
|
+ else :
|
|
|
+ printf( __( 'Nothing Found', 'dw' ));
|
|
|
+ get_search_form();
|
|
|
+ endif;
|
|
|
+ ?>
|
|
|
+ </div>
|
|
|
+ <div class="clear"> </div>
|
|
|
+ <div class="row">
|
|
|
+ <div id="nav-below" class="navigation">
|
|
|
+ <?php
|
|
|
+ $archive_year = get_the_date('U');
|
|
|
+ $old_archive = date("Y",strtotime('-1 year', $archive_year));
|
|
|
+ $new_archive = date("Y",strtotime('+1 year', $archive_year));
|
|
|
+ ?>
|
|
|
+ <div class="nav-previous">
|
|
|
+ ← <a href="<?php echo get_year_link( $old_archive ); ?>"><?php echo $old_archive ?></a>
|
|
|
+ </div>
|
|
|
+ <div class="nav-next">
|
|
|
+ <a href="<?php echo get_year_link( $new_archive ); ?>"><?php echo $new_archive ?></a> →
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <?php dw_good_excerpt(110); ?>
|
|
|
- <?php endwhile;
|
|
|
- dw_paging_nav();
|
|
|
- else :
|
|
|
- printf( __( 'Nothing Found', 'dw' ));
|
|
|
- get_search_form();
|
|
|
- endif;
|
|
|
- ?>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|