Этот плагин не тестировался с последними 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.

Отзывы

03.09.2016
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.
03.09.2016
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