Class Avatar

Class Avatar

Namespace: Concrete\Core\Legacy
Package: Concrete\Core\Application\Service
Deprecated
Located at src/Legacy/Avatar.php

Methods summary

public string
# outputUserAvatar( UserInfo $uo, boolean $suppressNone = false, float $aspectRatio = 1.0 )
public boolean|string
# getImagePath( UserInfo $uo, boolean $withNoCacheStr = true )

gets the image path for a users avatar

public string
# outputNoAvatar( float $aspectRatio = 1.0 )

What to show if the user has no avatar

public
# removeAvatar( User $ui )

Removes the avatar for the given user

public String
# getGravatar( string $email, integer $s = 80, string $d = 'mm', string $r = 'g', boolean $img = false, array $atts = array() )

Get either a Gravatar URL or complete image tag for a specified email address.

public String
# get_gravatar( $email, integer $s = 80, string $d = 'mm', string $r = 'g', boolean $img = false, array $atts = array() )