[WordPress] 外掛分享: Count All

首頁外掛目錄 › Count All
60+
安裝啟用
★★★★
4/5 分(1 則評價)
1836 天前
最後更新
問題解決
WordPress 2.8+ v0.3 上架:2010-06-22

內容簡介

這是一個非常簡單、高度自訂的計數器小工具,用於顯示與指定日期和時間相差的天數。允許在標題和內容中使用 HTML,並且可以向上或向下計數。支援多個實例。

最初是為嬰兒年齡計算器而開發的,但可以用於任何計數任務。

此小工具中的選項包括:

標題即小工具的標題。它可以包含 HTML;其值只是嵌入到結果 HTML 頁面中。

內容是小工具的內容欄位。它使用 DateInterval::format 函数來格式化欄位內容。您可以使用該函數中的任何字段占位符。它的內容也嵌入到結果 HTML 頁面中,因此在 %-tags 上,您可以隨意使用任何 HTML。

日期指定我們應該計算與其相差多少天。由於此外掛只是計算「現在」和指定日期之間的差異(以24小時為天數),因此它可用於倒數計時,也可用於將來的日期,或向上計數,用於過去的日期。

當然,您可以擁有多個此小工具的實例。

有關用法示例,請參見屏幕截圖部分。

外掛標籤

開發者團隊

⬇ 下載最新版 (v0.3) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Count All」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Very simple, highly customizable counter widget for showing difference in
days from a specified date and time. Allows HTML in title and body. 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; its value is simply embedded into the resulting HTML page.

Content is the widget content field. It uses the 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,
so over the %-tags, you are free to use any HTML you want.

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

延伸相關外掛

文章
Filter
Apply Filters
Mastodon