summaryrefslogtreecommitdiffstats
path: root/about.php
blob: 1cdcbc669f2e969a655e1d03346b2b899e483697 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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(); ?>&amp;websiteName=q-zone.qq.com&amp;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'); ?>