feat: add default Profile

pull/343/head
Seaton Jiang 2021-03-10 08:51:56 +08:00
parent 3798809d0a
commit 91413fdc62
No known key found for this signature in database
GPG Key ID: C1086BAE716FF138
1 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@
* 文章工具栏
* @author Seaton Jiang <seaton@vtrois.com>
* @license MIT License
* @version 2020.09.21
* @version 2021.03.10
*/
?>
<div class="toolbar clearfix">
@ -11,7 +11,7 @@
<?php if(kratos_option('multiusers',false)){ ?>
<img src="<?php echo get_avatar_url(get_the_author_meta('user_email')); ?>">
<p class="name"><?php echo get_the_author_meta('display_name'); ?></p>
<p class="motto mb-0"><?php echo get_the_author_meta('description'); ?></p>
<p class="motto mb-0"><?php echo $description=!empty(get_the_author_meta('description')) ? get_the_author_meta('description') : __('这个人很懒,什么都没留下', 'kratos'); ?></p>
<?php } else { ?>
<img src="<?php echo kratos_option('a_gravatar', ASSET_PATH . '/assets/img/gravatar.png'); ?>">
<p class="name"><?php echo kratos_option('a_nickname','Kratos'); ?></p>