內容簡介
這個外掛讓你可以在文章和頁面中使用簡短代碼(embed a Gravatar),只需輸入電子郵件地址就能輕鬆快速地加入Gravatar。
選項
除了email=””,您還可以在簡短代碼中使用以下屬性以進行額外的格式調整等:
參考 http://dentedreality.com.au/projects/wp-plugin-gravatar-shortcode/ 获得更多示例。
email: 顯示Gravatar的電子郵件地址
size: 數字(例如60),代表要顯示的Gravatar的像素大小(它们是正方形的)
rating: 限制顯示的Gravatar的最大等級 (g, pg, r, x)
default: 如果沒有與此電子郵件地址關聯的圖像,則使用的默認圖像(否则它將使用Gravatar.com的默認圖像)
alt: 应用于生成的img标记的“alt”属性
title: img標記的title屬性
align: img的對齊方式,可以是left,right,absmiddle,baseline等
style: 自定义样式属性(例如'margin: 5px; border: solid 1px #000;')
class: 添加到img標記的類
id: 對img標記添加id以進行特定的樣式/ DOM操作。
border: 調整img的邊框属性
外掛標籤
開發者團隊
原文外掛簡介
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
