-
Notifications
You must be signed in to change notification settings - Fork 96
/
author.php
80 lines (73 loc) · 2.48 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
80
<?php
get_header();
?>
<div class="author_info">
<div class="avatar">
<img src="<?php echo get_avatar_profile_url(get_the_author_meta('ID')); ?>" itemprop="image" alt="<?php the_author(); ?>" height="70" width="70">
</div>
<div class="author-center">
<h3><?php the_author() ?></h3>
<div class="description"><?php echo get_the_author_meta('description') ? get_the_author_meta('description') : akina_option('admin_des'); ?></div>
</div>
</div>
<style type="text/css">
.author_info {
margin-top: 50px;
overflow: hidden;
padding: 40px 0;
position: relative;
border-bottom: 1px solid #eee;
font-family: miranafont, "Hiragino Sans GB", STXihei, "Microsoft YaHei", SimSun, sans-serif;
}
.author_info .avatar {
float: left;
margin-right: 12px;
margin-left: 8px;
}
.author_info .avatar img {
border-radius: 100%;
border: 2px solid #fff;
background: #fff;
vertical-align: middle;
}
.author_info .author-center {
line-height: 28px;
padding-top: 9px;
}
.author_info .author-center h3 {
font-weight: 700;
font-size: 20px;
line-height: 1.2;
margin-bottom: 5px;
display: inline;
}
.author-description {
font-size: 14px;
color: rgba(0, 0, 0, .4);
line-height: 1.2;
}
</style>
<div id="primary" class="content-area">
<main id="main" class="site-main" role="main">
<?php
if (have_posts()) :
while (have_posts()) : the_post();
get_template_part('tpl/content', get_post_format());
endwhile;
?>
<div class="clearer"></div>
<?php else :
get_template_part('tpl/content', 'none');
endif; ?>
</main>
<?php if (akina_option('pagenav_style') == 'ajax') { ?>
<div id="pagination"><?php next_posts_link(__('Previous')); ?></div>
<?php } else { ?>
<nav class="navigator">
<?php previous_posts_link('<i class="iconfont"></i>') ?><?php next_posts_link('<i class="iconfont"></i>') ?>
</nav>
<?php } ?>
</div>
<?php
get_sidebar();
get_footer();