Title: Recurring Timer Widget
Author: jrfoell
Published: <strong>2011 年 4 月 20 日</strong>
Last modified: 2017 年 5 月 26 日

---

搜尋外掛

這個外掛**並未在最新的 3 個 WordPress 主要版本上進行測試**。開發者可能不再對這個
外掛進行維護或提供技術支援，並可能會與更新版本的 WordPress 產生使用上的相容性問題。

![](https://s.w.org/plugins/geopattern-icon/recurring-timer-widget.svg)

# Recurring Timer Widget

 由 [jrfoell](https://profiles.wordpress.org/jrfoell/) 開發

[下載](https://downloads.wordpress.org/plugin/recurring-timer-widget.1.7.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/recurring-timer-widget/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/recurring-timer-widget/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/recurring-timer-widget/#installation)
 * [開發資訊](https://tw.wordpress.org/plugins/recurring-timer-widget/#developers)

 [技術支援](https://wordpress.org/support/plugin/recurring-timer-widget/)

## 外掛說明

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.

## 螢幕擷圖

[⌊Widget menu in WP-Admin with an example event.⌉⌊Widget menu in WP-Admin with an
example event.⌉[

Widget menu in WP-Admin with an example event.

[⌊An un-styled version of the widget (not very pretty).⌉⌊An un-styled version of
the widget (not very pretty).⌉[

An un-styled version of the widget (not very pretty).

[⌊The widget using the example CSS file for style.⌉⌊The widget using the example
CSS file for style.⌉[

The widget using the example CSS file for style.

## 安裝方式

 1. Unzip and upload the plugin to your ‘wp-content/plugins’ directory.
 2. Activate the plugin through the ‘Plugins’ menu in WordPress.
 3. Add the widget to your site through the ‘Widgets’ menu in WordPress (under ‘Appearance’).
 4. Optionally copy recurring-timer-widget.css-example or recurring-timer-widget.css
    to recurring-timer-widget.css in your active theme folder to customize the style.
    You may also style the widget by customizing the stylesheet in your theme.

## 常見問題集

  Installation Instructions

 1. Unzip and upload the plugin to your ‘wp-content/plugins’ directory.
 2. Activate the plugin through the ‘Plugins’ menu in WordPress.
 3. Add the widget to your site through the ‘Widgets’ menu in WordPress (under ‘Appearance’).
 4. Optionally copy recurring-timer-widget.css-example or recurring-timer-widget.css
    to recurring-timer-widget.css in your active theme folder to customize the style.
    You may also style the widget by customizing the stylesheet in your theme.

  Where do I find information about the time formats?

 * [http://php.net/strtotime](http://php.net/strtotime)
 * [http://www.php.net/manual/en/datetime.formats.relative.php](http://www.php.net/manual/en/datetime.formats.relative.php)
 * [http://www.gnu.org/software/tar/manual/html_node/Date-input-formats.html](http://www.gnu.org/software/tar/manual/html_node/Date-input-formats.html)

Please note this comment on php.net: [http://us.php.net/manual/en/datetime.formats.relative.php#98989](http://us.php.net/manual/en/datetime.formats.relative.php#98989)
In my screenshot example I used “fourth thursday of this month” for the Event Day.
This only works in PHP 5.3+. However, removing the ‘of’ and using “fourth thursday
this month” works in earlier versions of PHP. Your mileage may vary, so you’ll want
to experiment if your timer is displaying negative time and/or counting up.

## 使用者評論

這個外掛目前沒有任何使用者評論。

## 參與者及開發者

以下人員參與了開源軟體〈Recurring Timer Widget〉的開發相關工作。

參與者

 *   [ jrfoell ](https://profiles.wordpress.org/jrfoell/)

[將〈Recurring Timer Widget〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/recurring-timer-widget)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/recurring-timer-widget/)、
查看 [SVN 存放庫](https://plugins.svn.wordpress.org/recurring-timer-widget/)，或
透過 [RSS](https://plugins.trac.wordpress.org/log/recurring-timer-widget/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/recurring-timer-widget/)。

## 變更記錄

#### 1.7

 * Added more CSS classes for easier targeting/styling.

#### 1.6

 * Renamed files to support translations via [http://translate.wordpress.org]
 * Fixed issue with monthly events showing up as today when they shouldn’t.

#### 1.5

 * Replaced call to time() with current_time( ‘timestamp’ ) to insure correct comparison
   to local time set in Settings -> General -> Timezone.

#### 1.4

 * Make sure monthly events do not produce ‘negative’ countdowns after this month’s
   event has occurred.
 * Added default style with option to override in the theme.

#### 1.3

 * Refactored javascript to allow widget to be placed multiple times on a single
   page.

#### 1.2

 * Fixed misspelled variable affecting next event start.

#### 1.1

 * Changed dates to use GMT – let the user’s browser determine the timezone.
 * Added readme.txt and screenshots.

#### 1.0

 * Initial release.

## 中繼資料

 *  版本 **1.7**
 *  最後更新 **9 年前**
 *  啟用安裝數 **10+**
 *  WordPress 版本需求 ** 4.6 或更新版本 **
 *  已測試相容的 WordPress 版本 **4.7.33**
 *  語言
 * [English (US)](https://wordpress.org/plugins/recurring-timer-widget/)
 * 標籤:
 * [Event](https://tw.wordpress.org/plugins/tags/event/)[recurring](https://tw.wordpress.org/plugins/tags/recurring/)
   [timer](https://tw.wordpress.org/plugins/tags/timer/)[widget](https://tw.wordpress.org/plugins/tags/widget/)
 *  [進階檢視](https://tw.wordpress.org/plugins/recurring-timer-widget/advanced/)

## 評分

這個項目尚無任何評論記錄。

[Your review](https://wordpress.org/support/plugin/recurring-timer-widget/reviews/#new-post)

[查看全部使用者評論](https://wordpress.org/support/plugin/recurring-timer-widget/reviews/)

## 參與者

 *   [ jrfoell ](https://profiles.wordpress.org/jrfoell/)

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/recurring-timer-widget/)