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 used to display Tag Archive pages
4
 */
5
 
6
get_header(); ?>
7
 
8
<div id="content">
9
 
10
<?php if (have_posts()) : ?>
11
 
12
        <header id="search-header">
13
                <h1 id="search-title"><?php printf(__('Tag Archives: %s', 'sdt'), single_tag_title('', false)); ?></h1>
14
    <?php
15
                        $tag_description = tag_description();
16
                        if (!empty($tag_description))
17
                                echo apply_filters( 'tag_archive_meta', '<div class="tag-archive-meta">'.$tag_description.'</div>');
18
                ?>
19
        </header>
20
 
21
        <?php sdt_content_nav('nav-above'); ?>
22
 
23
        <?php /* Start the Loop */ ?>
24
        <?php while (have_posts()) : the_post(); ?>
25
 
26
                <?php
27
                        /* Include the Post-Format-specific template for the content.
28
                         * If you want to overload this in a child theme then include a file
29
                         * called content-___.php (where ___ is the Post Format name) and that will be used instead.
30
                         */
31
                        get_template_part('content', false);
32
                ?>
33
 
34
        <?php endwhile; ?>
35
 
36
        <?php sdt_content_nav('nav-below'); ?>
37
 
38
<?php else : ?>
39
 
40
  <div>
41
                <header id="search-header">
42
                        <h1 id="search-title"><?php _e( 'Nothing Found', 'sdt' ); ?></h1>
43
                </header><!-- .entry-header -->
44
    <div id="search-content">
45
                        <p><?php _e( 'Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.', 'sdt' ); ?></p>
46
                        <?php get_search_form(); ?>
47
                </div><!-- #search-content -->
48
        </div>
49
<?php endif; ?>
50
 
51
</div><!-- #content -->
52
 
53
<?php get_sidebar(); ?>
54
<?php get_footer(); ?>