diff options
| author | Eltrac Koalar <hi@guhub.cn> | 2020-10-07 20:40:09 +0800 |
|---|---|---|
| committer | Eltrac Koalar <hi@guhub.cn> | 2020-10-07 20:40:09 +0800 |
| commit | e6f3df7eaf6881a303358289dadb904824872d45 (patch) | |
| tree | 57a98fea6448ee3b306af9f0127cd764697100a3 /about.php | |
| parent | 49506af621b073a3acd1cd53d54771d0695108ee (diff) | |
bring back the 1.x files to master
Diffstat (limited to 'about.php')
| -rw-r--r-- | about.php | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/about.php b/about.php new file mode 100644 index 0000000..e4fe041 --- /dev/null +++ b/about.php @@ -0,0 +1,42 @@ +<?php if (!defined('__TYPECHO_ROOT_DIR__')) exit; +/** + * 关于页面 + * + * @package custom + */ +$this->need('includes/head.php'); +$this->need('includes/header.php'); +?> + <main class="main-container container" role="main"> + <div class="post-body"> + <br><br><br> + <div class="about"> + <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; ?> + </div> + <div class="about-social"><!-- 社交按钮 --> + <?php if($this->fields->github==!''): ?> + <a href="https://github.com/<?php echo $this->fields->github(); ?>" target="_blank" title="<?php gtecho('aboutPageTexts','aboutShareGitHub'); ?>"><i class="iconfont icon-github"></i></a> + <?php endif; ?> + <?php if($this->fields->qq==!''): ?> + <a href="tencent://Message/?Uin=<?php echo $this->fields->qq(); ?>&websiteName=q-zone.qq.com&Menu=yes" target="_blank" title="<?php gtecho('aboutPageTexts','aboutShareQQ'); ?>"><i class="iconfont icon-qq1"></i></a> + <?php endif; ?> + <?php if($this->fields->bilibili==!''): ?> + <a href="https://space.bilibili.com/<?php echo $this->fields->bilibili(); ?>" target="_blank" title="<?php gtecho('aboutPageTexts','aboutShareB'); ?>"><i class="iconfont icon-bilibili-"></i></a> + <?php endif; ?> + <?php if($this->fields->email==!''): ?> + <a href="mailto:<?php echo $this->fields->email(); ?>"><i class="iconfont icon-mail_fill" target="_blank" title="<?php gtecho('aboutPageTexts','aboutShareEmail'); ?>"></i></a> + <?php endif; ?> + </div> + </div> + <div class="post-content page-content"> + <?php $this->content(); ?> + </div> + </div> + <?php $this->need('includes/comments.php'); ?> + </main> +<?php $this->need('includes/footer.php'); ?> |
