diff options
| author | Eltrac <45323514+BigCoke233@users.noreply.github.com> | 2020-01-24 15:00:36 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-01-24 15:00:36 +0800 |
| commit | 6a8eedb6bca2edabc6a354bbd99c3df11a9f6ce2 (patch) | |
| tree | ab00fc439473ea0f5ec8eccef4b17d9d7efa1f68 /includes/header.php | |
| parent | a8275515c7f82b3f45338b3e3133c9c1f70614af (diff) | |
🎈 Add: 支持在后台设置头像链接
Diffstat (limited to 'includes/header.php')
| -rw-r--r-- | includes/header.php | 3 |
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"> |
