內容簡介
顯示倒數計時直到活動開始的外掛。指定一個活動期間,當活動進行時它會顯示不同的訊息。在活動結束後,倒數計時會重新開始。
它使用字符串轉時間(strtotime)格式,這可以非常簡單或非常複雜。
這個小工具有很多用來樣式化的CSS類,但它已經被留下來沒有樣式,因此您可以按照自己的方式格式化它。包括的recurring-timer-widget.css和recurring-timer-widget.css-example文件展示了您可以如何移動時間和標籤來定制外觀。您可以通過將它複製到活躍主題的文件夾中來自定義recurring-timer-widget.css。
已知問題:
在“下一個”事件之前需要刷新瀏覽器。例如,如果您正在查看小工具並且計時器設置為每天一次的事件,計時器將倒數計時到今天的事件,然後倒數計時到明天的事件。但除非刷新瀏覽器,否則它不會倒數計時到後天的事件。
發生超過24小時的周期性事件尚未經過測試,可能無法正常工作。
外掛標籤
開發者團隊
原文外掛簡介
Displays a countdown until the event begins. Specify an event duration time and it will display a different message while the event is happening. After the event is over, the countdown will begin again.
Uses string-to-time (strtotime) formats which can be very simple or very complex.
The widget has many CSS classes to style it with, but it’s been left purposely unstyled so you can format it in whatever way you want. The included recurring-timer-widget.css and recurring-timer-widget.css-example files show how you can move the time and labels around for a custom look. You can customize recurring-timer-widget.css by copying it to your active theme’s folder.
Known issues:
It requires a browser refresh before the “next next” event. i.e. If you’re viewing the widget and the timer is set for a daily event, the timer will countdown to today’s event, then countdown to tomorrow’s event. But it will not countdown to the day after tomorrow’s event unless the browser is refreshed.
Events that occur more than once in a 24-hour period have not been tested and may not work.
