[WordPress] 外掛分享: Perpetual Calendar Infinite Day of Week Calculator

WordPress 外掛 Perpetual Calendar Infinite Day of Week Calculator 的封面圖片。

前言介紹

  • 這款 WordPress 外掛「Perpetual Calendar Infinite Day of Week Calculator」是 2012-06-15 上架。 目前已經下架不再更新,不建議安裝使用。
  • 目前有 10 個安裝啟用數。
  • 上一次更新是 2024-11-03,距離現在已有 181 天。
  • 外掛最低要求 WordPress 6.0 以上版本才可以安裝。
  • 外掛要求網站主機運作至少需要 PHP 版本 5.6 以上。
  • 有 1 人給過評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

adiant | dgewirtz |

外掛標籤

date | history | weekday | calendar | day of week |

內容簡介

in shortcode on a single page or post are supported, each with their own unique attributes and formats.

重要提示:支援已轉移到 ZATZLabs 網站,不再提供 WordPress.org 論壇上。如果您需要開發者即時回覆,請提交請求。

這款外掛可顯示任意日期的星期幾,包括從公元前6500年到公元8000年間的日期。透過簡碼(Shortcode),您可以在 WordPress 站點上隨意插入一個表單,讓訪客輸入日期並顯示那天是星期幾。初始簡碼名稱為[pcal],日期格式及簡碼名稱皆可在外掛的管理設置面板上進行修改。此外,您也可以透過「說明與資訊」按鈕,讓訪客更瞭解這個功能。

透過本外掛,您可以輕鬆為您的網站訪客提供永久曆的功能,在安裝並啟用本外掛後,只需在 WordPress 文章、頁面或其他支援簡碼插入的地方加入[pcal]即可。

本外掛已國際化(「可翻譯」),管理介面和使用者介面的英文與西班牙文都已提供,且在外掛的 /languages/ 目錄中包含一個 .POT 翻譯文件,方便翻譯者為其他語言完成翻譯,我們也很希望能提供更多語言版本。特別感謝 WebHostingHub 的 Andrew Kurtis 提供西班牙文翻譯。

當您成功安裝並啟用本外掛後,加入預設簡碼 [pcal] 到 WordPress 文章或頁面會插入一個 HTML 的

供用戶從下拉式選單選取月、日、年,按下「顯示當日是星期幾」按鈕後就會在表單上方顯示那天是星期幾的完整名稱,或當日期不合法時會顯示錯誤訊息。按下「說明與資訊」按鈕會在永久曆下方顯示使用說明。

為減少下拉式選單的大小,年份顯示分成三部分輸入:(1)前幾個數字(「世紀」);(2)倒數第二個數字(「十位數」);以及(3)最後一個數字。本外掛的設置可以讓您決定顯示現代日期時是以西元(A.D.)、基督公元(CE),還是僅以數字年份顯示;而古代日期則會以「公元前」(B.C. 或 BCE)呈現,當現代日期只以數字呈現時,則不允許輸入古代日期。預設為西元/公元前。

外掛提供一個 PHP 函數jr_weekday,可以輸入日期的年、月、日,並回傳格式化後的當時的日期和星期幾。日期格式可以從這個外掛的管理設置面板中進行修改。與簡碼和管理面板一樣,由 PHP 函數返回的消息的語言可由 wp-config.php 中設置的『WPLANG』常數控制。

若在 WordPress 中啟用了網路,網路啟用插件將讓所有 WordPress 網站都可調用外掛和簡碼。另外,本外掛也可以在網路中單獨激活。

支援日期範圍從公元前4714年11月25日(當外掛設置為不允許超過2000年前)到公元9999年12月31日;而jr_weekday函數接受大於9999年的輸入,但其精度未超過公元9999年。無效日期(例如2月31日或0年)將被檢測,並在顯示當天星期幾的訊息下方顯示錯誤訊息。

外掛支援單一頁面或文章中多次使用簡碼,每個簡碼都可以使用其獨特的屬性和格式。

原文外掛簡介

Display the Day of Week for virtually any Date, from 6500 years in the past to 8000 years in the future. A Shortcode allows you to insert (anywhere on your WordPress site) a Form for your Web Site Visitors so that they can enter a Date and display the Name of the Day of the Week for that Date. Both the Name of the Shortcode, which defaults to [pcal], and the Format of the Date can be modified from the Admin Settings panel for this plugin. A “Help and Info” button provides Visitors with background and usage details.
Providing your site visitors with a Perpetual Calendar is as easy as installing and activating this Plugin with Add Plugin and inserting the [pcal] Shortcode in a Page, Post or any other place where Shortcodes are allowed.
This Plugin has been Internationalized (“Translation-Ready”). Both the Admin and User (Site Visitor) views are presently available in either English or Spanish, with a .POT translation file available in the /languages/ directory within the Plugin, for any translators wishing to translate it into other languages, which we would love to include in future versions of the Plugin. Special thanks to Andrew Kurtis of WebHostingHub for the Spanish translation.
Once the plugin is successfully installed and activated, adding the plugin’s Shortcode (by default, [pcal]) to any WordPress Post or Page will insert an HTML

