[wordpress插件] Bittip.It – Bitcoin Donation ButtonBittip.It –比特币捐赠按钮

wordpress 插件 文章 2020-03-05 19:40 553 0 全屏看文

AI助手支持GPT4.0

评分
60
描述

Enter your Bitcoin address via the settings page and choose whether you want it to appear on posts/pages.

通过设置页面输入您的比特币地址,然后选择是否希望其显示在帖子/页面上。

A button will appear and, when clicked, an iframe is loaded with a qr code allowing your readers to donate to you.

将出现一个按钮,当单击该按钮时,iframe会加载一个qr代码,以使您的读者向您捐款。

100% goes to you and does so directly.

100%直接归您所有。

External Files

外部文件

The plugin adds 4 externally hosted files to the DOM:

该插件将4个外部托管文件添加到DOM:

2 Image files

2个图像文件

1 CSS File

1个CSS文件

1 (of two possible) Javascript files

1个(两个可能的)JavaScript文件

https://bitcoinsberlin.com/wp-content/uploads/2013/01/button-loader.js

https://bitcoinsberlin.com/wp-content/uploads/2013/01/button-loader.js

OR

OR

http://bittip.it/cdn/button-loader.js

http://bittip.it/cdn/button-loader.js

The files are identical.

文件相同。

The file that is loaded depends on your protocol.

加载的文件取决于您的协议。

If your site uses ‘https’ then the ‘https’ version must be loaded.

如果您的网站使用“ https”,则必须加载“ https”版本。

The button works like any normal web button including Twitter and Flattr buttons.

该按钮的工作方式类似于任何普通的Web按钮,包括Twitter和Flattr按钮。

You copy a code snippet into your project and when the project is run, CSS and Javascript is added to your head to activate the buttons.

将代码段复制到项目中,然后在运行项目时,将CSS和Javascript添加到头部以激活按钮。

The CSS is for styling the button.

CSS用于设置按钮的样式。

The Javascript performs several tasks.

Javascript执行多项任务。

What the Javascript does

JavaScript的作用

1) Loads the ammount of donations via an ajax function performed on “htt://bittip.it”

1)通过在“ htt://bittip.it”上执行的ajax函数加载捐赠金额。

2) Attaches a click event to the button to open the iframe for donating

2)将点击事件附加到按钮上,以打开用于捐赠的iframe

3) Creates the outer frame of the popup

3)创建弹出框的外框

While these files could be hosted on wordpress, it is neater if they are hosted off site as the majority of users will have copied the snippit directly from the site, opposed to installing the WordPress plugin.

虽然这些文件可以托管在wordpress上,但是如果将它们托管在站点之外则更为整洁,因为大多数用户将直接从站点复制代码段,而不是安装WordPress插件。

Full Support:

全面支持:

http://bittip.it/wordpress-plugin/

http://bittip.it/wordpress-plugin/

安装步骤

    1. Install by uploading the file to your plugin directory.
    2. 通过将文件上传到您的插件目录进行安装。

    3. Activate.
    4. 激活。

    5. Configure settings
    6. 配置设置

下载地址
https://downloads.wordpress.org/plugin/bittipit-bitcoin-donation-button.zip
-EOF-

AI助手支持GPT4.0