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 Category Archive pages. |
||
4 | */ |
||
5 | |||
6 | get_header(); ?> |
||
7 | |||
8 | <div id="content"> |
||
9 | |||
10 | <?php if (have_posts()) : ?> |
||
11 | |||
12 | <header id="search-header"> |
||
27 | iacchi | 13 | <h1 id="search-title"><?php printf(__('Category Archives: %s', 'zendark'), single_cat_title('', false)); ?></h1> |
3 | iacchi | 14 | <?php |
15 | $category_description = category_description(); |
||
16 | if (!empty($category_description)) |
||
17 | echo apply_filters('category_archive_meta', '<div class="category-archive-meta">'.$category_description.'</div>'); |
||
18 | ?> |
||
19 | </header> |
||
20 | |||
27 | iacchi | 21 | <?php zendark_content_nav('nav-above'); ?> |
3 | iacchi | 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 | |||
27 | iacchi | 36 | <?php zendark_content_nav('nav-below'); ?> |
3 | iacchi | 37 | |
38 | <?php else : ?> |
||
39 | |||
40 | <div> |
||
41 | <header id="search-header"> |
||
27 | iacchi | 42 | <h1 id="search-title"><?php _e( 'Nothing Found', 'zendark' ); ?></h1> |
3 | iacchi | 43 | </header><!-- .entry-header --> |
44 | <div id="search-content"> |
||
27 | iacchi | 45 | <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 | 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(); ?> |