前言介紹
- 這款 WordPress 外掛「Units」是 2015-02-23 上架。
- 目前有 10 個安裝啟用數。
- 上一次更新是 2015-08-21,距離現在已有 3544 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
- 外掛最低要求 WordPress 3.8 以上版本才可以安裝。
- 有 1 人給過評分。
- 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。
外掛協作開發者
外掛標籤
units | localization | measurements |
內容簡介
為什麼使用Units?
Units 提供使用者直覺的方式選擇和顯示他們喜愛的度量單位。 使用者喜愛的度量單位可透過會話、Cookie 或不使用儲存,可在外掛程式設定中進行組態。
主要/替代單位可添加許多個,並附有其轉換公式。
請造訪 unitswitcher.com 以取得更詳細的資訊。
使用 Units
在「設定」>「Units」下添加主要單位。通過提供其名稱和轉換公式,也可添加替代單位。可為每個主要單位添加多個替代單位。
在範本中使用函數 unit_switcher($value, $primaryunit, $round) 以顯示交換機。將儲存的值作為第一個參數,將主要度量單位作為第二個值傳遞。
要顯示單個轉換器,可使用短碼[ unit_switcher ]。短碼需要兩個參數:單位(要轉換的主要單位)和值(儲存的值)。
有關更多資訊,請造訪 unitswitcher.com。
重要提示:需要 WordPress 版本 3.8 或更高版本和 PHP 版本 5.3.2 或更高版本。
更多資訊
使用模板函數
unit_switcher($variable, $primaryunit, $round);
參數:
* $variable-儲存的值(整數或浮點數)
* $primaryunit-主要的度量單位(將儲存的值存儲在此單位中)
* $round-要四捨五入的位數(默認值為 2)
請造訪 unitswitcher.com 取得更詳細的資訊。
原文外掛簡介
Why Units?
Units provides your users with an intuitive way to choose and display their preferred unit of measurement. The user’s preferred unit of measurement is saved via session, cookie, or none – configurable under the plugin settings.
Any number of primary/alternate units can be added, along with their conversion formulas.
Visit unitswitcher.com for more detailed information.
Using Units
Add primary units under Settings > Units. Alternate units may be added by providing their name and conversion formula. Multiple alternate units may be added for each primary unit.
Use the function unit_switcher($value, $primaryunit, $round) in your template to display the switcher. Pass the stored value as the first parameter and primary unit of measurement as the second value.
To display a single switcher, the shortcode [unit_switcher] is available for use. The shortcode requires two parameters: unit (the primary unit being converted) and value (the stored value).
For more information visit unitswitcher.com.
Important: Unit Switcher requires WordPress version 3.8 or higher, and PHP version 5.3.2 or higher.
More Information
Using the Template Function
unit_switcher($variable, $primaryunit, $round);
Parameters:
* $variable – The stored value (integer or float)
* $primaryunit – The primary unit (the stored value should be stored in this unit)
* $round – Number of digits to round to (default is 2)
Visit unitswitcher.com for more detailed information.
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Units」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
延伸相關外掛(你可能也想知道)
JKL Unit Converter 》我是一個居住在南韓的美國外籍人士,因此我經常需要在不同的單位之間進行轉換。我的家人在 Skype 上與我交談時使用華氏溫度計;在線食譜需要使用8盎司一些東...。
additional measurements units for WooCommerce 》這是一個簡單的 WooCommerce 外掛或擴充套件。如果啟用該外掛,您將為產品獲得額外或附加的所有必要測量單位, , 功能, , 啟用此外掛後,您將為產品獲得額外或...。
Referral-system-IVD 》首先,這個外掛程式旨在透過區塊鏈上的新令牌收集更多新用戶,僅適用於推薦系統。, 這個外掛程式非常適合加密貨幣和新的加密貨幣。, 此外掛程式使用和擴展了W...。
Bits2Bytes 》Bits2Bytes 可讓使用者轉換電腦資料單位。Bits2Bytes 使用 Ajax 技術,轉換單位時不會重新載入頁面。, 您只需將 Bits2Bytes 小工具新增至您的網站或部落格,...。