forked from friendica/friendica-addons
slight change to get_avatar hook, also provided readable text for gravatar default options - the admin settings part of this plugin needs some work.
This commit is contained in:
parent
db22719bb8
commit
9295f179b1
|
@ -36,7 +36,7 @@ function gravatar_lookup($a, &$b) {
|
||||||
|
|
||||||
// setting default value if nothing configured
|
// setting default value if nothing configured
|
||||||
if(! $default_avatar)
|
if(! $default_avatar)
|
||||||
$default_avatar = 'identicon'; // pseudo-random geometric pattern based on email hash
|
$default_avatar = 'identicon'; // default image will be a random pattern
|
||||||
if(! $rating)
|
if(! $rating)
|
||||||
$rating = 'g'; // suitable for display on all websites with any audience type
|
$rating = 'g'; // suitable for display on all websites with any audience type
|
||||||
|
|
||||||
|
@ -48,6 +48,7 @@ function gravatar_lookup($a, &$b) {
|
||||||
$url .= '&d=' .$default_avatar;
|
$url .= '&d=' .$default_avatar;
|
||||||
|
|
||||||
$b['url'] = $url;
|
$b['url'] = $url;
|
||||||
|
$b['success'] = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -67,12 +68,11 @@ function gravatar_plugin_admin (&$a, &$o) {
|
||||||
|
|
||||||
// Available options for the select boxes
|
// Available options for the select boxes
|
||||||
$default_avatars = array(
|
$default_avatars = array(
|
||||||
'gravatar' => 'Gravatar',
|
'mm' => t('generic profile image'),
|
||||||
'mm' => 'MM',
|
'identicon' => t('random geometric pattern'),
|
||||||
'identicon' => 'Identicon',
|
'monsterid' => t('monster face'),
|
||||||
'monsterid' => 'Monsterid',
|
'wavatar' => t('computer generated face'),
|
||||||
'wavatar' => 'Wavatar',
|
'retro' => t('retro arcade style face'),
|
||||||
'retro' => 'Retro'
|
|
||||||
);
|
);
|
||||||
$ratings = array(
|
$ratings = array(
|
||||||
'g' => 'g',
|
'g' => 'g',
|
||||||
|
|
Loading…
Reference in a new issue