1
0
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:
Cameron
2021-01-03 08:45:18 -08:00
parent 3b0ff5d4ef
commit 566613f050
4 changed files with 82 additions and 77 deletions

View File

@@ -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);
}