[wordpress插件] Date counter日期计数器

wordpress 插件 文章 2020-04-13 00:31 710 0 全屏看文

AI助手支持GPT4.0

评分
100
描述

Date counter – is just a 3 kilobytes WordPress plugin that allows you to add a shortcode to count difference between two dates using start and end dates or display the current date easily.

日期计数器–只是一个3 KB的WordPress插件,可让您添加一个简码以使用开始日期和结束日期来计算两个日期之间的差,或者轻松显示当前日期。

Format options

格式选项

    • currentYear – displays the current Year
    • currentYear –显示当前年份

    • currentMonth – displays the current Month
    • currentMonth –显示当前月

    • currentDay – displays the current Day
    • currentDay –显示当前日期

    Don’t need anymore to change copyright year in footer each year!

    不再需要每年更改页脚中的版权年份!

    INPUT:  Copyright © [DateCounter format="currentYear"].

      INPUT:版权所有©[DateCounter format =“ currentYear”]。

    OUTPUT: Copyright © 2019.

    输出:版权所有©2019。

      • Years – displays the difference in Years
      • 年份 –显示年份的差异

      • Months – displays the difference in Months
      • 月份 –显示月份的差异

      • Days – displays the difference in Days
      • –显示天数差异

      • Hours – displays the difference in Hours
      • 小时 –显示小时数差异

      • Minutes – displays the difference in Minutes
      • 分钟 –以分钟为单位显示差异

      • Seconds – displays the difference in Seconds
      • –以秒为单位显示差异

      Example:

      示例:

      INPUT:  I'm [DateCounter startDate="1998-08-25" endDate="now" format="Years"] years old!

        INPUT:我[DateCounter startDate =“ 1998-08-25” endDate =“ now” format =“ Years”]岁!

      OUTPUT: I'm 21 years old!

      输出:我今年21岁!

        Example:

        示例:

        INPUT:  It's been [DateCounter startDate="2019-08-31" endDate="now" format="%a"] days since the end of summer :(

          INPUT:自夏天结束以来[[DateCounter startDate =“ 2019-08-31” endDate =“ now” format =“%a”]天:(

        OUTPUT: It's been 15 days since the end of summer :(

        输出:从夏天结束到现在已经15天了:(

        startDate and endDate options

        startDate和endDate选项

          • Any date format: 01.01.1991, 01-01-1991, 1991.01.01, 1991-01-01
          • 任何日期格式: 1991年1月1日,1991年1月1日,1991年1月1日,1991年1月1日

          • Now – gets current date and time
          • 现在 –获取当前日期和时间

安装步骤

    1. Upload the plugin files to the /wp-content/plugins/date-counter directory, or install the plugin through the WordPress plugins screen directly.
    2. 将插件文件上传到 / wp-content / plugins / date-counter 目录,或直接通过WordPress插件屏幕安装插件。

    3. Activate the plugin through the ‘Plugins’ screen in WordPress
    4. 通过WordPress中的“插件”屏幕激活插件

    5. Place shortcode [DateCounter startDate=”date” endDate=”date” format=”outputFormat”].
    6. 放置简码 [DateCounter startDate =“ date” endDate =“ date” format =“ outputFormat”]

下载地址
https://downloads.wordpress.org/plugin/date-counter.zip
-EOF-

AI助手支持GPT4.0