このプラグインは WordPress の最新3回のメジャーリリースに対してテストされていません。もうメンテナンスやサポートがされていないかもしれず、最新バージョンの WordPress で使用した場合は互換性の問題が発生する可能性があります。

Featured Comment Widget

説明

The Featured Comment Widget gives you the ability to shine a spotlight on some of your favorite comments on the site.

Installing this plugin adds the Featured Comment Widget to your list of available widgets in the ‘Widgets’ submenu (which you can find under ‘Appearance’ in your WordPress dashboard). Every comment has an numeric ID, and putting that ID in the widget form results in the that comment (or commentS if you enter multiple IDs), along with the name and Gravatar of its commenter, showing in the sidebar. The Gravatar and username is automatically a link to that comment in its respective post.

Widget CSS

The following are the classes and explanations of them for those of you who want to style your widget in the custom.css file:

  • .featuredComment-comment – a single comment block containing the content and citation, default: { margin: 20px auto; }
  • .featuredComment-comment-content – the comment text, default: { margin: 3px auto 5px;}
  • .featuredComment-cite – the citation that includes gravatar and author name, default: { display: block; text-align: left; line-height: 1em;}
  • .featuredComment-gravatar – the gravatar image within citation, default: {float: right; padding: 0px 5px;}
  • .featuredComment-author – the “posted by …” author link within citation, default: {float: right;}

スクリーンショット

  • Finding the comment ID to enter into your widget form.
  • Finding the comment ID in the Dashboard.
  • The Featured Comment Widget form.
  • This is what the widget looks like if you’re using the Twenty Ten theme by WordPress.
  • This is what the widget looks like on a custom themed blog, with the comments excerpted at approximately 95 characters.
  • This is what the widget looks like on Twenty Thirteen, with multiple (3) comments showing up at once.

インストール

  1. Upload featured-comment-widget.php to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Add the widget through the ‘Widgets’ submenu under ‘Appearance’ in WordPress
  4. Add the comment ID of the comment you want featured in the widget (or multiple comma-delimited IDs) and save.

評価

このプラグインにはレビューがありません。

貢献者と開発者

Featured Comment Widget はオープンソースソフトウェアです。以下の人々がこのプラグインに貢献しています。

貢献者

“Featured Comment Widget” をあなたの言語に翻訳しましょう。

開発に興味がありますか ?

コードを閲覧するか、SVN リポジトリをチェックするか、開発ログRSS で購読してみてください。

変更履歴

1.7

  • Fixes “WP_Widget deprecated” bug so that it now works if you update to WordPress 4.3+ (which you should).

1.6

  • Allows multiple comments to be featured when entering comma-delimited comment IDs – probably the most requested feature since I created this plugin!

1.5

  • Sets anonymous comment author names to “Anonymous.” A million delicious Internet cupcakes for Andrew Gorry for catching and solving this in the pancake theorem blog comments!

1.4

  • Disables excerpting comments if mbstring not enabled in PHP configuration – a fancy hat tip to Allin for mentioning this error and its solution in the pancake theorem blog comments!

1.3

  • Optimized permalink gets
  • Added i18n .pot file for translation

1.2

  • Add ability to excerpt comments by a given number of characters.

1.1

  • Add ability to enter custom widget title.