1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-31 03:40:37 +02:00

More avatar code moved to $tp->toAvatar() and minor css fixes.

This commit is contained in:
Cameron
2015-02-05 00:02:29 -08:00
parent 2b83a64f16
commit 9ddada154f
3 changed files with 7 additions and 6 deletions

View File

@@ -492,12 +492,12 @@ class adminstyle_infopanel
{
$hide = ($count > 3) ? ' hide' : '';
$TEMPLATE = "{SETIMAGE: w=40}
$TEMPLATE = "{SETIMAGE: w=40&h=40}
<li id='comment-".$row['comment_id']."' class='media".$hide."'>
<span class='media-object pull-left'>{USER_AVATAR=".$row['comment_author_id']."}</span>
<div class='btn-group pull-right'>
<button data-target='".e_BASE."comment.php' data-comment-id='".$row['comment_id']."' data-comment-action='delete' class='btn btn-mini btn-danger'><i class='icon-remove'></i> Delete</button>
<button data-target='".e_BASE."comment.php' data-comment-id='".$row['comment_id']."' data-comment-action='approve' class='btn btn-mini btn-success'><i class='icon-ok'></i> Approve</button>
<button data-target='".e_BASE."comment.php' data-comment-id='".$row['comment_id']."' data-comment-action='delete' class='btn btn-sm btn-mini btn-danger'><i class='icon-remove'></i> Delete</button>
<button data-target='".e_BASE."comment.php' data-comment-id='".$row['comment_id']."' data-comment-action='approve' class='btn btn-sm btn-mini btn-success'><i class='icon-ok'></i> Approve</button>
</div>
<div class='media-body'><small class='muted smalltext'>Posted by {USERNAME} {TIMEDATE=relative}</small><br />
<p>{COMMENT}</p>

View File

@@ -3003,7 +3003,8 @@ class e107plugin
$ret['menuName'] = varset($eplug_menu_name);
if (varset($eplug_prefs))
if (!empty($eplug_prefs) && is_array($eplug_prefs))
{
$c = 0;
foreach($eplug_prefs as $name => $value)

View File

@@ -413,7 +413,7 @@ class pm_shortcodes extends e_shortcode
public function sc_pm_avatar()
{
return e107::getParser()->parseTemplate("{USER_AVATAR={$this->var['user_image']}}");
return e107::getParser()->toAvatar($this->var);
}