Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 73 lines (56 sloc) 2.201 kB
6430e99 @madalinungureanu changed folder structure
authored
1 <?php
2 /**
3 * The template for displaying Author Archive pages.
4 *
5 * @package WordPress
6 * @subpackage BareSkin
7 */
8
9 get_header(); ?>
10
11 <section id="container">
12 <div id="content" role="main">
13
14 <?php if ( have_posts() ) : ?>
15
16 <?php
17 /* Queue the first post, that way we know
18 * what author we're dealing with (if that is the case).
19 *
20 * We reset this later so we can run the loop
21 * properly with a call to rewind_posts().
22 */
23 the_post();
24 ?>
25
26 <header class="page-header">
27 <h1 class="page-title author"><?php printf( __( 'Author Archives: %s', bareskin_get_textdomain() ), '<span class="vcard"><a class="url fn n" href="' . get_author_posts_url( get_the_author_meta( "ID" ) ) . '" title="' . esc_attr( get_the_author() ) . '" rel="me">' . get_the_author() . '</a></span>' ); ?></h1>
28 </header>
29
30 <?php
31 /* Since we called the_post() above, we need to
32 * rewind the loop back to the beginning that way
33 * we can run the loop properly, in full.
34 */
35 rewind_posts();
36 ?>
37
38
39 <?php /* Start the Loop */ ?>
40 <?php while ( have_posts() ) : the_post(); ?>
41
42 <?php
43 /* Include the Post-Format-specific template for the content.
44 * If you want to overload this in a child theme then include a file
45 * called content-___.php (where ___ is the Post Format name) and that will be used instead.
46 */
47 get_template_part( 'content', get_post_format() );
48 ?>
49
50 <?php endwhile; ?>
51
52 <?php get_template_part( 'loop-nav' ); ?>
53
54 <?php else : ?>
55
56 <article id="post-0" class="post no-results not-found">
57 <header class="entry-header">
58 <h1 class="entry-title"><?php _e( 'Nothing Found', bareskin_get_textdomain() ); ?></h1>
59 </header><!-- .entry-header -->
60
61 <div class="entry-content">
62 <p><?php _e( 'It seems we can&rsquo;t find what you&rsquo;re looking for. Perhaps searching can help.', bareskin_get_textdomain() ); ?></p>
63 <?php get_search_form(); ?>
64 </div><!-- .entry-content -->
65 </article><!-- #post-0 -->
66
67 <?php endif; ?>
68
69 </div><!-- #content -->
70 </section><!-- #container -->
71
72 <?php get_sidebar(); ?>
73 <?php get_footer(); ?>
Something went wrong with that request. Please try again.