mirror of
https://github.com/e107inc/e107.git
synced 2025-08-01 12:20:44 +02:00
Comment menu template now using v2.x wrappers. Template moved to templates folder.
This commit is contained in:
@@ -16,8 +16,6 @@
|
||||
|
||||
if (!defined('e107_INIT')) { exit; }
|
||||
|
||||
//$comment_menu_shortcodes = $tp -> e_sc -> parse_scbatch(__FILE__);
|
||||
//e107::getRegistry('plugin/comment_menu/current');
|
||||
|
||||
class comment_menu_shortcodes extends e_shortcode
|
||||
{
|
||||
@@ -88,6 +86,13 @@ class comment_menu_shortcodes extends e_shortcode
|
||||
function sc_cm_author_avatar($parm=null) // new v2.1.5
|
||||
{
|
||||
$data = array('user_id'=>$this->var['comment_author_id'], 'user_image'=>$this->var['comment_author_image']);
|
||||
|
||||
if(!empty($parm['size']))
|
||||
{
|
||||
$parm['w'] = $parm['size'];
|
||||
$parm['h'] = $parm['size'];
|
||||
}
|
||||
|
||||
return e107::getParser()->toAvatar($data, $parm);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user