[WordPress] 外掛分享: WP Plugin Reviews

首頁外掛目錄 › WP Plugin Reviews
10+
安裝啟用
尚無評分
1617 天前
最後更新
問題解決
WordPress 3.5+ v0.4 上架:2013-02-12

內容簡介

在側邊欄中顯示 WordPress 外掛的最新評論。

特點
側邊欄小工具

此外掛提供了一個側邊欄小工具,可配置其顯示 WordPress 外掛的最新評論。您可以為不同的 WordPress 外掛添加多個小部件。

模板函數

除了使用小工具之外,您還可以使用以下模板函數在主題的任何地方顯示 WordPress 外掛的評論。

get_plugin_reviews($plugin, $count);

以下選項可以在 $options 陣列中傳遞

$plugin (string) – WordPress 外掛名稱。
count (int) – 預設值為 5 – 顯示最近幾條評論

緩存

此外掛會將檢索到的評論緩存約 12 小時。

使用 CSS 呈現樣式

此外掛添加了以下 CSS 類。如果您希望自定義小工具的外觀,則可以通過向這些 CSS 類添加自定義樣式來更改它。

外部 div 標籤具有類 plugin-review
實際評論文本包含在具有類 plugin-review-text 的 blockquote 標籤中
作者名稱包含在具有類 plugin-review-author 的 span 標籤中

開發

此外掛的開發在 GitHub 上進行。如果您想要貢獻到此外掛,請在 GitHub 上 fork 此項目,然後向我發送一個 pull request。

如果您對 git 或 Github 不熟悉,請參閱此指南以了解如何fork並發送 pull request 。

如果您正在尋找點子,那麼您可以從以下 TODO 任務之一開始 🙂

待辦事項

從自定義字段中提取外掛名稱
支援短代碼
新增選項以顯示日期
將 widget 內容的輸出插入

支援

如果您發現錯誤/問題或有特性請求,請在 GitHub 上提出 issues
如果您對使用方法有疑問或需要幫助進行故障排除,請在 WordPress 論壇上發布或在 外掛程式的主頁上 留言
如果您喜歡此外掛,請在 WordPress repo 頁面上留下評價/反饋。
如果還有其他事項,請在 Twitter 聯繫我。

故障排除

如果您遇到超時或錯誤“WP HTTP 錯誤:名稱查找逾時”,則表示您的服務器在 Github 回應之前未超時。

您可以使用 此 gist 中的代碼來增加超時時間。

保持更新

我會在我的博客和Twitter上發布此外掛的更新。如果您想在新版本發布時收到通知,則可以訂閱此博客的 RSS 鐘 或 Twitter 。

外掛標籤

開發者團隊

⬇ 下載最新版 (v0.4) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「WP Plugin Reviews」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Displays the latest reviews of a WordPress Plugin in the sidebar.
Features
Sidebar Widget
The Plugin provides a sidebar widget which can be configured to display the latest reviews of a WordPress Plugin in the sidebar. You can have multiple widgets for different WordPress Plugins.
Template function
In addition to using the widget, you can also use the following template function to display the reviews of the WordPress Plugin, anywhere in the theme.
get_plugin_reviews($plugin, $count);

The following options can be passed in the $options array

$plugin (string) – WordPress Plugin name.
count (int) – defualt 5 – Number of recent reviews to show

Caching
The Plugin caches the reviews that are retrieved for about 12 hours.
Styling using CSS
The Plugin adds the following CSS classes. If you want to customize the look of the widget then can change it by adding custom styles to these CSS classes.

The outer div tag has the class plugin-review
The actual review text is enclosed in a blockquote tag with class plugin-review-text
The author name is enclosed in a span tag with class plugin-review-author

Development
The development of the Plugin happens over at github. If you want to contribute to the Plugin, fork the project at github and send me a pull request.
If you are not familiar with either git or Github then refer to this guide to see how fork and send pull request.
If you are looking for ideas, then you can start with one of the following TODO items 🙂
TODO

Pull Plugin name from custom field
Shortcode support
Added an option to display date
Make the output of widget content plugable

Support

If you have found a bug/issue or have a feature request, then post them in github issues
If you have a question about usage or need help to troubleshoot, then post in WordPress forums or leave a comment in Plugins’s home page
If you like the Plugin, then kindly leave a review/feedback at WordPress repo page.
If anything else, then contact me in twitter.

Troubleshooting
If you get timeouts or the error “WP HTTP Error: name lookup timed out” then it means that your server is not timing out before github can respond.
You can use the code from this gist to increase the timeout.
Stay updated
I would be posting updates about this Plugin in my blog and in Twitter. If you want to be informed when new version of this Plugin is released, then you can either subscribe to this blog’s RSS feed or follow me in Twitter.
Also checkout the other WordPress Plugins that I have created.
Translation
The pot file is available with the Plugin. If you are willing to do translation for the Plugin, use the pot file to create the .po files for your language and let me know. I will add it to the Plugin after giving credit to you.
Readme Generator
This Readme file was generated using wp-readme, which generates readme files for WordPress Plugins.

延伸相關外掛

文章
Filter
Mastodon