API Docs for: undefined
Show:

YUI Class

Item Index

Methods

Methods

gravatarUrl

(
  • options
  • callbackFunction
  • contextObject
)

Create a gravatar image url.

Parameters:

  • options Object

    An object with the following optional properties:

    defaultImage
    This could be a string url to an image to use when there is no matching gravatar image or it could be one of the following values: '404', 'mm', 'identicon', 'monsterid', 'wavatar', or 'retro' Refer to gravatar's documentation: http://en.gravatar.com/site/implement/images/
    email
    The user's e-mail address.
    force
    If this is a truthy value, it will force the default image to load even if there is a matching gravatar image.
    rating
    The maximum image rating that is allowed to load. It could be one of the following values: 'g', 'pg', 'r', 'x' Defaults to 'g'. Refer to gravatar's documentation: http://en.gravatar.com/site/implement/images/
    secure
    If this is a truthy value, the url will use the secure https protocol.
    size
    An integer representing the height and width of the image in pixels. Values from 1 to 512 inclusive are supported. Gravatar images are square.
  • callbackFunction Function

    This function receives the gravatar url as its only parameter.

  • contextObject Object

    (optional) An object to provide as the execution context for the callback function.