public function getAvatarURL($actor, $size = 'square')
    {
        if ($actor->hasPortrait()) {
            return $actor->getPortraitURL($size);
        }

        return $this->getService('com:base.template.asset')
                    ->getURL('lib_anahita/images/avatar/'.$size.'_default.gif');
    }
public function getAvatarURL($actor, $size = 'square')
    {
        if ($actor->hasPortrait()) {
            return $actor->getPortraitURL($size);
        }

        return $this->getService('com:base.template.asset')
                    ->getURL('lib_anahita/images/avatar/'.$size.'_default.gif');
    }
public function getAvatarURL ( $ actor , $ size = 'square' ) { if ( $ actor -> hasPortrait ( ) ) { return $ actor -> getPortraitURL ( $ size ) ; } return $ this -> getService ( 'com:base.template.asset' ) -> getURL ( 'lib_anahita/images/avatar/' . $ size . '_default.gif' ) ; }
Return an avatar URL of an actor. If actor doesn't have an avatar, then it reurns the
default avatar.

@param ComActorsDomainEntityActor $actor
@param string                     $size

@return string
Return an avatar URL of an actor . If actor doesn t have an avatar then it reurns the default avatar .