[WordPress] 外掛分享: WP HTML Rotator Plugin

前言介紹

  • 這款 WordPress 外掛「WP HTML Rotator Plugin」是 2012-03-15 上架。
  • 目前有 10 個安裝啟用數。
  • 上一次更新是 2012-03-21,距離現在已有 4792 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
  • 外掛最低要求 WordPress 3.1 以上版本才可以安裝。
  • 尚未有人給過這款外掛評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

arielcoppes |

外掛標籤

html | rotator | shortcode |

內容簡介

使用簡單的短碼,根據日期範圍排定 HTML 區塊的顯示或非顯示。

目前,使用旋轉器短碼啟用此外掛。例如,若要指定我們要在早上九點到下午五點顯示特定的 HTML,可以使用以下代碼:

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

某些自訂的 HTML

[/rotator]

其中,啟始和結束參數使用在 PHP 手冊 中指定的日期格式。因此,您可以指定更特定的日期,例如在上午十點至十一點之間每個星期二顯示 HTML 區塊等。有關詳細信息,請閱讀其他注意事項。

注意:這個範圍是服務器的基於時間的範圍,預設時區為 UTC;換句話說,它取決於服務器的配置時間。您可以在管理控制台的一般設置中設定它。

在 wp 管理控制台中的“設置” ->“排程生成器”頁面中提供了一個基本表單,讓您生成短碼,並可以配置不同的值,例如開始和結束時間。

使用方式

目前,使用旋轉器短碼啟用此外掛。例如,若要指定我們要在早上九點到下午五點顯示特定的 HTML,可以使用以下代碼:

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

某些自訂的 HTML

[/rotator]

這將只在用戶訪問博客文章或頁面時顯示內容。

目前,它支持以下參數:

start:指定時間範圍的開始日期,必填。
end:指定時間範圍的結束日期,必填。
visible:false可隱藏html區塊,預設為true。
inverse:指定是否要在時間範圍外顯示html區塊,預設為 false。

啟始和結束參數均使用在 PHP 手冊中指定的日期格式。例如,我們可以指定時間範圍的時區:

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

注意:在一些安裝中,使用 GMT 表示法無法進行操作;不確定所需的 PHP 版本。

注意:這個範圍是服務器的基於時間的範圍,預設時區為 UTC;換句話說,它取決於服務器的配置時間。您可以在管理控制台的 一般設置中設定它。

在 wp 管理控制台中的“設置” ->“排程生成器”頁面中提供了一個基本表單,讓您生成短碼,並可以配置不同的值,例如開始和結束時間。

配置

此插件的第一行包含用於配置插件的全域變數,例如如果您想從管理->設置頁面停用生成器,以及其他配置。

WP_HTML_ROTATOR_DEBUG:定義是否輸出調試信息。
WP_HTML_ROTATOR_ENABLE_WIDGETS:啟用短碼在文本小工具中的工作。
WP_HTML_ROTATOR_ENABLE_GENERATOR:啟用或禁用短碼生成器在管理面板中可見。

原文外掛簡介

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, 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 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. 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 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.

各版本下載點

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

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


0.1.1 | 0.1.2 | 0.1.3 | trunk |

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

  • Black Studio TinyMCE Widget 》此外掛添加了一個新的 Visual Editor 小工具類型,讓您能夠在側邊欄中輕鬆地插入豐富的文字和媒體對象。使用 Black Studio TinyMCE Widget 時,您將能夠使用W...。
  • Shortcoder — Create Shortcodes for Anything 》Shortcoder 外掛可讓您建立 HTML、JavaScript、CSS 和其他代碼片段的自訂捷徑。現在,這些捷徑可以在文章/頁面中使用,並且該片段將取代其位置。, ✍ 輕鬆建立...。
  • Simple Sitemap – Create a Responsive HTML Sitemap 》簡單網站地圖 (Simple Sitemap) 是 WordPress 上最受歡迎的 HTML 網站地圖,現在使用更加簡單。你可以在文章編輯器中直接建立和預覽網站地圖! 不再需要使用難...。
  • Mammoth .docx converter 》Mammoth 設計用於將 .docx 文件(如 Microsoft Word、Google Docs 和 LibreOffice 創建的文件)轉換為 HTML。Mammoth 旨在利用文檔中的語義信息生成簡單和清...。
  • Code Embed 》注意: WordPress 5.0 及以上版本的使用者請查看常見問題以了解如何在區塊編輯器中使用此外掛。, Code Embed 外掛允許您在文章中嵌入程式碼(JavaScript 和 H...。
  • Raw HTML 》is capability is only granted to administrators. If you’re not an admin, you will need to ask them to add it to your role., Raw HTML is not r...。
  • PHP Everywhere 》注意:此外掛更新至 3.0.0 版本是一項重大變更,將移除 [php_everywhere] 短代碼和小工具。請透過外掛設定頁面中的升級嚮導,將原本的代碼轉換為 Gutenberg ...。
  • WP Super Minify • Minify, Compress and Cache HTML, CSS & JavaScript 》這個外掛可以在需要時結合、縮小和緩存內聯的 JavaScript 和 CSS 文件,以加快頁面加載速度,並使用Minify PHP Framework。, 啟用此外掛後,您會發現您的 HTM...。
  • Minify HTML 》你可以在這個免費的測試網站試用這個外掛 => https://demo.tastewp.com/minify-html-markup, 有時候你可能會注意到自己網站的 HTML 標籤看起來較為混亂和...。
  • Allow HTML in Category Descriptions 》當您在類別描述文本區添加文字並保存類別時,WordPress會運行內容過濾器,剝除除最基本格式標籤以外的所有內容。, 這個外掛程式可以禁用具有必要權限的角色的...。
  • Advance Custom HTML 》這是一款用來專業編寫 HTML 代碼的高級 HTML 編輯器,提供不同的樣式、縮排與更多功能。, Advance Custom HTML 是一款功能強大、彈性十足的區塊外掛,讓您可...。
  • Kwayy HTML Sitemap 》Kwayy HTML Sitemap可以為您的網站地圖頁面生成HTML(而非XML)網站地圖。這個外掛不僅會顯示頁面和文章,還會顯示其他自定義的文章類型,例如產品等。您還可...。
  • Export WP Page to Static HTML/CSS 》Export WP Page to Static HTML/CSS 外掛是一個靜態 HTML 網站或頁面產生器,它能幫助您將您的 WordPress 網站或頁面轉換成靜態 HTML 網站,讓您可以將其託管...。
  • Code Widget 》Code Widget 是一個簡單的小工具,允許您插入任意的文字/HTML,執行 PHP 程式碼或 Short Code。此小工具解析 PHP 程式碼為簡單文字等等。, 只有擁有未過濾的 ...。
  • Preserved HTML Editor Markup Plus 》這個外掛保留了使用者在 TinyMCE 編輯器中產生的 HTML 標記。不像其他外掛,這個外掛允許開發人員在 HTML 標籤中工作,同時讓終端使用者在所見即所得的視覺化...。

文章
Filter
Apply Filters
Mastodon