summaryrefslogtreecommitdiffstats
path: root/post.php
diff options
context:
space:
mode:
Diffstat (limited to 'post.php')
-rw-r--r--post.php10
1 files changed, 9 insertions, 1 deletions
diff --git a/post.php b/post.php
index d25d5b9..4f7cf35 100644
--- a/post.php
+++ b/post.php
@@ -23,7 +23,15 @@ $this->need('includes/header.php');
<?php $this->content(); ?>
</div>
<div class="post-qr">
- <img src="http://qr.topscan.com/api.php?text=<?php echo $this->permalink; ?>">
+ <img src="<?php
+ if($this->options->postQR==''){
+ echo 'https://api.qrserver.com/v1/create-qr-code/?size=230x230&data=';
+ echo $this->permalink;
+ }else{
+ echo $this->options->postQR;
+ echo $this->permalink;
+ }
+ ?>">
</div>
<div class="post-footer"><!-- 文章页脚 -->
<div class="post-share">分享至: