Title: Coinwidget Shortcode
Author: Poco
Published: <strong>2014 年 1 月 6 日</strong>
Last modified: 2014 年 12 月 23 日

---

搜索插件

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://s.w.org/plugins/geopattern-icon/coinwidget-shortcode.svg)

# Coinwidget Shortcode

 作者：[Poco](https://profiles.wordpress.org/poco/)

[下载](https://downloads.wordpress.org/plugin/coinwidget-shortcode.zip)

 * [详情](https://cn.wordpress.org/plugins/coinwidget-shortcode/#description)
 * [评价](https://cn.wordpress.org/plugins/coinwidget-shortcode/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/coinwidget-shortcode/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/coinwidget-shortcode/#developers)

 [支持](https://wordpress.org/support/plugin/coinwidget-shortcode/)

## 描述

This plugin adds the shortcode [coinwidget] to embed a coinwidget.com bitcoin donation
button.

See http://coinwidget.com.

Since the coinwidget.com source has not changed in some time, this plugin is now
based on a branch available at https://github.com/alvinhkh/CoinWidget

To get public information about your Bitcoin address it makes queries to http://
blockchain.info/address/.
 To get public information about your Litecoin address
it makes queries to http://explorer.litecoin.net/address/. To get public information
about your Dogecoin address it makes queries to http://dogechain.info/address/.

### Usage

Embed the short [coinwidget] anywhere in your posts or template to include a coinbase
button that, when clicked, will display a address for users to send Bitcoins.

Supported attributes as documented here http://coinwidget.com/

 * address – default “”
 * currency – default “bitcoin”, possible (“bitcoin”, “litecoin”, “dogecoin”)
 * counter – default “count”
 * alignment – default “bl”
 * qrcode – default “true”
 * auto_show – default “false”
 * decimals – default “4”
 * lbl_button – default “Donate”
 * lbl_address – default “My Bitcoin Address:”
 * lbl_count – default “donations”
 * lbl_amount – default “BTC”

Example:

    ```
    [coinwidget
        address="12uaFq9CyGZBoT6nSbVzZ2AjGnZkfRSHoy" currency="bitcoin"
        counter="count" alignment="al" qrcode="false" auto_show="true"
        lbl_button="Press Me" lbl_address="Me Place" lbl_count="Gimme"
        lbl_amount="$$$"]
    ```

## 屏幕截图

 * [[
 * The coinwidget button that how it will appear on the page
 * [[
 * The expanded popup when the user clicks on the button.

## 安装

 1. Download the plugin via WordPress.org
 2. Includes the current master branch of coinwidget.com from here (https://github.
    com/alvinhkh/CoinWidget). You should be able to upgrade to newer versions by replace
    the contents of that folder.
 3. Include the shortcode anywhere in your posts or pages or template. With the appropriate
    plugins you can also include shortcodes in sidebar widgets.

## 常见问题

  I’ve installed the plugin – now what?

Anywhere in a post or template (or sidebar widget if you have the appropriate plugins
installed) you can include the text [coinwidget address=””] and it will be replaced
with a button as seen on http://coinwidget.com/.

## 评价

此插件暂无评价。

## 贡献者及开发者

「Coinwidget Shortcode」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Poco ](https://profiles.wordpress.org/poco/)

[帮助将「Coinwidget Shortcode」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/coinwidget-shortcode)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/coinwidget-shortcode/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/coinwidget-shortcode/)，或通过[RSS](https://plugins.trac.wordpress.org/log/coinwidget-shortcode/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/coinwidget-shortcode/)。

## 更新日志

#### 2.0

 * 2014-12-23
 * Updated to a branch of the plugin from https://github.com/alvinhkh/CoinWidget(
   commit 4c352afee53879e0e9168bcf3c807cfe16ef9e86).
 * Fixes bugs and adds support for Dogecoin.
 * Added span container around shortcode to ensure that it is embedded at the correct
   location on the page with a unique id for each span.

#### 1.1

 * 2014-01-16
 * Fix for coinwidget.com issue #4 – https://github.com/scottycc/coinwidget.com/
   issues/4
 * Replaced document.lastChild.firstChild.appendChild(x) with this document.body.
   appendChild(x)

#### 1.0

 * 2013-12-09
 * Initial release

## 额外信息

 *  版本 **2.0**
 *  最后更新：**11 年前**
 *  活跃安装数量 **10+**
 *  WordPress 版本 ** 3.0 或更高版本 **
 *  已测试的最高版本为 **4.0.38**
 *  语言
 * [English (US)](https://wordpress.org/plugins/coinwidget-shortcode/)
 * 标签
 * [bitcoin](https://cn.wordpress.org/plugins/tags/bitcoin/)[coinwidget](https://cn.wordpress.org/plugins/tags/coinwidget/)
 *  [高级视图](https://cn.wordpress.org/plugins/coinwidget-shortcode/advanced/)

## 评级

 5 星（最高 5 星）。

 *  [  1 条 5 星评价     ](https://wordpress.org/support/plugin/coinwidget-shortcode/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/coinwidget-shortcode/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/coinwidget-shortcode/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/coinwidget-shortcode/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/coinwidget-shortcode/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/coinwidget-shortcode/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/coinwidget-shortcode/reviews/)

## 贡献者

 *   [ Poco ](https://profiles.wordpress.org/poco/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/coinwidget-shortcode/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](http://notions.okuda.ca)