mirror of
https://github.com/e107inc/e107.git
synced 2025-08-01 20:30:39 +02:00
Merge pull request #1742 from durandalwoz/master
Avatar shortcode for forum templates and encoding fix for date
This commit is contained in:
@@ -197,7 +197,7 @@ class convert
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
return strftime($mask, $datestamp);
|
return utf8_encode(strftime($mask, $datestamp));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@@ -699,4 +699,8 @@ $gen = new convert;
|
|||||||
return $frm->breadcrumb($breadarray);
|
return $frm->breadcrumb($breadarray);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function sc_avatar($opts)
|
||||||
|
{
|
||||||
|
return e107::getParser()->toAvatar(e107::user($this->var['forum_lastpost_user']),$opts);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@@ -888,5 +888,18 @@ $LASTPOSTUSER = $this->var['lastpost_username'];
|
|||||||
}
|
}
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
function sc_avatar($opts)
|
||||||
|
{
|
||||||
|
if (isset($this->var['thread_id']))
|
||||||
|
{
|
||||||
|
return e107::getParser()->toAvatar(e107::user($this->var['thread_lastuser']),$opts);
|
||||||
|
}
|
||||||
|
elseif (isset($this->var['forum_id']))
|
||||||
|
{
|
||||||
|
return e107::getParser()->toAvatar(e107::user($this->var['forum_lastpost_user']),$opts);
|
||||||
|
}
|
||||||
|
|
||||||
|
return '';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
Reference in New Issue
Block a user