Rev 3 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
3 | iacchi | 1 | <?php |
2 | /* |
||
3 | * The template for displaying Archive pages. |
||
4 | * |
||
5 | * Used to display archive-type pages if nothing more specific matches a query. |
||
6 | * For example, puts together date-based pages if no date.php file exists. |
||
7 | * |
||
8 | * Learn more: http://codex.wordpress.org/Template_Hierarchy |
||
9 | */ |
||
10 | |||
11 | get_header(); ?> |
||
12 | |||
13 | <div id="content"> |
||
14 | |||
15 | <?php if (have_posts()) : ?> |
||
16 | |||
17 | <header id="search-header"> |
||
18 | <h1 id="search-title"> |
||
19 | <?php if (is_day()) : ?> |
||
27 | iacchi | 20 | <?php printf(__('Daily Archives: %s', 'zendark'), get_the_date()); ?> |
3 | iacchi | 21 | <?php elseif (is_month()) : ?> |
27 | iacchi | 22 | <?php printf(__('Monthly Archives: %s', 'zendark'), get_the_date('F Y')); ?> |
3 | iacchi | 23 | <?php elseif ( is_year() ) : ?> |
27 | iacchi | 24 | <?php printf(__('Yearly Archives: %s', 'zendark'), get_the_date('Y')); ?> |
3 | iacchi | 25 | <?php else : ?> |
27 | iacchi | 26 | <?php _e('Blog Archives', 'zendark'); ?> |
3 | iacchi | 27 | <?php endif; ?> |
28 | </h1> |
||
29 | </header> |
||
30 | |||
27 | iacchi | 31 | <?php zendark_content_nav('nav-above'); ?> |
3 | iacchi | 32 | |
33 | <?php /* Start the Loop */ ?> |
||
34 | <?php while (have_posts()) : the_post(); ?> |
||
35 | |||
36 | <?php |
||
37 | /* Include the Post-Format-specific template for the content. |
||
38 | * If you want to overload this in a child theme then include a file |
||
39 | * called content-___.php (where ___ is the Post Format name) and that will be used instead. |
||
40 | */ |
||
41 | get_template_part('content', false); |
||
42 | ?> |
||
43 | |||
44 | <?php endwhile; ?> |
||
45 | |||
27 | iacchi | 46 | <?php zendark_content_nav('nav-below'); ?> |
3 | iacchi | 47 | |
48 | <?php else : ?> |
||
49 | |||
50 | <div> |
||
51 | <header id="search-header"> |
||
27 | iacchi | 52 | <h1 id="search-title"><?php _e( 'Nothing Found', 'zendark' ); ?></h1> |
3 | iacchi | 53 | </header><!-- .entry-header --> |
54 | <div id="search-content"> |
||
27 | iacchi | 55 | <p><?php _e( 'Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.', 'zendark' ); ?></p> |
3 | iacchi | 56 | <?php get_search_form(); ?> |
57 | </div><!-- #search-content --> |
||
58 | </div> |
||
59 | <?php endif; ?> |
||
60 | |||
61 | </div><!-- #content --> |
||
62 | |||
63 | <?php get_sidebar(); ?> |
||
64 | <?php get_footer(); ?> |