[ Index ] |
WordPress Cross Reference |
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * The template for displaying Author archive pages 4 * 5 * @link http://codex.wordpress.org/Template_Hierarchy 6 * 7 * @package WordPress 8 * @subpackage Twenty_Thirteen 9 * @since Twenty Thirteen 1.0 10 */ 11 12 get_header(); ?> 13 14 <div id="primary" class="content-area"> 15 <div id="content" class="site-content" role="main"> 16 17 <?php if ( have_posts() ) : ?> 18 19 <?php 20 /* 21 * Queue the first post, that way we know what author 22 * we're dealing with (if that is the case). 23 * 24 * We reset this later so we can run the loop 25 * properly with a call to rewind_posts(). 26 */ 27 the_post(); 28 ?> 29 30 <header class="archive-header"> 31 <h1 class="archive-title"><?php printf( __( 'All posts by %s', 'twentythirteen' ), '<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> 32 </header><!-- .archive-header --> 33 34 <?php 35 /* 36 * Since we called the_post() above, we need to 37 * rewind the loop back to the beginning that way 38 * we can run the loop properly, in full. 39 */ 40 rewind_posts(); 41 ?> 42 43 <?php if ( get_the_author_meta( 'description' ) ) : ?> 44 <?php get_template_part( 'author-bio' ); ?> 45 <?php endif; ?> 46 47 <?php /* The loop */ ?> 48 <?php while ( have_posts() ) : the_post(); ?> 49 <?php get_template_part( 'content', get_post_format() ); ?> 50 <?php endwhile; ?> 51 52 <?php twentythirteen_paging_nav(); ?> 53 54 <?php else : ?> 55 <?php get_template_part( 'content', 'none' ); ?> 56 <?php endif; ?> 57 58 </div><!-- #content --> 59 </div><!-- #primary --> 60 61 <?php get_sidebar(); ?> 62 <?php get_footer(); ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Tue Mar 25 01:41:18 2014 | WordPress honlapkészítés: online1.hu |