[wordpress插件] Currency Code货币代码

wordpress 插件 文章 2020-04-06 20:00 1648 0 全屏看文

AI助手支持GPT4.0

评分
0
描述

Currency code lets you use live currency conversions either as a shortcode in your content or as a widget in your sidebar.

货币代码可让您将实时货币转换用作内容中的短代码或侧边栏中的小部件。

Supports 31 different currencies, with values updating automatically on site once a day.

支持31种不同的货币,其值每天在网站上自动更新一次。

Conversation values are processed by fixer.io (http://fixer.io) & currency rate library (hosted in /js/money.min.js) provided by Openexchangerates (https://openexchangerates.org/).

对话值由Openexchangerates(https://openexchangerates.org/)提供的fixer.io(http://fixer.io)和货币汇率库(托管在/js/money.min.js中)处理。

NO DATA COLLECTED BY EITHER SERVICE OR PLUGIN.

没有任何服务或插件收集的数据。

Fixer.io Licence: https://github.com/hakanensari/fixer-io/blob/master/LICENSE

Fixer.io许可证:https://github.com/hakanensari/fixer-io/blob/master/LICENSE

OpenExchangeRates Licence: https://github.com/openexchangerates/money.js/blob/master/license

OpenExchangeRates许可证:https://github.com/openexchangerates/money.js/blob/master/license

FAQ / Info

常见问题解答/信息

Shortcode

简码

To use the shortcode, simply use something like the default value below in your content:

要使用简码,只需在内容中使用类似下面的默认值的

[currency from=”GBP” to=”USD” round=”2″]

[货币从=“ GBP”到=“ USD”回合=“ 2”]

You can replace the currency values with any of the supported currencies, which are listed below.

您可以使用下面列出的任何受支持的货币替换货币值。

The round attribute controls to how many decimal places the figure display will round to.

round属性控制图形显示将舍入到小数点后几位。

The sample output for this is:

此示例输出为:

1 GBP = 1.33 USD

1英镑= 1.33美元

Widget

小部件

To use the widget go to Appearance -> Widgets and drag the Currency Converter widget into one of your sidebars.

要使用该小部件,请转到外观->小部件,然后将Currency Converter小部件拖到侧边栏之一。

The sample output of the widget is the same as the shortcode:

小部件的示例输出与短代码相同:

1 GBP = 1.33 USD

1英镑= 1.33美元

To see how the widget works code-wise check out the JSFiddle the widget is built from (https://jsfiddle.net/stevenkellow/x3hdtja6/2/)

要查看小部件如何以代码方式工作,请查看JSFiddle,该小部件是从(https://jsfiddle.net/stevenkellow/x3hdtja6/2​​/)构建的。

Currencies

货币

Here are the 31 available currencies for use with this plugin:

以下是此插件可使用的31种可用货币:

AUD = Australian Dollars

AUD =澳大利亚元

BRL = Brazilian Reals

BRL =巴西雷亚尔

BGN = Bulgarian Levs

BGN =保加利亚列弗

CAD = Canadian Dollars

CAD =加元

CNY = Chinese Yuan Renminbi

CNY =人民币

HRK = Croatian Kunas

HRK =克罗地亚库纳斯

CZK = Czech Koruna

CZK =捷克克朗

DKK = Danish Kroner

DKK =丹麦克朗

EUR = Euros

欧元=欧元

HKD = Hong Kong Dollar

HKD =港元

HUF = Hungarian Florins

HUF =匈牙利弗罗林斯

INR = Indian Rupee

INR =印度卢比

IDR = Indonesian Rupiah

IDR =印尼盾

ILS = Israeli Shekel

ILS =以色列谢克尔

JPY = Japanese Yen

JPY =日元

KRW = Korean Won

KRW =韩元

MYR = Malaysian Ringgits

MYR =马来西亚林吉特

MXN = Mexican Pesos

MXN =墨西哥比索

NZD = New Zealand Dollar

NZD =新西兰元

NOK = Norwegian Kroner

NOK =挪威克朗

PHP = Philippine Pesos

PHP =菲律宾比索

PLN = Polish Zloty

PLN =波兰兹罗提

RON = Romanian Leus

RON =罗马尼亚新列伊

RUB = Russian Rubles

RUB =俄罗斯卢布

SGD = Singapore Dollars

SGD =新加坡元

ZAR = South African Rand

ZAR =南非兰特

SEK = Swedish Krona

SEK =瑞典克朗

CHF = Swiss Francs

CHF =瑞士法郎

THB = Thai Baht

THB =泰铢

TRY = Turkish Lira

TRY =土耳其里拉

GBP = UK Pounds

GBP =英镑

USD = US Dollars

USD =美元

安装步骤

    1. Upload the plugin files to the /wp-content/plugins/currency-code directory, or install the plugin through the WordPress plugins screen directly.
    2. 将插件文件上传到 / wp-content / plugins / currency-code 目录,或直接通过WordPress插件屏幕安装插件。

    3. Activate the plugin through the ‘Plugins’ screen in WordPress
    4. 通过WordPress中的“插件”屏幕激活插件

    Shortcodes work out-of-the-box and widgets require adding to your sidebar before being available.

    简码可以直接使用,并且小部件需要先添加到边栏中,然后才能使用。

下载地址
https://downloads.wordpress.org/plugin/currency-code.0.1.zip
-EOF-

AI助手支持GPT4.0