forked from rodrigo-brito/morfeu-theme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathauthor.php
executable file
·30 lines (27 loc) · 1.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
<?php get_header(); ?>
<main id="content" class="<?php echo odin_classes_page_sidebar(); ?>" tabindex="-1" role="main">
<header class="page-header col-md-12">
<?php
the_archive_title( '<h1 class="page-title">', '</h1>' );
the_archive_description( '<div class="taxonomy-description">', '</div>' );
/*
* 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();
?>
<?php if ( get_the_author_meta( 'description' ) ) : ?>
<div class="author-biography">
<span class="author-avatar"><?php echo get_avatar( get_the_author_meta( 'ID' ), 60 ); ?></span>
<span class="author-description"><?php the_author_meta( 'description' ); ?></span>
</div><!-- .author-biography -->
<?php endif; ?>
</header><!-- .archive-header -->
<?php get_template_part('loop'); ?>
</main><!-- #main -->
<?php
get_sidebar();
get_footer();