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

Gravatar Shortcode

外掛說明

Allows you to use a shortcode in your Posts and Pages to embed a Gravatar quickly and easily just using an email address.

Options

In addition to email=””, you can also include the following attributes within the shortcode for extra formatting etc:

See http://dentedreality.com.au/projects/wp-plugin-gravatar-shortcode/ for more examples.

  • email: the email address to display the Gravatar for
  • size: a number (e.g. 60) representing the pixel size of the Gravatar to display (they are square)
  • rating: a letter restricting the maxiumum rating of Gravatar to display (g, pg, r, x)
  • default: the default image to use if there isn’t one associated with this email address (otherwise it will use the Gravatar.com default)
  • alt: the “alt” attribute to apply to the img tag produced
  • title: title attribute for the img tag
  • align: align attribute for the img, should be left, right, absmiddle, baseline etc
  • style: custom style attribute (e.g. ‘margin: 5px; border: solid 1px #000;’)
  • class: add a class to the img tag
  • id: add an id to the img tag for specific styling/DOM manipulation.
  • border: adjust the border attribute for the img

安裝方式

  1. Unzip and upload /wp-gravatar-shortcode/ to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Use the [gravatar] shortcode in a Post or Page

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

以下人員參與了開源軟體〈Gravatar Shortcode〉的開發相關工作。

參與者

將〈Gravatar Shortcode〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

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

變更記錄

1.2
* Escape attributes, props batmoo

1.1
* Actually make use of the “default” option, props Jonathan C
* Change default size to 80, to match Gravatar’s internal default

1.0
* Initial Release