-
Notifications
You must be signed in to change notification settings - Fork 0
/
author.php
executable file
·59 lines (53 loc) · 2.03 KB
/
author.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<?php
/**
* The template for displaying Author Archive pages.
*
* @package WordPress
* @subpackage WP-Bootstrap
* @since WP-Bootstrap 0.1
*/
get_header(); ?>
<?php if ( have_posts() ) : ?>
<?php
/* Queue the first post, that way we know
* what author we're dealing with (if that is the case).
*
* We reset this later so we can run the loop
* properly with a call to rewind_posts().
*/
the_post();
?>
<div class="container">
<?php
/* Since we called the_post() above, we need to
* rewind the loop back to the beginning that way
* we can run the loop properly, in full.
*/
rewind_posts();
?>
<div class="row content">
<div class="span7 well">
<header class="subhead" id="overview">
<h2 class="page-title author"><?php printf( __( 'Author: %s', 'bootstrapwp' ), '<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>' ); ?></h2>
</header>
<?php if (function_exists('bootstrapwp_breadcrumbs')) bootstrapwp_breadcrumbs(); ?>
<?php /* Start the Loop */ ?>
<?php while ( have_posts() ) : the_post(); ?>
<div <?php post_class(); ?>>
<a href="<?php the_permalink(); ?>" title="<?php the_title();?>"><h3><?php the_title();?></h3></a>
<p class="meta"><?php echo bootstrapwp_posted_on();?></p>
<div class="row">
<div class="span2">
<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>" >
<?php echo bootstrapwp_autoset_featured_img(); ?></a>
</div><!-- /.span2 -->
<div class="span5">
<?php the_excerpt();?>
</div><!-- /.span6 -->
</div><!-- /.row -->
</div><!-- /.post_class -->
<?php endwhile; ?>
<?php endif; ?>
</div><!-- /.span8 -->
<?php get_sidebar('blog'); ?>
<?php get_footer(); ?>