This repository has been archived by the owner on Oct 17, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
/
author.php
executable file
·62 lines (54 loc) · 2.4 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
60
61
62
<?php
/**
* The template for displaying Author Archive pages.
*
* Used to display archive-type pages for posts by an author.
*
* Learn more: http://codex.wordpress.org/Template_Hierarchy
*
* @package WordPress
* @subpackage Twenty_Twelve
* @since Twenty Twelve 1.0
*/
get_header(); ?>
<section id="primary" class="content author-page archive">
<div class="row-fluid span12">
<div class="span8">
<?php if ( have_posts() ) : ?>
<?php
// If a user has filled out their description, show a bio on their entries.
if ( get_the_author_meta( 'description' ) ) : ?>
<div class="author-info">
<div class="author-description">
<h2 class="blue-block"><?php printf( __( 'Sobre <strong>%s</strong>' ), get_the_author() ); ?></h2>
<div class="author-avatar">
<?php echo get_avatar( get_the_author_meta( 'user_email' ), apply_filters( 'twentytwelve_author_bio_avatar_size', 120 ) ); ?>
</div><!-- .author-avatar -->
<p><?php the_author_meta( 'description' ); ?></p>
</div><!-- .author-description -->
<?php if(get_the_author_meta('url')): ?>
<div class="author-card">
<p class="author-link">Site: <a href="<?php echo get_the_author_meta('url');?>"><?php echo get_the_author_meta('url'); ?></a></p>
</div>
<?php endif; ?>
</div><!-- .author-info -->
<?php endif; ?>
<h2 class="blue-block"><strong>Posts</strong> de <?php the_author(); ?></h2>
<?php while ( have_posts() ) : the_post(); ?>
<?php get_template_part( 'archive', 'post' ); ?>
<?php endwhile; ?>
<div class="nav-previous"> <?php previous_posts_link( '<< Página Anterior' ); ?></div>
<div class="nav-next"> <?php next_posts_link( 'Próxima Página >>' ); ?></div>
<?php else : ?>
<?php get_template_part( 'content', 'none' ); ?>
<?php endif; ?>
</div>
<div class="span4 right-column">
<?php if (is_active_sidebar('content-right-column-1')) : ?>
<?php dynamic_sidebar('content-right-column-1'); ?>
<?php endif; ?>
</div>
</div><!-- #content -->
</section><!-- #primary -->
<?php get_sidebar(); ?>
<?php get_footer(); ?>