mirror of
https://github.com/e107inc/e107.git
synced 2025-07-30 03:10:50 +02:00
toAvatar now accepts the 'mode' option with 'full' to use the full URL.
This commit is contained in:
@@ -4375,6 +4375,7 @@ class e_parser
|
||||
* @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.
|
||||
* @param string $options['mode'] - 'full' url mode.
|
||||
* @return string <img> tag of avatar.
|
||||
*/
|
||||
public function toAvatar($userData=null, $options=array())
|
||||
@@ -4387,6 +4388,11 @@ class e_parser
|
||||
$linkEnd = '';
|
||||
$full = !empty($options['base64']) ? true : false;
|
||||
|
||||
if(!empty($options['mode']) && $options['mode'] === 'full')
|
||||
{
|
||||
$full = true;
|
||||
}
|
||||
|
||||
if(!empty($options['h']))
|
||||
{
|
||||
$height = intval($options['h']);
|
||||
|
Reference in New Issue
Block a user