that prompts the user to select a Month, Day, and Year from drop-down lists. Clicking the “Display Day of Week” button will generate a message above the
indicating the full name of the day of the week for the given date. Or an error message for all invalid dates. Clicking the “Help and Info” button will display, right below the Perpetual Calendar, instructions explaining what it is and how to use it.
To reduce the size of the drop-down lists, the Year is entered in three parts: (1) first one or two digits (“century”); (2) second to last digit (“tens”); and (3) last digit. Plugin Settings are provided within the WordPress Admin panels to display current era dates as A.D., CE or solely by the numeric Year; ancient dates are displayed as B.C. or BCE, or are not allowed when current era dates are displayed solely as numbers. A.D./B.C. is the default.
A PHP Function, jr_weekday, given Day, Month and Year as input parameters, will return the Date and Day of the Week as a formatted message that you can insert anywhere in the PHP code of your site. The Format of the Date in the message can be modified from the Admin Settings panel for this plugin. Like the Shortcode and Admin panels, the language of the message returned by the PHP function is controlled by the ‘WPLANG’ constant defined in wp-config.php
If Network is turned on in WordPress, Network Activation of the plugin allows both the plugin and shortcode to be called from all WordPress sites within the Network. Alternatively, the plugin can also be activated for individual sites within the Network.
Supported dates range from November 25, 4714 B.C. (1 A.D. when Plugin Settings specify “Do not allow Dates more then 2000 Years in the Past”) to December 31, 9999 A.D.; the jr_weekday function accepts years larger than 9999, but it has not been tested for accuracy past the year 9999. Illegal dates, such as February 31 of any year, and the Year Zero (A.D. or B.C.), are detected and an error message is returned in place of the message indicating the weekday.
Multiple uses of the plugin’s Shortcode on the same Page are detected: the first works normally, but all others display the Shortcode’s Name, surrounded by square brackets, followed by “(duplicate)”. Likewise when displaying multiple Posts, with the Shortcode occurring more than once across all the displayed Posts.
For more information, please click here or on the FAQ tab above.

各版本下載點

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

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


0.9 | 1.0 | 2.0 | 2.1 | 2.2 | 3.0 | 3.0.1 | 3.0.2 | 3.0.3 | trunk |

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

  • Parsi Date 》這個外掛是由波斯語開發人員開發,旨在為波斯語 WordPress 帶來更好的使用體驗。它包括了太陽曆(Jalali)日曆、字符問題修復和 WordPress 後臺環境的從右到...。
  • WP Meta and Date Remover 》移除點擊文章的Meta、作者和日期。 安裝、啟用,完成!, 如何移除文章和頁面的作者Meta和日期?, , 安裝 WP Meta and Date remover。, 啟用外掛。, 選擇隱藏...。
  • Hide/Remove Metadata 》Hide/Remove Metadata是一款免費、簡單而非常實用的WordPress外掛,能夠幫助您輕鬆地隱藏或刪除網站上的作者和發布日期。該外掛非常容易使用,僅提供隱藏或移...。
  • WP-Persian 》WP-Persian 是一款快速強大的 WordPress 插件,可提供 Jalali 月曆和波斯語言支援,並支援標準插件。, , 如果您喜歡這款插件,請隨時在這個頁面的右側評分!,...。
  • WP Date and Time Shortcode 》顯示當前、過去和未來日期或時間的簡碼。在您的文章和頁面中顯示今年、上一年、下一年、月份、日期等等。, 這可能是您網站所需的最後一個日期和時間簡碼插件...。
  • WP Author, Date and Meta Remover 》即時自訂或刪除您的元數據!WP 作者、日期和元數據移除 Pro+現已上市。WP ADMR Pro+ for Intelligent Meta Data Control。, WordPress 已成為許多線上企業主...。
  • Show/Hide Content at Set Time 》喜歡這個外掛嗎?請考慮留下評論或寫下你在網站上使用它的經驗–如果你這樣做,請給我一個連結。, 這個外掛在 GitHub 維護,歡迎使用存儲庫報告問題,提...。
  • Meks Time Ago 》Meks Time Ago WordPress 外掛讓您可以輕鬆將文章日期顯示改為「多久以前」的格式,例如「1小時前」、「2週前」、「5個月前」、「4天前」等,同時提供多種選...。
  • Bulk Post Update Date 》使用這個外掛可以一鍵更改所有文章和頁面的發布日期和更新日期,有助於您的部落格在搜尋引擎中排名並且看起來更有活力。建議每週或每個月進行一次更改。, 為...。
  • Bulk Datetime Change 》可批量變更文章的日期/時間。, 可變更的物件, , 文章。, 頁面。, 媒體檔案。, , 日期/時間選擇器, , 可使用 DateTimePicker,一款 jQuery 外掛,選擇日期/時...。
  • Persian Date 》這個外掛可在 WordPress 中使用波斯曆日期。, 功能, 目前只能將日期轉換為波斯曆!如果您已安裝 WooCommerce,在菜單「WooCommerce Persian」下安裝「WooComm...。
  • Seed Buddhist Year 》Seed Buddhist Year可以將輸出的年份改為佛曆或佛教紀元(BE),但不會影響使用基督教/西曆(CE)的微格式。, 只需安裝插件,即可覆蓋以下功能:, , get_the_...。
  • Post Date Time Change 》, 批次更改每篇文章、頁面或媒體庫的日期和時間。, 與 DateTimePicker 一起運作。這是一個 jQuery 外掛,可以選擇日期和時間。, 。
  • Limit Modified Date 》警告:此外掛已不再受支援,可能無法與古騰堡區塊編輯器兼容。, 我建議改用 Change Last Modified Date 外掛。, 概要, 當對內容進行輕微更改時,避免修改日期...。
  • InstallActivateGo Copyright Current Date Shortcodes 》重要提示:支援已轉移至 ZATZLabs 網站,不再在 WordPress.org 論壇提供。如果您需要開發人員的即時回覆,請提交工單。, 如果您需要顯示當前年份並使其保持最...。

文章
Filter
Apply Filters
Mastodon