[wordpress插件] Calorie Calculator卡路里计算器

wordpress 插件 文章 2020-03-16 03:20 0 239 全屏看文
评分
66
描述

This Calorie Calculator is based on the Mifflin – St Jeor equation.

此卡路里计算器基于Mifflin – St Jeor方程。

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.

尽量不要将每天的卡路里摄入量降低超过1000卡路里,并逐渐降低卡路里的摄入量。

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

使用方法

    1. From your widget setting select “Calorie Calculator” and put it in your expected sidebar.
    2. 从窗口小部件设置中选择“卡路里计算器”,然后将其放入所需的侧边栏中。

    3. Select an unit.

    4. 选择一个单位。

      By default it shows both “US Unit” and “Metric Unit”.

      默认情况下,它同时显示“美国单位”和“公制单位”。

      But you can show only “US Unit” or “Metric Unit”.

    5. 但是您只能显示“美国单位”或“公制”。

    6. You can select a template (I recommend to keep the default option – General) from General, Twitter Bootstrap General, Old/Classic.
    7. 您可以从“常规”,“ Twitter引导程序常规”,“旧/经典”中选择一个模板(建议保留默认选项-“常规”)。

    8. You can show Name Field, Email Fields, etc to shave user details in the Backend as Calorie Calculator Logs.
    9. 您可以显示“名称”字段,“电子邮件”字段等,以在后端将用户详细信息作为卡路里计算器日志进行刮擦。

    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.

    卡路里计算器Pro具有一些超级有用的功能,包括灵活的简码,下载为PDF,发送至电子邮件,自动Mailchimp订阅,强大的计算器记录功能,食物中的卡路里表,通过卡路里燃烧卡路里等等。

    Also, I provide premium support for my premium customer.

    另外,我为高级客户提供高级支持。

    Buy Pro or See full list of features here.

    购买Pro或在此处查看完整功能列表。

      1. If you want do to enable “Send Calculator Result as Email” and “Download Result as PDF” option, you can select them.
      2. 如果要启用“将计算器结果发送为电子邮件”和“将结果下载为PDF”选项,则可以选择它们。

      3. If you want to show “Calorie in Common Foods” table and “Calorie Burning by Common exercises”, you can select them.

      4. 如果要显示“常见食品中的卡路里”表和“常见运动中的卡路里燃烧”,则可以选择它们。

        (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.)

      5. (您的网站侧边栏应足够宽以显示这些表。仅当将此小部件放在页脚小部件或其他类似地方时才考虑启用它。)

      Using Shortcodes:

      使用简码:

        1. General shortcode with default styling and all options enabled is [calorie_calculator]
        2. 具有默认样式并启用所有选项的常规简码为 [calorie_calculator]

        3. If you want to show this widget inside of php codes or within your theme you can use

        4. 如果要在php代码内或主题内显示此小部件,可以使用 <?php echo do_shortcode('[calorie_calculator]');

          ?>

        5. ?>

        6. All attributes calorie_calculator shortcode supports are:

          卡路里_计算器的简码支持的所有属性是:

          i) send_to_email=”false/true” (default value is ‘true’)

          i)send_to_email =“ false / true”(默认值为“ true”)

          ii) download_as_pdf=”false/true” (default value is ‘true’)

          ii)download_as_pdf =“ false / true”(默认值为“ true”)

          iii) unit=”usunit/metricunit/both” (default value is ‘both’)

          iii)unit =“ usunit / metricunit / both”(默认值为“ both”和“ both”)

          iv) template=”general/bootstrap-general/old” (default value is ‘general’)

          iv)template =” general / bootstrap-general / old”(默认值为“ general”)

          v) show_name_field=”true/false” (default value is ‘true’. This field is required for Mailchimp subscription)

          v)show_name_field =“ true / false”(默认值为'true'。对于Mailchimp订阅,此字段是必需的)

          vi) show_email_field=”true/false” (default value is ‘true’. This field is required for Mailchimp subscription)

          vi)show_email_field =“ true / false”(默认值为'true'。对于Mailchimp订阅,此字段是必需的)

          vii) show_firstname_only=”true/false” (default value is ‘false’)

          vii)show_firstname_only =“ true / false”(默认值为“ false”)

          Example: [calorie_calculator send_to_email="false" download_as_pdf="false" template="general"]

          示例: [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.

          例如:在上面的简码示例中,send_to_email不包含false值。

          So, it will be displayed.

          因此,它将显示出来。

        7. To make things easier, there is a shortcode generator included in the “Calorie Calculator” Settings page.

          为了简化操作,“卡路里计算器” “设置”页面中包含一个短代码生成器。

        Saving Calculator Data to the Database

        将计算器数据保存到数据库中

          1. Calculator usage details and user data gets stored in the Database automatically.

          2. 计算器使用情况详细信息和用户数据会自动存储在数据库中。

            You can to the ‘Calorie Calculator Logs’ page to those data.

          3. 您可以在“卡路里计算器日志”页面上查看这些数据。

          Subscribing User to Your Mailchimp List

          向用户订阅您的Mailchimp列表

            1. You can subscribe users to a Mailchimp List.
            2. 您可以为用户订阅Mailchimp列表。

            3. For this you need to go to ‘Mailchimp’ tab of the ‘Calorie Calculator’ Settings page from WordPress Dashboard.
            4. 为此,您需要转到WordPress信息中心“卡路里计算器”设置页的“ Mailchimp”标签。

            5. Then Enter you Mailchimp API Secret Key and Mailchimp List ID.

            6. 然后输入您的Mailchimp API密钥和Mailchimp列表ID。

              You can get help from the links there.

            7. 您可以从那里的链接获得帮助。

            8. You must have ‘Show Name’ and ‘Show Email’ field enabled (in widgets/shortcodes) for Mailchimp Subscription to work.
            9. 您必须启用“显示名称”和“显示电子邮件”字段(在小部件/短代码中),Mailchimp订阅才能正常工作。

            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.

            您可以通过单击“以CSV格式导出食物”和“以CSV格式导出活动”按钮轻松导出所有食物和消耗卡路里的活动/运动表数据。

            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.

            另一方面,您可以通过选择相应的文件,然后单击“卡路里计算器” “设置”页面中的“导入Foos”和“导入活动”按钮来轻松导入它们。

            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.

            在“卡路里计算器”设置页面中,您会找到两个选项卡,分别名为“食物中的卡路里”和“通过锻炼来燃烧卡路里”,您可以在其中轻松添加新食物或运动,更新它们并删除它们。

安装步骤

    1. Click on “Install Now” and then “Activate” the plugin.
    2. 单击“立即安装”,然后“激活”插件。

    3. You will find a new widget named “Calorie Calculator” at the “Appearence” >> “Widget” page.
    4. 您将在“外观” >>“小部件”页面上找到一个名为“卡路里计算器”的新小部件。

    5. Place the widget wherever you want and you are done.
    6. 将窗口小部件放置在您想要的位置,然后完成。

    Manual Installation:

    手动安装:

      1. Download the plugin as a Zip file.
      2. 将插件下载为Zip文件。

      3. Go you “Plugins” >> “Add New” from your Website’s Dashboard.
      4. 从您的网站信息中心转到“插件” >>“添加新”。

      5. Click on “Upload” and upload the downloaded file.
      6. 点击“上传”并上传下载的文件。

      7. Click on the “Activate” button when it’s uploaded.
      8. 上传后单击“激活”按钮。

      9. The next steps are same as the automatic installation.
      10. 下一步与自动安装相同。

下载地址
https://downloads.wordpress.org/plugin/calorie-calculator.3.2.3.zip
-EOF-