[WordPress] 外掛分享: wp-spoiler-alert

首頁外掛目錄 › wp-spoiler-alert
20+
安裝啟用
尚無評分
4241 天前
最後更新
問題解決
WordPress 3.5.0+ v0.8.3 上架:2014-05-07

內容簡介

這個外掛在 WordPress 中新增一個短碼 [spoiler],可以把任何內容
包含在這個短碼內並讓其模糊不清。當使用者點擊模糊的內容時,
內容就會顯示。

這個短碼有一個 mode 參數,預設值為 block,
這個參數會將你的內容包在一個 div 元素中。如果你希望將
這個短碼套用到內文中,可以使用 inline 模式。

例如:這裡有一些 [spoiler mode=’inline’]超級機密內容[/spoiler]!

感謝

本外掛的設計靈感來自於 Joshua Hull 的 jQuery 套件 spoilerAlert

外掛標籤

開發者團隊

⬇ 下載最新版 (v0.8.3) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「wp-spoiler-alert」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

This plugin adds the shortcode [spoiler] to WordPress. Any content
wrapped inside this shortcode is blurred out. It can be revealed by
clicking on the blurred content.
The shortcode takes a mode parameter, which defaults to block. This
wraps your content inside a div. To add spoilers that are inside to your
text use the mode inline.
Eg:- Some [spoiler mode=’inline’]super secret stuff[/spoiler] here!
Credits

Inspired by the spoilerAlert jQuery plugin by Joshua Hull

延伸相關外掛

文章
Filter
Apply Filters
Mastodon