[WordPress] 外掛分享: Currency Code

首頁外掛目錄 › Currency Code
10+
安裝啟用
尚無評分
3403 天前
最後更新
問題解決
WordPress 4.0+ v0.1 上架:2016-11-07

內容簡介

「Currency code」 外掛讓你可以在內容中使用縮寫,或是在側欄中使用小工具,即時進行貨幣轉換。

支援 31 種不同的貨幣,價值每天自動更新一次。

轉換數值是由 fixer.io(http://fixer.io)和 Openexchangerates(https://openexchangerates.org/)提供之貨幣匯率庫(位於/js/money.min.js)處理。 這些服務或外掛皆不收集任何資料。

Fixer.io 授權:https://github.com/hakanensari/fixer-io/blob/master/LICENSE
OpenExchangeRates 授權:https://github.com/openexchangerates/money.js/blob/master/license

常見問題 / 資訊
縮寫

要使用縮寫,只需在內容中使用下列預設值之類的內容:

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

您可以使用任何支援的貨幣替換貨幣值,支援的貨幣名稱如下。

round 屬性可控制顯示的數字保留到小數點後幾位。

此縮寫的樣式輸出如下:

1 GBP = 1.33 USD

小工具

若要使用小工具,請前往 外觀 -> 小工具,並將「貨幣轉換器」小工具拖動至其中一個側欄。

此小工具的樣式輸出與縮寫相同:

1 GBP = 1.33 USD

若要查看此小工具的程式碼,請參閱小工具所建立的 JSFiddle(https://jsfiddle.net/stevenkellow/x3hdtja6/2/)。

貨幣

以下是此外掛支援的 31 種貨幣:

AUD = 澳大利亞元
BRL = 巴西里爾
BGN = 保加利亞列弗
CAD = 加幣
CNY = 人民幣
HRK = 克羅地亞庫納
CZK = 捷克克朗
DKK = 丹麥克朗
EUR = 歐元
HKD = 港幣
HUF = 匈牙利福林
INR = 印度盧比
IDR = 印尼盾
ILS = 以色列新謝克爾
JPY = 日圓
KRW = 韓元
MYR = 馬來西亞令吉
MXN = 墨西哥披索
NZD = 紐西蘭幣
NOK = 挪威克朗
PHP = 菲律賓披索
PLN = 波蘭茲羅提
RON = 羅馬尼亞新列伊
RUB = 卢布
SGD = 新加坡幣
ZAR = 南非蘭特
SEK = 瑞典克朗
CHF = 瑞士法郎
THB = 泰銖
TRY = 新土耳其里拉
GBP = 英鎊
USD = 美元

外掛標籤

開發者團隊

⬇ 下載最新版 (v0.1) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Currency Code」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

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.
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/). NO DATA COLLECTED BY EITHER SERVICE OR PLUGIN.
Fixer.io Licence: https://github.com/hakanensari/fixer-io/blob/master/LICENSE
OpenExchangeRates Licence: 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″]
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.
The sample output for this is:
1 GBP = 1.33 USD
Widget
To use the widget go to Appearance -> Widgets and drag the Currency Converter widget into one of your sidebars.
The sample output of the widget is the same as the shortcode:
1 GBP = 1.33 USD
To see how the widget works code-wise check out the JSFiddle the widget is built from (https://jsfiddle.net/stevenkellow/x3hdtja6/2/)
Currencies
Here are the 31 available currencies for use with this plugin:
AUD = Australian Dollars
BRL = Brazilian Reals
BGN = Bulgarian Levs
CAD = Canadian Dollars
CNY = Chinese Yuan Renminbi
HRK = Croatian Kunas
CZK = Czech Koruna
DKK = Danish Kroner
EUR = Euros
HKD = Hong Kong Dollar
HUF = Hungarian Florins
INR = Indian Rupee
IDR = Indonesian Rupiah
ILS = Israeli Shekel
JPY = Japanese Yen
KRW = Korean Won
MYR = Malaysian Ringgits
MXN = Mexican Pesos
NZD = New Zealand Dollar
NOK = Norwegian Kroner
PHP = Philippine Pesos
PLN = Polish Zloty
RON = Romanian Leus
RUB = Russian Rubles
SGD = Singapore Dollars
ZAR = South African Rand
SEK = Swedish Krona
CHF = Swiss Francs
THB = Thai Baht
TRY = Turkish Lira
GBP = UK Pounds
USD = US Dollars

延伸相關外掛

文章
Filter
Apply Filters
Mastodon