forked from html5blank/html5blank
-
Notifications
You must be signed in to change notification settings - Fork 0
/
author.php
79 lines (52 loc) · 2.06 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
<?php get_header(); ?>
<!-- Section -->
<section>
<?php if (have_posts()): the_post(); ?>
<h1><?php _e( 'Author Archives for ', 'html5blank' ); echo get_the_author(); ?></h1>
<?php if ( get_the_author_meta('description')) : ?>
<?php echo get_avatar(get_the_author_meta('user_email')); ?>
<h2><?php e_( 'About', 'html5blank' ); echo get_the_author() ; ?></h2>
<?php the_author_meta('description'); ?>
<?php endif; ?>
<?php rewind_posts(); while (have_posts()) : the_post(); ?>
<!-- Article -->
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<!-- Post Thumbnail -->
<?php if ( has_post_thumbnail()) : // Check if Thumbnail exists ?>
<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>">
<?php the_post_thumbnail(array(120,120)); // Declare pixel size you need inside the array ?>
</a>
<?php endif; ?>
<!-- /Post Thumbnail -->
<!-- Post Title -->
<h2>
<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a>
</h2>
<!-- /Post Title -->
<!-- Post Details -->
<span class="date"><?php the_time('F j, Y'); ?> <?php the_time('g:i a'); ?></span>
<span class="author"><?php _e( 'Published by', 'html5blank' ); ?> <?php the_author_posts_link(); ?></span>
<span class="comments"><?php comments_popup_link( __( 'Leave your thoughts', 'html5blank' ), __( '1 Comment', 'html5blank' ), __( '% Comments', 'html5blank' )); ?></span>
<!-- /Post Details -->
<?php html5wp_excerpt('html5wp_index'); // Build your custom callback length in functions.php ?>
<br class="clear">
<?php edit_post_link(); ?>
</article>
<!-- /Article -->
<?php endwhile; ?>
<?php else: ?>
<!-- Article -->
<article>
<h2><?php _e( 'Sorry, nothing to display.', 'html5blank' ); ?></h2>
</article>
<!-- /Article -->
<?php endif; ?>
<!-- Pagination -->
<div id="pagination">
<?php html5wp_pagination(); ?>
</div>
<!-- /Pagination -->
</section>
<!-- /Section -->
<?php get_sidebar(); ?>
<?php get_footer(); ?>