這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

Post Bookmarks

描述

Manage links attached to a post through a metabox, and setup how they are displayed in your posts… With a link favicon.

  • Nice GUI
  • Options page
  • Default link title and image based on its url (ajaxed)
  • Sort links by names or a custom order
  • Powered by the WP core bookmark functions
  • actions and filters hooks for developpers

Contributors

Contributors are listed here

Notes

For feature request and bug reports, please use the forums.

If you are a plugin developer, we would like to hear from you. Any contribution would be very welcome.

Localization

螢幕截圖

  • Post Bookmarks metabox in the backend editor
  • Links displayed under a post
  • Settings page

安裝

  1. Upload the plugin to your blog and Activate it.

常見問題

How can I get only the links attached to a post ?

Use the function Post_Bookmarks::get_post_links($post_id,$args).
If you want to display those links use the function Post_Bookmarks::get_link_list($post_id,$args).

The two parameters are optionals.
$args should be an array of parameters – the same you would set when using the native get_bookmarks() function. Example :

<?php
$args = array('category'=>12);
Post_Bookmarks::get_link_list(null,$args);
?>
How can I get only the links NOT attached to a post ?

Use the the native function get_bookmarks() with the ‘post_bkmarks_exclude’ parameter. Example :

<?php
get_bookmarks( array('post_bkmarks_exclude'=>true) );
?>
How can I style a link based on its domain, using CSS ?

Use the data-cp-link-domain attribute, for example :

li.post-bkmarks[data-cp-link-domain='wikipedia.org'] .post-bkmarks-favicon {
    background-image: url('https://wikipedia.org/static/favicon/wikipedia.ico');
}
How can I change the way links are displayed ?

Use the filter post_bkmarks_single_link_html (located in the function Post_Bookmarks::get_link_html()), for example :

<?php

function custom_output_single_link($output,$link){
    return $output;
}

add_filter('post_bkmarks_single_link_html','custom_output_single_link',10,2);

?>

評價

There are no reviews for this plugin.

貢獻者及開發者

“Post Bookmarks” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

將 Post Bookmarks 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

修改日誌

2.1.7

  • cleaned and updated doc.

2.1.6

  • Fixed ajax actions
  • links IDs order is now saved (only) with ajax each time links are reordered, and is a standalone PHP action

2.1.4

  • Fixed ajax actions
  • Updated Font Awesome
  • debug_log() function
  • better way of saving links / handling bulk actions

2.1.3

  • some code improvements + renamed some functions & filters

2.1.2

  • improved filter_bookmarks_for_post: removed the ‘include’ arg which was incompatible with ‘category’, ‘category_name’, and ‘exclude’ bookmarks parameters.
  • improved Post_Bookmarks::get_tab_links.

2.1.1

  • improved row actions
  • colorize the checkbox if the URL of the link is attached to the post

2.1.0

  • remove ‘hide_from_bookmarks’ option (see FAQ)
  • fix protocol bug
  • fix url field not hiding when quick editing a link
  • bulk actions

2.0.9

  • Renamed plugin from ‘Custom Post Links’ to ‘Post Bookmarks’
  • Upgrade routine for ‘Custom Post Links’ plugin
  • Improved class Post_Bookmarks_List_Table

2.0.8

  • ‘Quick Edit’ mode
  • Link categories column
  • Better way of saving existing / new links
  • improved javascript (& includes URI.js)
  • ‘hide_from_bookmarks’ option
  • Filters on the ‘get_bookmarks’ hook to include / exclude our links

2.0.7

  • cleaner code for blank row link + links tabe actions

2.0.6

  • try to guess the link name from remote page title or domain (ajaxed)
  • URL as first column
  • better way to load JS

2.0.5

  • Better output styling
  • Favicons : Option to automatically load URL pictures from Google API
  • New filter ‘post_bkmarks_get_for_post_pre’
  • New function ::get_blank_link()

2.0.4

  • minor

2.0.3

  • ignore targets (eg. ’_blank’) if a link is a local link
  • backend : use ‘_blank’ target for URLs in the links table
  • implemented links targets

2.0.2

  • Importer and admin notice for links from the original Custom Post Links plugin (metas ‘_post_bkmarks’).
  • new function Post_Bookmarks::save_link()
  • Improved function ‘post_bkmarks_get_existing_link_id’
  • new function ‘post_bkmarks_get_metas’

2.0.1

2.0

  • custom sorting
  • options page
  • set the link domain as class in the link output
  • display entries in metabox using class Post_Bookmarks_List_Table (extends WP_List_Table)
  • store / read entries from the Link Manager plugin (Worpress core) instead of metas
  • wrapped in a class, better code structure
  • use fontAwesome css, deleted drag_handle.png
  • various other improvements

1.0