
內容簡介
該外掛提供縮碼和小工具,讓您可以在 WordPress 中顯示任何公共的 LibraryThing 書籍收藏。
[books username=”username”] 顯示指定 LibraryThing 用戶的書籍。此縮碼僅使用 LibraryThing API,即使您不提供 AWS 金鑰對,也可以使用此縮碼。可選屬性有:
- count:要顯示的書籍的最大數量(預設為 20)。
- sort_by:排序方式,可選值為 entry_REV 或 random。
- template:用於渲染書籍列表的模板,可選值為 cover 或 list。
- tags:以逗號分隔的標籤列表。
[book isbn=”isbn”] 顯示指定 ISBN 編號的書籍。此縮碼使用 Amazon Product Advertising API,如果您不提供 AWS 金鑰對,則無法使用。此外,不是所有 ISBN 編號都可以在所有 Amazon 商店中找到,因此您需要在設置中仔細選擇使用哪個商店。可選屬性是:
- template:用於渲染書籍列表的模板,僅可選用 book-single。
定制
您可以添加新模板或自定義現有模板,方法是在您的服務器的 wp-content 文件夾或主題文件夾中添加名為 librarything 的資料夾,然後在資料夾中添加您自己的版本。模板文件的名稱是帶有 .php 擴展名的模板名稱(例如,封面模板文件名是 covers.php)。
免責聲明
此外掛未獲 LibraryThing 贊助,也未由 LibraryThing 團隊開發,其開發者與 LibraryThing 團隊沒有任何關聯。
圖片來源:大學圖書館 (裁剪自) 授權:知識共享署名 2.0 通用
隱私政策
此外掛不會收集訪問者的任何個人信息。
外掛標籤
開發者團隊
原文外掛簡介
That plugin offers shortcodes and widgets so you can display any public
LibraryThing books collection in WordPress.
[books username=”username”]
Displays the books of the given LibraryThing user. This shortcode only uses the
LibraryThing API and will work even if you don’t provide an AWS key pair.
Optional attributes are:
count: Maximum number of books to show (default 20)
sort_by: Sort order, either entry_REV or random
template: Template to use to render the list of books. Either cover or list
tags: Comma separated list of tags
[book isbn=”isbn”]
Displays the book with the given ISBN number. This shortcode uses the Amazon
Product Advertising API and will not work if you don’t provide an AWS key pair.
Also, not all ISBN can be found on all Amazon stores so you will have to carefully
choose which store to use in the settings.
Optional attributes are:
template: Template to use to render the list of books. Only book-single
Customization
You can add new template or customize the existing ones by adding your own
version in a folder named librarything in the wp-content folder on your
server or in your theme folder. The name of the template file id the name of
the template with the .php extension (e.g: the covers template file name
is covers.php).
Disclaimer
This plugin is not endorsed by LibraryThing, it has not been developed by
the LibraryThing team and its developer is not related in any manner to the
LibraryThing team.
Image Credits: University of Scranton Weinberg Memorial Library (cropped)
License: Creative Commons Attribution 2.0 Generic
Privacy Policy
This plugin does not collect any personal information from your visitors.
