summaryrefslogtreecommitdiffstats
path: root/includes/header.php
diff options
context:
space:
mode:
authorEltrac <45323514+BigCoke233@users.noreply.github.com>2020-01-24 15:00:36 +0800
committerGitHub <noreply@github.com>2020-01-24 15:00:36 +0800
commit6a8eedb6bca2edabc6a354bbd99c3df11a9f6ce2 (patch)
treeab00fc439473ea0f5ec8eccef4b17d9d7efa1f68 /includes/header.php
parenta8275515c7f82b3f45338b3e3133c9c1f70614af (diff)
🎈 Add: 支持在后台设置头像链接
Diffstat (limited to 'includes/header.php')
-rw-r--r--includes/header.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/includes/header.php b/includes/header.php
index e984006..667357d 100644
--- a/includes/header.php
+++ b/includes/header.php
@@ -131,7 +131,8 @@
<button class="drawer-button" onclick="toggleDrawer();$('.options').addClass('ready');"><i class="iconfont icon-list"></i></button>
<div class="drawer-header">
<div class="drawer-avatar">
- <?php echo $this->author->gravatar(500); ?>
+ <?php if($this->options->avatar==''): echo $this->author->gravatar(500);
+ else: ?><img src="<?php $this->options->avatar(); ?>"><?php endif; ?>
</div>
</div>
<div class="drawer-content">