內容簡介
這個外掛在 WordPress 中新增一個短碼 [spoiler],可以把任何內容
包含在這個短碼內並讓其模糊不清。當使用者點擊模糊的內容時,
內容就會顯示。
這個短碼有一個 mode 參數,預設值為 block,
這個參數會將你的內容包在一個 div 元素中。如果你希望將
這個短碼套用到內文中,可以使用 inline 模式。
例如:這裡有一些 [spoiler mode=’inline’]超級機密內容[/spoiler]!
感謝
本外掛的設計靈感來自於 Joshua Hull 的 jQuery 套件 spoilerAlert
外掛標籤
開發者團隊
原文外掛簡介
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
