這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

BMI Calculator Plugin

描述

Add a body mass index calculator to your blog by using the [bmi] shortcode. See the screenshots for previews.

There are 3 built-in styles: material design, Bootstrap, and default (your theme’s styles).

Options:

  • theme – material, clean, default, or none
  • metric – Label text for metric section
  • imperial – Label text for imperial section
  • height – Label text for height input
  • weight – Label text for weight input
  • heightPlaceholder – Placeholder text for height input
  • weightPlaceholder – Placeholder text for weight input
  • submit – Text for submit button
  • result – Text for result, use %bmi% to represent the calculated BMI

Examples:
[bmi theme=”clean”]
[bmi theme=”material” heightPlaceholder=”Enter your height” submit=”Calculate your BMI!” result=”Your BMI is %bmi%”]

螢幕截圖

  • Material design theme
  • Clean (Bootstrap) theme
  • Default theme
  • Material design theme with input

安裝

  1. Upload bmi-calculator-shortcode.php to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Place [bmi] in your post

常見問題

Are there going to be more themes?

Yes, in future updates.

How do I add my own theme?

You can use none as the theme to disable styling and add add your own styles.

評價

2016年9月3日
I have a small requirement with BMI calculator. Is there any way to change radio button default checked? I need imperial to be default checked.
2016年9月3日
Performs as advertised and our members find it very useful. Even though it's not "scientific" it is still a great visual tool for motivation and reasonable results.
閱讀全部4個評價

貢獻者及開發者

“BMI Calculator Plugin” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

將 BMI Calculator Plugin 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

修改日誌

1.0

  • Initial

1.0.1

  • Minor performance fix

1.0.2

  • Tested in 4.5.3

1.0.3

  • Updated for 5.2.2