feat: simplify webmaster config

pull/343/head
Seaton Jiang 2021-03-10 08:53:19 +08:00
parent 91413fdc62
commit 58734aefab
No known key found for this signature in database
GPG Key ID: C1086BAE716FF138
2 changed files with 4 additions and 36 deletions

View File

@ -3,7 +3,7 @@
* 主题选项 * 主题选项
* @author Seaton Jiang <seaton@vtrois.com> * @author Seaton Jiang <seaton@vtrois.com>
* @license MIT License * @license MIT License
* @version 2021.02.18 * @version 2021.03.10
*/ */
function getrobots() function getrobots()
@ -510,32 +510,6 @@ function kratos_options()
'two_side' => $imagepath . 'col-8.png') 'two_side' => $imagepath . 'col-8.png')
); );
$options[] = array(
'name' => __('站长配置', 'kratos'),
'type' => 'heading',
);
$options[] = array(
'name' => __('个人头像', 'kratos'),
'id' => 'a_gravatar',
'std' => ASSET_PATH . '/assets/img/gravatar.png',
'type' => 'upload',
);
$options[] = array(
'name' => __('个人昵称', 'kratos'),
'id' => 'a_nickname',
'std' => 'Kratos',
'type' => 'text',
);
$options[] = array(
'name' => __('个人简介', 'kratos'),
'std' => __('保持饥渴的专注,追求最佳的品质', 'kratos'),
'id' => 'a_about',
'type' => 'textarea',
);
$options[] = array( $options[] = array(
'name' => __('邮件配置', 'kratos'), 'name' => __('邮件配置', 'kratos'),
'type' => 'heading', 'type' => 'heading',

View File

@ -8,15 +8,9 @@
?> ?>
<div class="toolbar clearfix"> <div class="toolbar clearfix">
<div class="meta float-md-left"> <div class="meta float-md-left">
<?php if(kratos_option('multiusers',false)){ ?>
<img src="<?php echo get_avatar_url(get_the_author_meta('user_email')); ?>"> <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="name"><?php echo get_the_author_meta('display_name'); ?></p>
<p class="motto mb-0"><?php echo $description=!empty(get_the_author_meta('description')) ? get_the_author_meta('description') : __('这个人很懒,什么都没留下', 'kratos'); ?></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>
<p class="motto mb-0"><?php echo kratos_option('a_about', __('保持饥渴的专注,追求最佳的品质', 'kratos')); ?></p>
<?php } ?>
</div> </div>
<div class="share float-md-right text-center"> <div class="share float-md-right text-center">
<?php if(kratos_option('g_donate',false)){ ?> <?php if(kratos_option('g_donate',false)){ ?>