[wordpress插件] Count All全部计数

wordpress 插件 文章 2020-04-03 09:00 486 0 全屏看文

AI助手支持GPT4.0

评分
80
描述

Very simple, highly customizable counter widget for showing difference in

非常简单,高度可定制的计数器小部件,用于显示差异

days from a specified date and time.

指定日期和时间之后的天数。

Allows HTML in title and body.

允许在标题和正文中使用HTML。

Can

可以

count up and down.

向上和向下计数。

Supports multiple instances.

支持多个实例。

Originally developed as a baby age counter, but can be used for any counting

最初是作为婴儿年龄计数器开发的,但可用于任何计数

job.

工作。

The options in the widget are:

小部件中的选项为:

    • Title is the widget’s title.

      标题是窗口小部件的标题。

      It can contain HTML;

      它可以包含HTML;

      its value is simply embedded into the resulting HTML page.

      它的值只是嵌入到生成的HTML页面中。

    • Content is the widget content field.

      Content 是窗口小部件内容字段。

      It uses the DateInterval::format

      它使用 DateInterval :: format

      function to format the field contents.

      函数格式化字段内容。

      You can use any field specifiers from

      您可以使用
      中的任何字段说明符

      that function.

      该功能。

      Its contents are also embedded into the resulting HTML page,

      其内容也嵌入到生成的HTML页面中,

      so over the %-tags, you are free to use any HTML you want.

      因此,在%标签上,您可以自由使用所需的任何HTML。

    • Date specifies the date we should count difference from.

      日期指定我们应从中算出差异的日期。

      Since this

      从此

      plugin simply calculates the difference between ‘now’ and the specified date

      插件仅计算“现在”与指定日期之间的差额

      (in 24-hour days), it can be used for counting down, for dates in the

      (在24小时内),它可以用于倒计时,用于
      中的日期

      future, or counting up, for dates in the past.

      过去的日期的未来或递增计数。

    You can have multiple instances of this widget, of course.

    您当然可以拥有此小部件的多个实例。

    For an example usage, see the screenshots section.

    有关用法示例,请参见屏幕截图部分。

安装步骤

The plugin consists of a single .php file, so it’s very easy:

该插件包含一个.php文件,因此非常简单:

    1. Upload count_all.php to the /wp-content/plugins/ directory
    2. count_all.php 上载到 / wp-content / plugins / 目录

    3. Activate the plugin through the ‘Plugins’ menu in WordPress
    4. 通过WordPress中的“插件”菜单激活插件

    5. Start using it on the ‘Widgets’ submenu of ‘Appearance’
    6. 在“外观”的“小部件”子菜单上开始使用它

下载地址
https://downloads.wordpress.org/plugin/count-all.0.3.zip
-EOF-

AI助手支持GPT4.0