
內容簡介
這款卡路里計算器基於Mifflin - St Jeor方程式。可以使用此卡路里計算器估算您每天需要攝取的熱量。如果您想要減重或增重,此計算器也可以提供簡單的指導方針。
減重的最佳方法是透過適當的飲食和運動。請勿將您的熱量攝取減少超過每天1,000卡路里,並嘗試逐漸降低熱量攝取。同時,嘗試保持您的纖維攝取水平和平衡其他營養需求。卡路里計算器的結果是根據估算平均值計算的。
使用方法
從小工具設置中選擇“卡路里計算器”並將其放置在您希望顯示的側欄中。
選擇一個單位。默認情況下,它顯示“美國單位”和“公制單位”。但您可以僅顯示“美國單位”或“公制單位”。
您可以從“常規,Twitter Bootstrap常規,舊版/經典”中選擇一個模板(我建議保留默認選項-常規)。
您可以在後端顯示名稱字段,電子郵件字段等以保存用戶詳細信息作為卡路里計算器日誌。
Pro版本使用方法
Calorie Calculator Pro版本提供了一些非常有用的功能,包括靈活的短碼、下載為PDF、發送到電子郵件、自動Mailchimp訂閱、強大的計算器日誌、常見食物中的熱量表、通過運動消耗的熱量等等。此外,我為我的高級用戶提供優質支持。在此購買Pro或查看完整功能列表。
如果您想啟用“將計算器結果作為電子郵件發送”和“下載結果為PDF”選項,您可以選擇它們。
如果您想顯示“常見食品中的卡路里表”和“通過常見運動消耗的卡路里”,請選擇它們(您的網站側欄應足夠寬,才能顯示這些表格。請考慮僅在此小工具放置在較寬的位置(例如頁腳小工具或其他位置)時啟用此功能。)。
使用短碼:
預設樣式和所有選項都啟用的通用短碼為:[calorie_calculator]。
如果您想在php代碼或主題中顯示此小工具,您可以使用<?php echo do_shortcode('[calorie_calculator]');?> 。
支持calorie_calculator短碼的所有屬性包括:
i)send_to_email=”false/true”(默認值為‘true’)
ii)download_as_pdf=”false/true”(默認值為‘true’)
iii)unit=”usunit/metricunit/both”(默認值為‘both’)
iv)template=”general/bootstrap-general/old”(默認值為‘general’)
v)show_name_field=”true/false”(默認值為‘true’。Mailchimp訂閱需要此字段)
vi)show_email_field=”true/false”(默認值為‘true’。Mailchimp訂閱需要此字段)
vii)show_firstname_only=”true/false”(默認值為‘false’)
例如:[calorie_calculator send_to_email="false" download_as_pdf="false" template="general"]
注意:如果您不在短碼中包含屬性,則該屬性將應用默認值。例如:上面的短碼示例中未包含值為false的send_to_email屬性。因此,它將顯示。
為了使事情更加簡單,Calorie Calculator中還包括短碼生成器。
外掛標籤
開發者團隊
原文外掛簡介
This Calorie Calculator is based on the Mifflin – St Jeor equation. The Calorie Calculator can be used to estimate the calories you need to consume each day. This calculator can also provide some simple guideline if you want to gain or lose weight.
The best way to lose weight is through proper diet and exercise. Try not to lower your calorie intake by more than 1,000 calories per day, and try to lower your calorie intake gradually. Also, try to maintain your level of fiber intake and balance your other nutritional needs. The results of the Calorie Calculator are based on an estimated average.
How to Use
From your widget setting select “Calorie Calculator” and put it in your expected sidebar.
Select an unit. By default it shows both “US Unit” and “Metric Unit”. But you can show only “US Unit” or “Metric Unit”.
You can select a template (I recommend to keep the default option – General) from General, Twitter Bootstrap General, Old/Classic.
You can show Name Field, Email Fields, etc to shave user details in the Backend as Calorie Calculator Logs.
Pro Version Usage
Calorie Calculator Pro comes with a handful of super useful features including flexible shortcode, download as PDF, Send to email, Automatic Mailchimp Subsciption, Strong Calculator Logging, Table of calories in food, Calorie burning by exercies and many more. Also, I provide premium support for my premium customer. Buy Pro or See full list of features here.
If you want do to enable “Send Calculator Result as Email” and “Download Result as PDF” option, you can select them.
If you want to show “Calorie in Common Foods” table and “Calorie Burning by Common exercises”, you can select them. (Your website sidebar should be wide enough to display these tables. Consider enabling it only if this widget is put in a wider place like footer widget or something else.)
Using Shortcodes:
General shortcode with default styling and all options enabled is [calorie_calculator]
If you want to show this widget inside of php codes or within your theme you can use
All attributes calorie_calculator shortcode supports are:
i) send_to_email=”false/true” (default value is ‘true’)
ii) download_as_pdf=”false/true” (default value is ‘true’)
iii) unit=”usunit/metricunit/both” (default value is ‘both’)
iv) template=”general/bootstrap-general/old” (default value is ‘general’)
v) show_name_field=”true/false” (default value is ‘true’. This field is required for Mailchimp subscription)
vi) show_email_field=”true/false” (default value is ‘true’. This field is required for Mailchimp subscription)
vii) show_firstname_only=”true/false” (default value is ‘false’)
Example: [calorie_calculator send_to_email="false" download_as_pdf="false" template="general"]
Note: If you don’t include an attribute within the shortcode, default value will be applied for that. As an example: send_to_email isn’t included with value false in the shortcode example above. So, it will be displayed.
To make things easier, there is a shortcode generator included in the “Calorie Calculator” Settings page.
Saving Calculator Data to the Database
Calculator usage details and user data gets stored in the Database automatically. You can to the ‘Calorie Calculator Logs’ page to those data.
Subscribing User to Your Mailchimp List
You can subscribe users to a Mailchimp List.
For this you need to go to ‘Mailchimp’ tab of the ‘Calorie Calculator’ Settings page from WordPress Dashboard.
Then Enter you Mailchimp API Secret Key and Mailchimp List ID. You can get help from the links there.
You must have ‘Show Name’ and ‘Show Email’ field enabled (in widgets/shortcodes) for Mailchimp Subscription to work.
Import/Export:
You can easily export all foods and calorie burning activities/exercises table data by clicking on “Export Foods as CSV” and “Export Activities as CSV” button. On the otherhand, you can import them easily by selecting respective files and then clicking on “Import Foos” and “Import Activiites” button within “Calorie Calculator” Settings page.
Adding new Foods and Activites:
Within “Calorie Calculator” setting page you will find two tabs named as “Calorie in Foods” and “Calorie Burning by Exercises” where you can easily add a new food or exercise, update them and delete them.
