Skip to content

Commit ba47be5

Browse files
committed
IMPORT jquery/author.php.
1 parent 30dff7e commit ba47be5

File tree

1 file changed

+69
-74
lines changed

1 file changed

+69
-74
lines changed

jquery/author.php

Lines changed: 69 additions & 74 deletions
Original file line numberDiff line numberDiff line change
@@ -5,77 +5,72 @@
55

66
get_header(); ?>
77

8-
<section id="primary">
9-
<div id="content" role="main">
10-
11-
<?php if ( have_posts() ) : ?>
12-
13-
<?php
14-
/* Queue the first post, that way we know
15-
* what author we're dealing with (if that is the case).
16-
*
17-
* We reset this later so we can run the loop
18-
* properly with a call to rewind_posts().
19-
*/
20-
the_post();
21-
?>
22-
23-
<header class="page-header">
24-
<h1 class="page-title author"><?php printf( __( 'Author Archives: %s', 'twentyeleven' ), '<span class="vcard"><a class="url fn n" href="' . esc_url( get_author_posts_url( get_the_author_meta( "ID" ) ) ) . '" title="' . esc_attr( get_the_author() ) . '" rel="me">' . get_the_author() . '</a></span>' ); ?></h1>
25-
</header>
26-
27-
<?php
28-
/* Since we called the_post() above, we need to
29-
* rewind the loop back to the beginning that way
30-
* we can run the loop properly, in full.
31-
*/
32-
rewind_posts();
33-
?>
34-
35-
<?php twentyeleven_content_nav( 'nav-above' ); ?>
36-
37-
<?php
38-
// If a user has filled out their description, show a bio on their entries.
39-
if ( get_the_author_meta( 'description' ) ) : ?>
40-
<div id="author-info">
41-
<div id="author-avatar">
42-
<?php echo get_avatar( get_the_author_meta( 'user_email' ), apply_filters( 'twentyeleven_author_bio_avatar_size', 60 ) ); ?>
43-
</div><!-- #author-avatar -->
44-
<div id="author-description">
45-
<h2><?php printf( __( 'About %s', 'twentyeleven' ), get_the_author() ); ?></h2>
46-
<?php the_author_meta( 'description' ); ?>
47-
</div><!-- #author-description -->
48-
</div><!-- #entry-author-info -->
49-
<?php endif; ?>
50-
51-
<?php /* Start the Loop */ ?>
52-
<?php while ( have_posts() ) : the_post(); ?>
53-
54-
<?php
55-
get_template_part( 'content' );
56-
?>
57-
58-
<?php endwhile; ?>
59-
60-
<?php twentyeleven_content_nav( 'nav-below' ); ?>
61-
62-
<?php else : ?>
63-
64-
<article id="post-0" class="post no-results not-found">
65-
<header class="entry-header">
66-
<h1 class="entry-title"><?php _e( 'Nothing Found', 'twentyeleven' ); ?></h1>
67-
</header><!-- .entry-header -->
68-
69-
<div class="entry-content">
70-
<p><?php _e( 'Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.', 'twentyeleven' ); ?></p>
71-
<?php get_search_form(); ?>
72-
</div><!-- .entry-content -->
73-
</article><!-- #post-0 -->
74-
75-
<?php endif; ?>
76-
77-
</div><!-- #content -->
78-
</section><!-- #primary -->
79-
80-
<?php get_sidebar(); ?>
81-
<?php get_footer(); ?>
8+
<div class="content-right twelve columns">
9+
<div id="content">
10+
<?php if ( have_posts() ) : ?>
11+
12+
<?php
13+
/* Queue the first post, that way we know
14+
* what author we're dealing with (if that is the case).
15+
*
16+
* We reset this later so we can run the loop
17+
* properly with a call to rewind_posts().
18+
*/
19+
the_post();
20+
?>
21+
22+
<header class="page-header">
23+
<h1 class="page-title author"><?php
24+
printf( __( 'Author Archives: %s', 'twentyeleven' ), get_the_author() );
25+
?></h1>
26+
</header>
27+
28+
<?php
29+
/* Since we called the_post() above, we need to
30+
* rewind the loop back to the beginning that way
31+
* we can run the loop properly, in full.
32+
*/
33+
rewind_posts();
34+
?>
35+
36+
<?php
37+
// If a user has filled out their description, show a bio on their entries.
38+
if ( get_the_author_meta( 'description' ) ) : ?>
39+
<div id="author-info">
40+
<div id="author-avatar">
41+
<?php echo get_avatar( get_the_author_meta( 'user_email' ), apply_filters( 'twentyeleven_author_bio_avatar_size', 60 ) ); ?>
42+
</div>
43+
<div id="author-description">
44+
<h2><?php printf( __( 'About %s', 'twentyeleven' ), get_the_author() ); ?></h2>
45+
<?php the_author_meta( 'description' ); ?>
46+
</div>
47+
</div>
48+
<?php endif; ?>
49+
50+
<?php
51+
while ( have_posts() ) : the_post();
52+
get_template_part( 'content', 'listing' );
53+
endwhile;
54+
?>
55+
56+
<?php twentyeleven_content_nav( 'nav-below' ); ?>
57+
58+
<?php else : ?>
59+
60+
<article id="post-0" class="post no-results not-found">
61+
<header class="entry-header">
62+
<h1 class="entry-title"><?php _e( 'Nothing Found', 'twentyeleven' ); ?></h1>
63+
</header>
64+
65+
<div class="entry-content">
66+
<p><?php _e( 'Apologies, but no results were found for the requested archive.', 'twentyeleven' ); ?></p>
67+
</div>
68+
</article>
69+
70+
<?php endif; ?>
71+
</div>
72+
73+
<?php get_sidebar(); ?>
74+
</div>
75+
76+
<?php get_footer(); ?>

0 commit comments

Comments
 (0)