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 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"> |
||
13 | <h1 id="search-title"><?php printf(__('Author Archives: %s', 'sdt'), get_the_author()); ?></h1> |
||
14 | <?php |
||
15 | if (get_the_author_meta('description')) : ?> |
||
16 | <div class="author-archive-meta"><p><?php _e('About the author:', 'sdt'); echo ' '; the_author_meta('description'); ?></p></div> |
||
17 | <?php endif; ?> |
||
18 | </header> |
||
19 | |||
20 | <?php sdt_content_nav('nav-above'); ?> |
||
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 | |||
39 | <?php sdt_content_nav('nav-below'); ?> |
||
40 | |||
41 | <?php else : ?> |
||
42 | |||
43 | <div> |
||
44 | <header id="search-header"> |
||
45 | <h1 id="search-title"><?php _e( 'Nothing Found', 'sdt' ); ?></h1> |
||
46 | </header><!-- .entry-header --> |
||
47 | <div id="search-content"> |
||
48 | <p><?php _e( 'Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.', 'sdt' ); ?></p> |
||
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(); ?> |