archive.php 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <?php get_header(); ?>
  2. <div class="container">
  3. <div class="store-page">
  4. <div class="row">
  5. <div class="tencol">
  6. <?php if ( have_posts() ) : ?>
  7. <header class="page-header">
  8. <h1 class="page-title">
  9. <?php
  10. if ( is_category() ) {
  11. printf( __( 'Category Archives: %s', '_s' ), '<span>' . single_cat_title( '', false ) . '</span>' );
  12. } elseif ( is_tag() ) {
  13. printf( __( 'Tag Archives: %s', '_s' ), '<span>' . single_tag_title( '', false ) . '</span>' );
  14. } elseif ( is_author() ) {
  15. the_post();
  16. printf( __( 'Author Archives: %s', '_s' ), '<span class="vcard"><a class="url fn n" href="' . get_author_posts_url( get_the_author_meta( "ID" ) ) . '" title="' . esc_attr( get_the_author() ) . '" rel="me">' . get_the_author() . '</a></span>' );
  17. rewind_posts();
  18. } elseif ( is_day() ) {
  19. printf( __( 'Daily Archives: %s', '_s' ), '<span>' . get_the_date() . '</span>' );
  20. } elseif ( is_month() ) {
  21. printf( __( 'Monthly Archives: %s', '_s' ), '<span>' . get_the_date( 'F Y' ) . '</span>' );
  22. } elseif ( is_year() ) {
  23. printf( __( 'Yearly Archives: %s', '_s' ), '<span>' . get_the_date( 'Y' ) . '</span>' );
  24. } else {
  25. _e( 'Archives', '_s' );
  26. }
  27. ?>
  28. </h1>
  29. </header>
  30. <?php rewind_posts(); ?>
  31. <?php while ( have_posts() ) : the_post(); ?>
  32. <?php get_template_part( 'content', get_post_format() );?>
  33. <?php endwhile; ?>
  34. <?php else : ?>
  35. <article id="post-0" class="post no-results not-found">
  36. <header class="entry-header">
  37. <h1 class="entry-title"><?php _e( 'Nothing Found', '_s' ); ?></h1>
  38. </header>
  39. <div class="entry-content">
  40. <p><?php _e( 'It seems we can&rsquo;t find what you&rsquo;re looking for. Perhaps searching can help.', '_s' ); ?></p>
  41. <?php get_search_form(); ?>
  42. </div>
  43. </article>
  44. <?php endif; ?>
  45. </div>
  46. </div>
  47. </div>
  48. </div>
  49. <?php get_footer(); ?>