[WordPress] 外掛分享: Years Since – Timeless Texts

WordPress 外掛 Years Since – Timeless Texts 的封面圖片。

前言介紹

  • 這款 WordPress 外掛「Years Since – Timeless Texts」是 2018-04-08 上架。
  • 目前有 100 個安裝啟用數。
  • 上一次更新是 2024-12-29,距離現在已有 126 天。
  • 外掛最低要求 WordPress 4.9.0 以上版本才可以安裝。
  • 外掛要求網站主機運作至少需要 PHP 版本 7.4 以上。
  • 有 6 人給過評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

laurencebahiirwa |

外掛標籤

date | span | time | update | updater |

內容簡介

保持日期時間相關文本的相關性。例如,「我已經工作了 x 年。」在一年內就過時了。在你的文章中使用 years-since 外掛可以讓「x」保持最新並且使你的內容保持新鮮。

使用方法

在你的文本中,必須使用屬性「y」來提供一個年份,例如:[years-since y=2012]。
你也可以選擇使用「m」來標記月份,「d」來標記日期。如果未在短碼中添加月份和日期,則它們的預設值為「1」。

例如,在「關於我們」頁面上,你可能會寫:

我們已經遠程工作了 [years-since y=2012] ,這使得團隊可以花更多時間旅行和與家人在一起。
或者,如果你想在特定週年紀念日上更新時間範圍,你可以寫像這樣的句子:
我 [years-since y=1990 m=5 d=16] 歲了。

1.3.2

修正了 or 為 ||

1.3.1

為外掛添加命名空間以避免 PHP 衝突。
修復當使用 [years-since-gb] 時會破壞 HTML 的問題。
測試 WP 版本 5.6 的兼容性。

1.3.0

添加了允許以天、月、週為單位的功能,當時間少於一年時使用它們代替「0 年」。

1.2.0

添加了對 Gutenberg 的支持。

1.1.0

在說明文件中加入了對 Gutenberg 的說明。

1.0.1

翻譯了返回的錯誤信息。
添加了一個短碼參數,用於屏蔽「年」或「年」文本。

1.0.0

初始化。

原文外掛簡介

Keep date time related texts relevant. “I have worked for x years.” becomes outdated within a year. Years since keeps “x” current in your posts and allow your content to age well.
Usage
A year must be provided in your text by the attribute “y” such as [years-since y=2012].
As an option, Months by referencing “m” and day by using “d”. Months and day default to “1” if not added in the shortcode.
For example, on an “About” page text, you might have something like:

We’ve worked remotely for [years-since y=2012], which has allowed the team to spend more time traveling and spending time with family.
Or, if you wanted to update a time span on a particular anniversary, you could do something like:
I’m [years-since y=1990 m=5 d=16] old.

More attributes
html
Add specific HTML tag to the calculation with the html attrribute e.g.
[years-since y=1990 html=span] will wrap the output in a span tag.
text
Add a text attribute with value false i.e.
[years-since y=1990 text=false] will remove the text years from the calculation.
It will output 23 instead of 23 years.
1.4.1

Fix: Add proper escaping for the shortcode input.

1.4.0

Fix: Breaking month and day output.
Add: Testing for WP 6.5.2
Add: Require PHP 8.2.0
Add: Require PHP 7.4
Add: Function arguments and Return Type hinting.
Add: A testing framework with pest with CI.
Fix: Deprecate Editor poylfill function for the block editor.

1.3.5

Fix: Breaking change HTML Default argument paragraph html attribute as “p” for the shortcode output.

1.3.4

Fix: Restore minus text format for the calculations.
Add: Translations file build + .pot.
Add: Default attributes for the shortcode.
New: HTML Default argument paragraph html attribute as “p” for the shortcode output.

1.3.3

Fix: Time calculations and messaging.
Test: WP 6.3.1.
Test: PHP 8.2.10.

1.3.2

Fix or to ||

1.3.1

Namespace the plugin to avoid PHP conflicts.
Fix the breaking html when [years-since-gb] is used.
Test WP version compatibility for 5.6.

1.3.0

Add functionality to allow for days, months, weeks instead of 0 years when time is less than a year.

1.2.0

Add Gutenberg support

1.1.0

Add Gutenberg note to readme.

1.0.1

Translate returned errors.
Shortcode parameter to suppress “year” and “years” text.

1.0.0

Initial creation.

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Years Since – Timeless Texts」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


1.1.0 | 1.2.0 | 1.3.0 | 1.3.2 | 1.3.3 | 1.3.4 | 1.3.5 | 1.4.0 | 1.4.1 | trunk |

延伸相關外掛(你可能也想知道)

  • Updater by BestWebSoft 》Updater外掛程式可以自動更新已安裝的WordPress外掛程式、主題和網站核心至最新版本。下載、安裝、設定,然後忘記持續更新的問題吧!, 設定更新頻率,選擇自...。
  • Auto Updates 》現今,保持一切更新(安全性、相容性、新功能和效能)非常重要。預設的 WordPress 設定只會自動安裝小型的核心更新和語言檔案。, 不需設定,只要安裝並啟用此...。
  • Deployer for Git 》這款外掛可以使用「推送以部署」的方式安裝和自動更新托管在 GitHub、Bitbucket、GitLab 或 Gitea 上的主題和外掛。, , 總結:, - 外掛提供了安裝和自動更新 W...。
  • Stop Auto Updating Dangit 》這個外掛不適合大部分的 WordPress 使用者。它會阻止 WordPress 自動更新,這是不建議的。唯一你可能需要使用這個外掛的理由是如果你修改了 WordPress 核心檔...。
  • Year Updater 》「Year Updater」外掛程式允許您更新標題中特定年份的文章標題。例如,您可以使用該外掛程式將標題中的「2022年」字符替換為當前年份。。
  • Twittrup 》這個外掛會更新你的 Twitter 狀態,以展示你最新的一篇文章。你也可以選擇包括一個連結,引導讀者前往你的文章。, Twitter 上提供的連結可以透過以下服務進行...。
  • SVN Updater 》你曾經需要升級外掛到最新版(尚未發布)嗎?, 使用 SVN Updater,你在外掛頁面上會得到一個新的操作(Trunk)。, 此外掛的開發是在 GitHub 上進行的。, 歡迎...。
  • Auto Update WP 》WordPress 是一個免費的網站開發平台,由一群開發者所共同開發。每次新版本釋出,都會修正錯誤、新增功能、提升效能,並改進現有特性以跟上最新的產業標準。,...。
  • Outdated Template Updater for WooCommerce 》總結:這個外掛可檢測位於您的啟用主題中的過時 WooCommerce 模板檔案,並更新其版本號以符合 WooCommerce 使用的最新模板版本。對於主題開發人員和商店擁有...。
  • Woo Data Updater 》這是一個 WooCommerce 外掛,可以支援使用 WP-CLI 進行資料更新。, 執行以下指令以執行 WooCommerce 資料更新的 CLI 腳本:wp wc-data update, 請確認伺服器...。

文章
Filter
Apply Filters
Mastodon