forked from moobaer/tiga
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathauthor.php
More file actions
69 lines (47 loc) · 1.83 KB
/
author.php
File metadata and controls
69 lines (47 loc) · 1.83 KB
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
63
64
65
66
67
68
69
<?php
/**
* The template for displaying Author Archive page
*
* @package Tiga
* @author Satrya
* @license license.txt
* @since 0.0.1
*
*/
get_header(); ?>
<section id="primary" class="site-content">
<?php tiga_content_before(); ?>
<div id="content" role="main">
<?php tiga_content(); ?>
<?php if ( have_posts() ) : ?>
<?php the_post(); ?>
<header class="page-header">
<h1 class="page-title author"><?php printf( __( 'Author Archives: %s', 'tiga' ), '<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>
</header>
<?php rewind_posts(); ?>
<?php tiga_content_nav( 'nav-above' ); ?>
<?php
// If a user has filled out their description, show a bio on their entries.
if ( get_the_author_meta( 'description' ) ) : ?>
<div id="author-info">
<div id="author-avatar">
<?php echo get_avatar( get_the_author_meta( 'user_email' ), apply_filters( 'tiga_author_bio_avatar_size', 60 ) ); ?>
</div><!-- #author-avatar -->
<div id="author-description">
<h2><?php printf( __( 'About %s', 'tiga' ), get_the_author() ); ?></h2>
<p><?php the_author_meta( 'description' ); ?></p>
</div><!-- #author-description -->
</div><!-- #entry-author-info -->
<?php endif; ?>
<?php while ( have_posts() ) : the_post(); ?>
<?php get_template_part( 'content', 'index' ); ?>
<?php endwhile; ?>
<?php tiga_content_nav( 'nav-below' ); ?>
<?php else : ?>
<?php get_template_part( 'no-results', 'author' ); ?>
<?php endif; ?>
</div><!-- #content -->
<?php tiga_content_after(); ?>
</section><!-- #primary .site-content -->
<?php get_sidebar(); ?>
<?php get_footer(); ?>