mirror of
https://github.com/e107inc/e107.git
synced 2025-08-12 17:44:37 +02:00
Fixes #2494 Comment Menu Avatar. eg {CM_AUTHOR_AVATAR: shape=circle}
This commit is contained in:
@@ -68,6 +68,12 @@ class comment_menu_shortcodes extends e_shortcode
|
||||
{
|
||||
return $this->var['comment_author'];
|
||||
}
|
||||
|
||||
function sc_cm_author_avatar($parm=null)
|
||||
{
|
||||
$data = array('user_id'=>$this->var['comment_author_id'], 'user_image'=>$this->var['comment_author_image']);
|
||||
return e107::getParser()->toAvatar($data, $parm);
|
||||
}
|
||||
|
||||
|
||||
function sc_cm_comment($parm='')
|
||||
|
@@ -26,7 +26,7 @@ $sc_style['CM_DATESTAMP']['post'] = "";
|
||||
$sc_style['CM_COMMENT']['pre'] = "";
|
||||
$sc_style['CM_COMMENT']['post'] = "";
|
||||
|
||||
// $SC_WRAPPER['CM_AUTHOR'] = CM_L13."{---}"; //XXX Not working at time of review
|
||||
// $SC_WRAPPER['CM_AUTHOR'] = CM_L13."{---}"; //XXX Not working as template is loaded the old way.
|
||||
|
||||
if (!isset($COMMENT_MENU_TEMPLATE))
|
||||
{
|
||||
@@ -35,9 +35,13 @@ if (!isset($COMMENT_MENU_TEMPLATE))
|
||||
$COMMENT_MENU_TEMPLATE['item'] = "<li>
|
||||
{CM_URL_PRE}{CM_TYPE} {CM_HEADING}{CM_URL_POST}
|
||||
<div>{CM_COMMENT}</div>
|
||||
<small class='text-muted muted'>{CM_AUTHOR} {CM_DATESTAMP}</small>
|
||||
<small class='text-muted muted'> {CM_AUTHOR} {CM_DATESTAMP}</small>
|
||||
</li>";
|
||||
|
||||
$COMMENT_MENU_TEMPLATE['end'] = "</ul>";
|
||||
|
||||
// {CM_AUTHOR_AVATAR: shape=circle}
|
||||
|
||||
|
||||
}
|
||||
?>
|
Reference in New Issue
Block a user