summaryrefslogtreecommitdiffstats
path: root/about.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 /about.php
parenta8275515c7f82b3f45338b3e3133c9c1f70614af (diff)
🎈 Add: 支持在后台设置头像链接
Diffstat (limited to 'about.php')
-rw-r--r--about.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/about.php b/about.php
index 2c912f6..bca5d10 100644
--- a/about.php
+++ b/about.php
@@ -11,8 +11,9 @@ $this->need('includes/header.php');
<div class="post-body">
<br><br><br>
<div class="about">
- <div class="about-avatar"><!-- 头像(调用 gravatar)-->
- <?php echo $this->author->gravatar(300); ?>
+ <div class="about-avatar"><!-- 头像 -->
+ <?php if($this->options->avatar==''): echo $this->author->gravatar(500);
+ else: ?><img src="<?php $this->options->avatar(); ?>"><?php endif; ?>
<?php if($this->fields->name==!''): ?>
<h2 class="about-name"><?php echo $this->fields->name(); ?></h2>
<?php endif; ?>