內容簡介
「Embed Wave」是一款能夠在 WordPress 網誌上嵌入 Wave 的外掛程式。使用者可以在同一頁面上顯示多個 Wave,適用於在同一篇文章上嵌入多個 Wave 或是在網誌首頁上顯示不同文章中的 Wave。
透過簡碼(shortcode)(例如 [wave id=”wave-id”])嵌入 Wave。預設的提供者為 Google,若要更改提供者,則只需要變更簡碼的 type 屬性,例如對於 Google Wave Sandbox 的提供者,可以使用 [wave id=”wave-id” type=”google-wave-sandbox”]。當 Javascript 無法運作或是 Wave 嵌入 API 無法載入時,也可以透過在簡碼標籤內添加替代內容(alt content)來提供替代內容,例如使用 [wave id=”wave-id”]zomgwtf rss bbq[/wave] 的方式。
此外,「Embed Wave」具有可擴充性,其他外掛程式可以透過 WordPress 的篩選器系統將新的提供者加入。事實上,該外掛程式本身就是透過此機制將 Google Wave 加入其中。
外掛標籤
開發者團隊
原文外掛簡介
“Embed Wave” is a plugin for embedding waves on a WordPress blog. It allows multiple waves to be displayed on the same page- useful if you’re going to have multiple waves in a single post, or individual waves across multiple posts being displayed on the front page of your blog.
Waves are embedded by using shortcodes (e.g. [wave id=”wave-id”]). Google is the default provider, to change this you’ll simply need to change the type attribute of the shortcode, e.g. [wave id=”wave-id” type=”google-wave-sandbox”] for the Google Wave Sandbox. Alternative content (for when javascript is disabled or the wave embed API fails to load) can be added by placing content between the shortcode tags e.g. [wave id=”wave-id”]zomgwtf rss bbq[/wave] – the alt content is removed after the Wave has been loaded.
Additionally, “Embed Wave” is extensible, in that new providers can be added by other plugins via the WordPress filter system. In fact, the plugin does this itself in order to add Google Wave.
