-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathauthor.php
More file actions
64 lines (48 loc) · 1.65 KB
/
Copy pathauthor.php
File metadata and controls
64 lines (48 loc) · 1.65 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
<?php get_header(); ?>
<header class="xf__header">
<div class="content xf__container">
<h1 class="xf__page-title" itemprop="headline"><?php the_author(); ?></h1>
</div>
<?php
/**
* Primary Site Header Image
*/
get_template_part( 'template-parts/primary-site-header-image' ); ?>
</header>
<main class="xf__main" itemprop="mainContentOfPage">
<?php if ( have_posts() ) : ?>
<div class="xf__page-author">
<div class="content xf__container">
<?php echo get_avatar( get_post()->post_author, '170' ); ?>
<div class="bio-content"><?php echo wpautop( snowbird_get_author_bio( true ) ); // XSS: Ok. ?></div>
<?php if ( has_action( 'snowbird_author_bio' ) ) :
do_action( 'snowbird_author_bio', get_post()->post_author );
endif; ?>
</div>
</div>
<div class="xf__page-meta">
<div class="xf__container">
<span class="item-icon"><i class="fa fa-clock-o"></i></span>
<span class="item-content"><?php esc_html_e( 'Recent Posts', 'snowbird' ); ?></span>
</div>
</div>
<div id="main" class="xf__posts" itemtype="http://schema.org/Blog" itemscope="itemscope">
<?php while ( have_posts() ) : the_post(); ?>
<?php
/**
* Post Contents
*/
if ( 'alternate' === Snowbird()->mod( 'loop_layout_type' ) ) :
get_template_part( 'template-parts/content-alternate', get_post_format() );
else :
get_template_part( 'template-parts/content', get_post_format() );
endif;
?>
<?php endwhile; ?>
</div>
<?php get_template_part( 'template-parts/loop-pagination' ); ?>
<?php else : ?>
<?php get_template_part( 'template-parts/content-none' ); ?>
<?php endif; ?>
</main>
<?php get_footer(); ?>