Leochenftw\Util::Gravatar
Get either a Gravatar URL or complete image tag for a specified email address.
Signature
public function Gravatar(
$member_id,
[integer
$s = 80,
[string
$d = 'mm',
[string
$r = 'g',
[boolean
$img = false,
[array
$atts = ]]]]] )
Parameters
$member_id
—
$s
—
integer
- Size in pixels, defaults to 80px [ 1 - 2048 ]
$d
—
string
- Default imageset to use [ 404 | mm | identicon | monsterid | wavatar ]
$r
—
string
- Maximum rating (inclusive) [ g | pg | r | x ]
$img
—
boolean
- True to return a complete IMG tag False for just the URL
$atts
—
array
- Optional, additional key/value attributes to include in the IMG tag
Returns
- String
- containing either just a URL or a complete image tag