该插件尚未通过WordPress的最新3个主要版本进行测试。 当与较新版本的WordPress一起使用时,可能不再受到维护或支持,并且可能会存在兼容性问题。

Read Later Buttons

描述

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

  1. read_later_buttons_do_css: return false to prevent loading the default CSS (doesn’t affect the Kindle plugin)
  2. read_later_buttons_instapaper: alter the HTML generated for the Instapaper button
  3. read_later_buttons_pocket: alter the HTML generated for the Pocket button
  4. read_later_buttons_readability: alter the HTML generated for the Readability button
  5. read_later_buttons_reading_time: alter the HTML generated for the reading time estimate
  6. read_later_buttons_link: alter or replace the link passed to the read later services (doesn’t affect the Kindle plugin)

屏幕截图

  • Read Later buttons, with a reading time estimate, added to a post using the shortcode. Of course, this is just a demonstration. You can use the shortcode anywhere shortcodes are supported, even adding them to your page templates by calling do_shortcode().
  • The Read Later Buttons widget in the sidebar.
  • The widget can be configured to show any combination of services, letting you balance features with space in your sidebar.

安装

Install Read Later Buttons automatically from your admin account by selecting “Plugins”, then “Add new” from the sidebar menu. Search for Read Later Buttons, then choose “Install Now”.

or

Download the latest Read Later Buttons archive from wordpress.org.
Unzip the archive and upload the read_later_buttons directory to the /wp-content/plugins/ directory on your WordPress site.
Activate the plugin through the ‘Plugins’ menu in WordPress

常见问题

How do I enable the Kindle button?

Install and activate the Send to Kindle plugin. Read Later Buttons will detect that the Kindle button is available and offer a checkbox for it on the widget configuration form.

The plugin uses a lot of CSS to style the buttons. Can I get rid of it and start from scratch?

Sure! In your theme’s functions.php file, include the following code:

function disable_read_later_buttons_css($status) {
    return false;
}
add_filter('read_later_buttons_do_css', 'disable_read_later_buttons_css');

That will remove the CSS from the Instapaper, Pocket, and Readlater buttons whether you’re using the widget or the shortcode. You’ll have to find your own way to alter the Kindle button’s styling.

评价

此插件暂无评价。

贡献者及开发者

“Read Later Buttons” 是开源软件。 以下人员对此插件做出了贡献。

贡献者

将“Read Later Buttons”翻译成您的语言。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志

更新日志

1.2.1

  • Code optimizations

1.2

  • French & Spanish translations by Gabriel Vivas

1.1

  • Use SVG images where supported (except for Kindle)

1.0

  • Initial release