1 Star 0 Fork 34

owoi/Sakurairo

forked from 染川瞳/Sakurairo 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
author.php 2.38 KB
一键复制 编辑 原始数据 按行查看 历史
KotoriK 提交于 2021-05-21 14:20 . fix:AJAX分页按钮翻译缺失
<?php
get_header();
?>
<div class="author_info">
<div class="avatar">
<img src="<?php echo get_avatar_profile_url(); ?>" 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' ) : iro_opt('signature_text', 'Carpe Diem and Do what I like'); ?></div>
</div>
</div>
<style>
.author_info{
margin-top: 50px;
overflow: hidden;
padding: 40px 0;
position: relative;
border-bottom: 6px dotted #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: 30px;
line-height: 1;
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() ) :
/* Start the Loop */
while ( have_posts() ) : the_post();
/*
* Include the Post-Format-specific template for the content.
* If you want to override this in a child theme, then include a file
* called content-___.php (where ___ is the Post Format name) and that will be used instead.
*/
get_template_part( 'tpl/content', get_post_format() );
endwhile;
?>
<div class="clearer"></div>
<?php else :
get_template_part( 'tpl/content', 'none' );
endif; ?>
</main><!-- #main -->
<?php if ( iro_opt('pagenav_style') == 'ajax') { ?>
<div id="pagination"><?php next_posts_link(__(' Previous','sakurairo')); ?></div>
<div id="add_post"><span id="add_post_time" style="visibility: hidden;" title="<?php echo iro_opt('page_auto_load',''); ?>" ></span></div>
<?php }else{ ?>
<nav class="navigator">
<?php previous_posts_link('<i class="iconfont icon-back"></i>') ?><?php next_posts_link('<i class="iconfont icon-right"></i>') ?>
</nav>
<?php } ?>
</div><!-- #primary -->
<?php
get_footer();
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
PHP
1
https://gitee.com/samegis/Sakurairo.git
git@gitee.com:samegis/Sakurairo.git
samegis
Sakurairo
Sakurairo
master

搜索帮助