diff options
| author | BigCoke233 <hi@guhub.cn> | 2020-03-30 15:42:08 +0800 |
|---|---|---|
| committer | BigCoke233 <hi@guhub.cn> | 2020-03-30 15:42:08 +0800 |
| commit | c3c612400919eecfca877d0cc78d3e4a01cd26bc (patch) | |
| tree | 538e7b1527818343bbda33820c7c9da58fdd3bf8 /post.php | |
| parent | 5de118712e3be46cf16257f9985ca5440c9187c7 (diff) | |
💎 Add: 添加文章二维码生成功能
Diffstat (limited to 'post.php')
| -rw-r--r-- | post.php | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -22,8 +22,12 @@ $this->need('includes/header.php'); </div> <?php $this->content(); ?> </div> + <div class="post-qr"> + <img src="http://qr.topscan.com/api.php?text=<?php echo $this->permalink; ?>"> + </div> <div class="post-footer"><!-- 文章页脚 --> <div class="post-share">分享至: + <button class="social-share qrcode" id="post-qrcode-btn"><i class="iconfont icon-qr_code"></i></button> <a class="social-share qq" target="_blank" href="https://connect.qq.com/widget/shareqq/index.html?url=<?php $this->permalink() ?>&title=<?php $this->title() ?>&summary=<?php $this->excerpt(100); ?>" title="分享至 QQ 好友"><i class="iconfont icon-qq1-copy"></i></a> <a class="social-share weibo" target="_blank" href="http://service.weibo.com/share/share.php?url=<?php $this->permalink() ?>/&appkey=<?php $this->options->title(); ?>/&title=<?php $this->title() ?>" title="分享至新浪微博"><i class="iconfont icon-weibo-copy"></i></a> <a class="social-share twitter" target="_blank" href="https://twitter.com/intent/tweet?text=<?php $this->excerpt(100); ?>&url=<?php $this->permalink() ?>"><i class="iconfont icon-twitter-copy" title="分享至 Twitter"></i></a> |
