12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091 |
- <?php get_header(); ?>
- <div class="wrapper section-inner">
-
- <div class="content left">
-
- <div class="posts">
-
- <div class="page-title">
-
- <h4><?php if ( is_day() ) : ?>
- <?php printf( __( 'Date: %s', 'hemingway' ), '' . get_the_date() . '' ); ?>
- <?php elseif ( is_month() ) : ?>
- <?php printf( __( 'Month: %s', 'hemingway' ), '' . get_the_date( _x( 'F Y', 'F = Month, Y = Year', 'hemingway' ) ) ); ?>
- <?php elseif ( is_year() ) : ?>
- <?php printf( __( 'Year: %s', 'hemingway' ), '' . get_the_date( _x( 'Y', 'Y = Year', 'hemingway' ) ) ); ?>
- <?php elseif ( is_category() ) : ?>
- <?php printf( __( 'Category: %s', 'hemingway' ), '' . single_cat_title( '', false ) . '' ); ?>
- <?php elseif ( is_tag() ) : ?>
- <?php printf( __( 'Tag: %s', 'hemingway' ), '' . single_tag_title( '', false ) . '' ); ?>
- <?php elseif ( is_author() ) : ?>
- <?php $curauth = (isset($_GET['author_name'])) ? get_user_by('slug', $author_name) : get_userdata(intval($author)); ?>
- <?php printf( __( 'Author: %s', 'hemingway' ), $curauth->display_name ); ?>
- <?php else : ?>
- <?php _e( 'Archive', 'hemingway' ); ?>
- <?php endif; ?>
-
- <?php
- $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
-
- if ( "1" < $wp_query->max_num_pages ) : ?>
-
- <span><?php printf( __('(page %s of %s)', 'hemingway'), $paged, $wp_query->max_num_pages ); ?></span>
-
- <?php endif; ?></h4>
-
- <?php
- $tag_description = tag_description();
- if ( ! empty( $tag_description ) )
- echo apply_filters( 'tag_archive_meta', '<div class="tag-archive-meta">' . $tag_description . '</div>' );
- ?>
-
- </div> <!-- /page-title -->
-
- <div class="clear"></div>
-
- <?php if ( have_posts() ) : ?>
-
- <?php rewind_posts(); ?>
-
- <?php while ( have_posts() ) : the_post(); ?>
-
- <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
-
- <?php get_template_part( 'content', get_post_format() ); ?>
-
- <div class="clear"></div>
-
- </div> <!-- /post -->
-
- <?php endwhile; ?>
-
- </div> <!-- /posts -->
-
- <?php if ( $wp_query->max_num_pages > 1 ) : ?>
-
- <div class="post-nav archive-nav">
-
- <?php echo get_next_posts_link( __('Older<span> posts</span>', 'hemingway')); ?>
-
- <?php echo get_previous_posts_link( __('Newer<span> posts</span>', 'hemingway')); ?>
-
- <div class="clear"></div>
-
- </div> <!-- /post-nav archive-nav -->
-
- <div class="clear"></div>
-
- <?php endif; ?>
-
- <?php endif; ?>
-
- </div> <!-- /content -->
-
- <?php get_sidebar(); ?>
-
- <div class="clear"></div>
- </div> <!-- /wrapper -->
- <?php get_footer(); ?>
|