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 Author Archive pages. |
||
4 | */ |
||
5 | |||
6 | get_header(); ?> |
||
7 | |||
8 | <div id="content"> |
||
9 | |||
10 | <?php if (have_posts()) : the_post(); ?> |
||
11 | |||
12 | <header id="search-header"> |
||
27 | iacchi | 13 | <h1 id="search-title"><?php printf(__('Author Archives: %s', 'zendark'), get_the_author()); ?></h1> |
3 | iacchi | 14 | <?php |
15 | if (get_the_author_meta('description')) : ?> |
||
27 | iacchi | 16 | <div class="author-archive-meta"><p><?php _e('About the author:', 'zendark'); echo ' '; the_author_meta('description'); ?></p></div> |
3 | iacchi | 17 | <?php endif; ?> |
18 | </header> |
||
19 | |||
27 | iacchi | 20 | <?php zendark_content_nav('nav-above'); ?> |
3 | iacchi | 21 | |
22 | <?php |
||
23 | //Reset the loop |
||
24 | rewind_posts(); |
||
25 | |||
26 | /* Start the Loop */ ?> |
||
27 | <?php while (have_posts()) : the_post(); ?> |
||
28 | |||
29 | <?php |
||
30 | /* Include the Post-Format-specific template for the content. |
||
31 | * If you want to overload this in a child theme then include a file |
||
32 | * called content-___.php (where ___ is the Post Format name) and that will be used instead. |
||
33 | */ |
||
34 | get_template_part('content', false); |
||
35 | ?> |
||
36 | |||
37 | <?php endwhile; ?> |
||
38 | |||
27 | iacchi | 39 | <?php zendark_content_nav('nav-below'); ?> |
3 | iacchi | 40 | |
41 | <?php else : ?> |
||
42 | |||
43 | <div> |
||
44 | <header id="search-header"> |
||
27 | iacchi | 45 | <h1 id="search-title"><?php _e( 'Nothing Found', 'zendark' ); ?></h1> |
3 | iacchi | 46 | </header><!-- .entry-header --> |
47 | <div id="search-content"> |
||
27 | iacchi | 48 | <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 | 49 | <?php get_search_form(); ?> |
50 | </div><!-- #search-content --> |
||
51 | </div> |
||
52 | <?php endif; ?> |
||
53 | |||
54 | </div><!-- #content --> |
||
55 | |||
56 | <?php get_sidebar(); ?> |
||
57 | <?php get_footer(); ?> |