diff --git a/e107_handlers/e_parse_class.php b/e107_handlers/e_parse_class.php
index 884054b30..8906d9735 100644
--- a/e107_handlers/e_parse_class.php
+++ b/e107_handlers/e_parse_class.php
@@ -4285,6 +4285,7 @@ class e_parser
* @param bool $options['base64'] - use embedded base64 for image src.
* @param bool $options['hd'] - double the resolution of the image. Useful for retina displays.
* @param string $options['type'] - when set to 'url' returns the URL value instead of the tag.
+ * @param string $options['style'] - sets the style attribute.
* @return string
tag of avatar.
*/
public function toAvatar($userData=null, $options=array())
@@ -4405,9 +4406,10 @@ class e_parser
$classOnline = (!empty($userData['user_currentvisit']) && intval($userData['user_currentvisit']) > (time() - 300)) ? " user-avatar-online" : '';
$class = !empty($options['class']) ? $options['class'] : $shape." user-avatar";
+ $style = !empty($options['style']) ? " style='".$options['style']."'" : '';
$text = $linkStart;
- $text .= "
";
+ $text .= "
";
$text .= $linkEnd;
// return $url;
return $text;