Subversion Repositories ZenDark

Rev

Go to most recent revision | Details | 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()) : ?>
20
        <?php printf(__('Daily Archives: %s', 'sdt'), get_the_date()); ?>
21
      <?php elseif (is_month()) : ?>
22
                                <?php printf(__('Monthly Archives: %s', 'sdt'), get_the_date('F Y')); ?>
23
                        <?php elseif ( is_year() ) : ?>
24
                                <?php printf(__('Yearly Archives: %s', 'sdt'), get_the_date('Y')); ?>
25
                        <?php else : ?>
26
                                <?php _e('Blog Archives', 'sdt'); ?>
27
                        <?php endif; ?>
28
    </h1>
29
        </header>
30
 
31
        <?php sdt_content_nav('nav-above'); ?>
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
 
46
        <?php sdt_content_nav('nav-below'); ?>
47
 
48
<?php else : ?>
49
 
50
  <div>
51
                <header id="search-header">
52
                        <h1 id="search-title"><?php _e( 'Nothing Found', 'sdt' ); ?></h1>
53
                </header><!-- .entry-header -->
54
    <div id="search-content">
55
                        <p><?php _e( 'Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.', 'sdt' ); ?></p>
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(); ?>