Title: WP HTML Rotator Plugin
Author: ariel.coppes
Published: <strong>2012 年 3 月 16 日</strong>
Last modified: 2012 年 3 月 21 日

---

搜尋外掛

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

![](https://s.w.org/plugins/geopattern-icon/wp-html-rotator.svg)

# WP HTML Rotator Plugin

 由 [ariel.coppes](https://profiles.wordpress.org/arielcoppes/) 開發

[下載](https://downloads.wordpress.org/plugin/wp-html-rotator.0.1.3.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/wp-html-rotator/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/wp-html-rotator/#reviews)
 * [開發資訊](https://tw.wordpress.org/plugins/wp-html-rotator/#developers)

 [技術支援](https://wordpress.org/support/plugin/wp-html-rotator/)

## 外掛說明

Schedule HTML sections to be shown or not based on a date range using a simple shortcode.

Right now the plug-in is enabled by using the rotator shortcode. For example, To
specify we want to show a specific piece of HTML from 9am to 5pm you can use the
following code:

[rotator start=”9am” end=”5pm”]

 Some custom HTML.

[/rotator]

Where start and end parameters are using the date format specified in the [php manual](http://www.php.net/manual/en/datetime.formats.php),
so you can specify more specific dates like showing the HTML section all Tuesday
between 10am and 11am, etc. Read the Other Notes section for more information.

Note: the hour range is server based time and the default timezone is UTC, in other
words, it depends on the configured time of the server, you can set that in [general settings](http://en.support.wordpress.com/settings/general-settings/)
at the admin console.

There is a page available at “Settings” -> “Schedule generator” in the wp admin 
console with a basic form which lets you generate the short code configuring different
values like start and end times, among others.

### Usage

Right now the plug-in is enabled by using the rotator shortcode. For example, To
specify we want to show a specific piece of HTML from 9am to 5pm you can use the
following code:

[rotator start=”9am” end=”5pm”]

 Some custom HTML.

[/rotator]

That will show the contents only if the user access the blog post or page in the
specified hour range.

Currently, it supports the following parameters:

 * start: a date to specify the start of the hour range, required.
 * end: a date to specify the end of the hour range, required.
 * visible: false to hide the html section, by default true.
 * inverse: to specify if we want to show the html section outside the our range,
   by default false.

Both start and end are using the date format specified in the [php manual](http://www.php.net/manual/en/datetime.formats.php).
For example, we can specify the timezone of the hour range:

[rotator start=”9am -0600″ end=”5pm -0600″]…[/rotator]

Note: Using GMT notation doesn’t work in some installations, not sure which php 
version is required for that to work.

Note: the hour range is server based time and the default timezone is UTC, in other
words, it depends on the configured time of the server, you can set that in [general settings](http://en.support.wordpress.com/settings/general-settings/)
at the admin console.

There is a page available at “Settings” -> “Schedule generator” in the wp admin 
console with a basic form which lets you generate the short code configuring different
values like start and end times, among others.

### Configuration

The first lines of the plugin contains some global variables to configure the plugin,
for example, if you want to disable the generator from the admin -> settings page,
among other configurations.

 * WP_HTML_ROTATOR_DEBUG: defines if the plugin echoes debug information.
 * WP_HTML_ROTATOR_ENABLE_WIDGETS: enables the shortcode to work on text widgets.
 * WP_HTML_ROTATOR_ENABLE_GENERATOR: enable the shortcode generator to be shown 
   in the admin panel or not.

## 使用者評論

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

## 參與者及開發者

以下人員參與了開源軟體〈WP HTML Rotator Plugin〉的開發相關工作。

參與者

 *   [ ariel.coppes ](https://profiles.wordpress.org/arielcoppes/)

[將〈WP HTML Rotator Plugin〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/wp-html-rotator)

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

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

## 變更記錄

0.1.3

 * Changed to use the WordPress timezone configured in [general settings](http://en.support.wordpress.com/settings/general-settings/)
   as the base timezone instead the default from php based on this [WordPress blog post](https://wordpress.org/support/topic/using-php-timezone?replies=1).
 * Changed name Rotator Generator to Schedule Generator
 * Server time is shown in the Schedule Generator

0.1.2

 * Added more detail in the Description page.

0.1.x

 * Added the shortcode with the default parameters.

## 中繼資料

 *  版本 **0.1.3**
 *  最後更新 **14 年前**
 *  啟用安裝數 **10+**
 *  WordPress 版本需求 ** 3.1 或更新版本 **
 *  已測試相容的 WordPress 版本 **3.1.4**
 *  語言
 * [English (US)](https://wordpress.org/plugins/wp-html-rotator/)
 * 標籤:
 * [html](https://tw.wordpress.org/plugins/tags/html/)[rotator](https://tw.wordpress.org/plugins/tags/rotator/)
   [shortcode](https://tw.wordpress.org/plugins/tags/shortcode/)
 *  [進階檢視](https://tw.wordpress.org/plugins/wp-html-rotator/advanced/)

## 評分

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

[Your review](https://wordpress.org/support/plugin/wp-html-rotator/reviews/#new-post)

[查看全部使用者評論](https://wordpress.org/support/plugin/wp-html-rotator/reviews/)

## 參與者

 *   [ ariel.coppes ](https://profiles.wordpress.org/arielcoppes/)

## 技術支援

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

 [檢視技術支援論壇](https://wordpress.org/support/plugin/wp-html-rotator/)