jcp_simple_gravatar
文件大小: unknow
源码售价: 5 个金币 积分规则     积分充值
资源说明:Simple Gravatar avatars for Textpattern.
h1(#jcp_simple_gravatar). jcp_simple_gravatar

*Simple Gravatar* — @jcp_simple_gravatar@ — is a Textpattern plugin that simplifies the use of Gravatar avatars on your Textpattern site.

"Documentation":#documentation:
# "Installation":#installation
# "How to use":#howtouse
# "Example use":#examples
# "Information":#information
# "Source":#source
# "Bugs, issues or any other problems?":#bugs

h2(#documentation). Documentation:

h3(#installation). Installation

"How to install Simple Gravatar.":http://github.com/jocap/jcp_simple_gravatar/raw/master/plugins/jcp_simple_gravatar/current/jcp_simple_gravatar.txt

h3(#howtouse). How to use

Use @@ in your templates. It will return the gravatar URL.

There are four attributes, and all are optional;

@email@ — custom email address for gravatar (if not specified, the plugin uses the comment author’s email)
@user@ — get user’s gravatar (input: the user’s username)
@default@ — default avatar, if no gravatar was found
@default_local@ — default avatar. A local file, like @images/9.png@, that becomes @http://yoursite.com/images/9.png@ (good for development)
@size@ — the image size, in pixels (default: 80)
@format@ — the file format, like .jpg or .png, without the dot (default: jpg)
@where@ — is the gravatar in an article or in a comment? This is completely optional, *Simple Gravatar* can pick the right one for you.

h3(#examples). Example use

In the comments form:

pre. " width="50" height="50" />

May return:

pre. 

In an article:

pre. Author: 
" /> May return: pre. Author: Andrew Dorsey
Get user's avatar: pre. About Andrew:
" /> May return: pre. About Andrew:
h3(#information). Information *Simple Gravatar* for Textpattern is based on the "glx_gravatar":http://code.google.com/p/textpattern-plugins/wiki/GlxGravatar plugin by Patrick Kollitsch, and is licensed under the "GNU General Public License v2":http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. h4(#source). Source "Source.":http://github.com/jocap/jcp_simple_gravatar h3(#bugs). Bugs, issues or any other problems? Please email me at jocapriconne at gmail.com.

本源码包内暂不包含可直接显示的源代码文件,请下载源码包。