
內容簡介
該外掛名為 Book Review Library,它可以讓您創建一個書籍庫,包括評論,並包括可排序的元信息,例如作者、插圖師、類型、主題以及評價等。這使得您可以列出某種特定類型的所有書籍,例如由某位作者撰寫的所有書籍或帶有特定評級的書籍。該書評系統只需很少的努力就能立即在您的網站上運行,使用內置的篩選器,在不需要任何自定義主題的情況下將此額外信息添加到頁面中。
外掛還內置了一個可配置的短代碼,用於顯示書籍列表。 [book-reviews] 將顯示所有書籍,而 [book-reviews count=3] 則只顯示 3 本書,[book-reviews count=3 covers=true] 將顯示帶有封面的評論,如果它們存在的話。
外掛還包括兩個側邊欄小工具。最近的評論小工具將顯示最近添加的書評,而相關書籍小工具則在您查看單個書籍或按常見類型標籤列出書籍列表時顯示類似的書籍列表。
主題開發人員也沒有被遺忘。如果您想自定義評論顯示方式,請創建並編輯以下模板文件:
taxonomy.php
archive-book-review.php
single-book-review.php
此外,您的主題中還可以使用許多模板標籤,這些標籤位於 inc/func.php 中。
該外掛在儀表板和前端都使用 Genericons 圖標字體來顯示書籍圖標和星級評級。
此外,外掛還提供了繁體中文等多種語言的翻譯。
請注意,該外掛一段時間以來沒有進行積極的開發。然而,已經計劃了一次重大修訂/重寫。該外掛穩定運行並適用於所有 WordPress 版本,並且我樂於查閱/合併來自 GitHub 存儲庫中的拉取請求,或回答您可能有的支持查詢,但在重寫完成之前,不會推出任何新功能。
外掛標籤
開發者團隊
📦 歷史版本下載
原文外掛簡介
The Book Review Library plugin allows you to create a library of books, with reviews, that include sortable meta information like author, illustrator, genre, subjects as well as ratings. This enables you to list all the books of a particular type (e.g. all books written by a particular author or with a specific rating). With very little effort, the book review system will be up and running on your site right away, with built in filters to add this extra information to the page without any custom theming.
A configurable shortcode is also built in, to display a book list. [book-reviews] will display all books, while [book-reviews count=3] will only display 3 books and [book-reviews count=3 covers=true] will display those reviews with their covers, if they exist.
Two sidebar widgets have also been included. A Recent Reviews widget will display the most recent book reviews that have been added, and a Related Books widget will display a list of similar books when you are looking at a single book or book list by common genre tags.
Theme developers haven’t been forgotten either. If you want to customize the way the reviews display, create and edit these template files:
taxonomy.php
archive-book-review.php
single-book-review.php
Additionally, there are a number of template tags that can be used in your theme, which are found in inc/func.php.
This plugin uses the Genericons icon font in both the dashboard and the front end to display the book icons and star ratings.
Translators!
New translations site is up at https://chrisreynolds.io/glotpress/projects/book-review-library/
Please email me at hello at chrisreynolds dot io if you want to be added as a translator.
Italian translation by tristano-ajmone
Hungarian translation by Ignácz József
French translation by claire idrac
Russian translation by Diana Kononova
Arabic translation by Salim Solomon
Spanish translation by Tierras del Rincon
Persian (Farsi) translation by Masoud Allameh
Polish translation by Rafał Szampera
Catalan translation by Jordi Ramirez
Turkish translation by Yardımcı Destek Teknolojileri
Dutch translation by robin ketelaars
About this plugin
I sat down with a librarian and a volunteer at the Open Classroom charter school library and asked them what they wanted from the website. The result is this plugin. It was built with a real use-case in mind based on specific feedback I received about things they wanted to share with the school and wider community. If you have questions or suggestions, feel free to let me know.
Note
This plugin hasn’t been in active development for a while. However a major revision/rewrite has been planned for some time. The plugin is stable and works with all versions of WordPress and I’m happy to review/merge pull requests on the GitHub repo or respond to support queries you may have but no new features are planned until after the rewrite is complete.
Shortcodes & Shortcode Parameters
Book Review Library currently supports one shortcode. This page will list the shortcode variations and parameters supported and describe what each available option and parameter does.
Book Reviews
[book-reviews]
Displays a list of books. If used with no additional parameters, this will display all books, ordered by date added, with no covers and no review or excerpt displayed.
Count
[book-reviews count=5]
Defines how many books to display on a page. Takes any interger. Omit to display all posts. The above shortcode would display the 5 most recent book reviews. Can be used in conjunction with any of the other parameters.
Covers
[book-reviews covers=true]
Displays the book cover if it’s been added to the review and if the theme supports it. Only accepted argument is true. Requires the theme to support post thumbnails. The above shortcode would display all books with book covers.
Order By
[book-reviews order_by=title]
Changes the order in which the books are displayed. By default, lists by date added. Accepted arguments are date_added, author — lists by author’s first name (unless authors have been added last name first, e.g. “Reynolds Chris”), title — lists by book title. The above shortcode would display all books alphabetically by title.
Format
[book-reviews format=excerpt]
Determines whether to display the full review or an excerpt. Default is no review text displayed. Accepted arguments are full — displays full book review, excerpt — displays an excerpt of the review or none. The above shortcode would display all book reviews with an excerpt of each review.
Author
[book-reviews author=j-k-rowling]
Filters all book reviews by single author. Any slug of an existing book author is accepted. The above shortcode would display all books by J.K. Rowling. Alternately, when wrapped in quotes, you can use the full name of any existing book author. The following would also work to display all books by J.K. Rowling:
[book-reviews author="J.K. Rowling"]
Genre
[book-reviews genre=sci-fi]
Filters all book reviews by genre. Any existing genre slug is accepted. The above shortcode would display all books in the Sci-Fi genre. When wrapped in quotes, you can use the full name of any existing genre if the name matches the slug. The following would display all the books in the “Science Fiction” genre if that genre had a slug of science-fiction:
[book-reviews genre="Science Fiction"]
