forked from olefredrik/FoundationPress
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathauthor.php
More file actions
73 lines (60 loc) · 1.96 KB
/
author.php
File metadata and controls
73 lines (60 loc) · 1.96 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
70
71
72
73
<?php
/**
* The template for a single author
*
* @package FoundationPress
* @since FoundationPress 1.0.0
*/
$curauth = (isset($_GET['author_name'])) ? get_user_by('slug', $author_name) : get_userdata(intval($author));
get_header(); ?>
<header class="header-standard" role="banner">
<div class="caption">
<h1>
<?= get_the_author_meta( 'first_name', get_query_var( 'author' ) ); ?>
<?= get_the_author_meta( 'last_name', get_query_var( 'author' ) ); ?>
</h1>
</div>
</header>
<div id="page-author" role="main">
<article <?php post_class( 'main-content' ) ?>>
<?php if( $curauth->user_url) : ?>
<p><?= $curauth->description ?></p>
<?php endif; ?>
<div class="post-thumbnail">
<?php echo get_avatar( $curauth->ID, 360 ); ?>
</div>
<?php if( $curauth->user_url || $curauth->twitter || $curauth->facebook ) : ?>
<ul class="no-bullet">
<?php if ( $curauth->user_url ) : ?>
<li>
<i class="fa fa-external-link-square" aria-hidden="true"></i>
<a href="<?php echo $curauth->user_url; ?>" class="profile-url">
<?php _e( 'Visit my website', 'm3' ); ?>
</a>
</li>
<?php endif; ?>
<?php if ( $curauth->twitter ) : ?>
<li>
<i class="fa fa-twitter" aria-hidden="true"></i>
<a href="http://twitter.com/@<?php echo $curauth->twitter; ?>" class="social-icon twitter">
<?php _e( 'Follow me on Twitter', 'm3' ); ?>
</a>
</li>
<?php endif; ?>
<?php if ( $curauth->facebook ) : ?>
<li>
<i class="fa fa-facebook" aria-hidden="true"></i>
<a href="<?php echo $curauth->facebook; ?>" class="social-icon facebook">
<?php _e( 'Follow me on Facebook', 'm3' ); ?>
</a>
</li>
<?php endif; ?>
</ul>
<?php endif; ?>
<section class="block">
<h2>Check out my posts</h2>
<?php monolith_grid('card', 'small-up-1'); ?>
</section>
</article>
</div>
<?php get_footer();