Typecho插件-Reward打赏

Typecho 115

在文章底部展示一段打赏文字。

预览:
Typecho插件-Reward打赏
设置界面:

Typecho插件-Reward打赏

使用步骤

  1. 在设置界面填写微信打赏二维码、支付宝打赏二维码地址
  2. 自定义`jquery`(可选)
  3. 自定义CSS样式(可选)
  4. 将`img`文件夹的静态文件复制到你的主题文件夹下
  5. 在主题文件夹`post.php`文件中添加打赏输出语句

以`default`主题为例,在文章输出语句的下方添加按钮输出语句`<?php if (array_key_exists('Reward', Typecho_Plugin::export()['activated'])) : Reward_Plugin::show($this->options->themeUrl); endif; ?>`

<div class="post-content" itemprop="articleBody">

    <?php $this->content(); ?>

</div>

<?php if (array_key_exists('Reward', Typecho_Plugin::export()['activated'])) : Reward_Plugin::show($this->options->themeUrl); endif; ?>

开源:https://github.com/Echlorine/typecho-plugins/tree/master/Reward

文件下载

部分资源暂不提供下载,你可以点击联系我购置可玩该类游戏的老款手机

出售各类老款游戏手机,可找游戏

微信: lost155805 QQ: 189515079

添加新评论