forked from wpbrasil/odin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathauthor.php
26 lines (26 loc) · 1.53 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
<?php get_header(); ?>
<div id="primary">
<section id="content" role="main" itemscope="" itemtype="http://schema.org/Person">
<?php if ( have_posts() ) : the_post(); ?>
<header class="page-header">
<h1 class="page-title author" itemprop="name"><?php echo __( 'Arquivos do Autor: ', 'odin' ) . '<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" itemprop="url">' . get_the_author() . '</a></span>'; ?></h1>
</header>
<?php rewind_posts(); ?>
<?php if ( get_the_author_meta( 'description' ) ) : ?>
<div class="author-info">
<h2><?php echo __( 'Sobre ', 'odin' ) . get_the_author(); ?></h2>
<span class="author-avatar" itemprop="image"><?php echo get_avatar( get_the_author_meta( 'ID' ), 60 ); ?></span>
<span class="author-description" itemprop="description"><?php the_author_meta( 'description' ); ?></span>
</div><!-- .author-info -->
<?php endif; ?>
<?php while ( have_posts() ) : the_post(); ?>
<?php get_template_part( 'content', get_post_format() ); ?>
<?php endwhile; ?>
<?php echo odin_pagination(); ?>
<?php else : ?>
<?php get_template_part( 'no-results' ); ?>
<?php endif; ?>
</section><!-- #content -->
</div><!-- #primary -->
<?php get_sidebar(); ?>
<?php get_footer(); ?>