
內容簡介
Read Later Buttons 提供 widget 與 shortcode,用於顯示 Instapaper、Pocket 以及 Readability 等熱門 App 的「稍後閱讀」按鈕。若已安裝 Send to Kindle 外掛,還可以顯示 Send to Kindle 按鈕,讓使用者將內容傳送至電子書閱讀器儲存以供閱讀。
此外掛將整合於你的網站中,不需要過多設置,就能夠使看起來更加完美。但是,控制按鈕的外觀和功能仍有可能需要使用 shortcode 和過濾器。
Shortcode
使用 [read_later_buttons] shortcode 指令顯示所支援的每個服務的按鈕。亦可包含一或多個服務的名稱(例如: [read_later_buttons instapaper pocket] ),完成該服務的按鈕輸出。支援的服務名稱為 kindle、instapaper、pocket 和 readlater。
如果包含「time」參數([read_later_buttons time]),shortcode 也可顯示預估閱讀時間。閱讀時間可以與服務名稱結合,[read_later_buttons time instapaper],該時間將顯示於按鈕之上。在包含時間估計值時,預設情況下,外掛不會顯示所有按鈕。因此,此時需要包含「all」參數,例如:[read_later_buttons time all]。此外,shortcode 需要在「the loop」中使用,以便計算時間(換言之,必須在頁面、文章或適當的佈景主題模板部分中使用)。
Filters
read_later_buttons_do_css:返回 false 以防止載入預設 CSS(不會影響 Kindle 外掛)
read_later_buttons_instapaper:更改 Instapaper 按鍵所產生的 HTML
read_later_buttons_pocket:更改 Pocket 按鍵所產生的 HTML
read_later_buttons_readability:更改 Readability 按鍵所產生的 HTML
read_later_buttons_reading_time:更改閱讀時間的 HTML 產生方式
read_later_buttons_link:更改或替換傳遞給稍後閱讀服務的連結(不會影響 Kindle 外掛)
外掛標籤
開發者團隊
原文外掛簡介
Read Later Buttons provides a widget and a shortcode for displaying “read later” buttons for the popular apps Instapaper, Pocket, and Readability. It can also display a Send to Kindle button if that plugin is installed, letting your users send your content to their e-reader to enoy when they have the time.
This plugin is designed to function well and look good without much fuss, but it also provides a shortcode and filters so you can control how the buttons look & work.
Shortcode
Use the [read_later_buttons] shortcode to render buttons for every one of the supported services. You can also include the names of one or more services (i.e. [read_later_buttons instapaper pocket]) to just get those buttons. Valid service names are kindle, instapaper, pocket, and readlater.
The shortcode can also display an estimated reading time if you include the “time” parameter ([read_later_buttons time]). The reading time can be combined with service names ([read_later_buttons time instapaper]) and the time will render above the buttons. When including the time estimate, the plugin won’t display all the buttons by default. You need to include the “all” parameter (i.e. [read_later_buttons time all]) in that case. Also, the shortcode has to be used inside “the loop” in order to calculate a time — in other words in a page, post, or the appropriate parts of your theme template.
Filters
read_later_buttons_do_css: return false to prevent loading the default CSS (doesn’t affect the Kindle plugin)
read_later_buttons_instapaper: alter the HTML generated for the Instapaper button
read_later_buttons_pocket: alter the HTML generated for the Pocket button
read_later_buttons_readability: alter the HTML generated for the Readability button
read_later_buttons_reading_time: alter the HTML generated for the reading time estimate
read_later_buttons_link: alter or replace the link passed to the read later services (doesn’t affect the Kindle plugin)
