1 Star 0 Fork 0

xielinjiang/Dobby

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
author.php 1.46 KB
一键复制 编辑 原始数据 按行查看 历史
Vtrois 提交于 2018-03-20 10:20 +08:00 . Add the author page.(#6)
<?php
/**
* The template for author page
*
* @author Vtrois <seaton@vtrois.com>
* @license GPL-3.0
* @since 1.0
*/
get_header(); ?>
<main class="main author-page bg-light pb-4">
<div class="container-fluid">
<div class="row">
<div class="banner-panel text-center" style="background-image: url(<?php echo dobby_option('image_default_author'); ?>);">
</div>
<div class="bg-white text-center w-100 pb-4">
<div class="information">
<div class="author">
<div class="authorimg">
<?php echo get_avatar( get_the_author_meta( 'user_email' ) ,115 ); ?>
</div>
</div>
<div class="content pt-5">
<p class="name pt-4"><?php echo get_the_author_meta('nickname'); ?></p>
<p class="motto"><?php if (get_the_author_meta('description')) { echo strip_tags(get_the_author_meta('description'));} else {_e('The person is so lazy that he left nothing.','dobby');} ?></p>
</div>
</div>
</div>
</div>
</div>
<div class="container pt-4">
<div class="category-list row">
<?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; $query = new WP_Query( array('paged'=> $paged ));while (have_posts()) : the_post();get_template_part('/inc/content/content-category', get_post_format());endwhile;wp_reset_query(); ?>
</div>
<div class="more text-center mt-4" id="categorypage">
<?php next_posts_link( __('Load More' , 'dobby') ) ; ?>
</div>
</div>
</main>
<?php get_footer(); ?>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/xielinjiangs/Dobby.git
git@gitee.com:xielinjiangs/Dobby.git
xielinjiangs
Dobby
Dobby
master

搜索帮助