1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-04 05:37:32 +02:00

Fix for toAvatar() h parameter.

This commit is contained in:
Cameron
2017-01-16 13:27:26 -08:00
parent d7d324d365
commit f5a31cc92c
3 changed files with 8 additions and 2 deletions

View File

@@ -1776,7 +1776,7 @@ Inverse 10 <span class="badge badge-inverse">10</span>
$menu_vars['logout']['text'] = ''; // ADMINNAME; // ""; // ADMINNAME;
$menu_vars['logout']['link'] = '#';
$menu_vars['logout']['image'] = $tp->toAvatar(null, array('w'=>32,'h'=>32, 'shape'=>'circle')); // $tp->toGlyph('fa-user'); // "<i class='icon-user'></i>"; // "<img src='".E_16_NAV_LGOT."' alt='".ADLAN_151."' class='icon S16' />";
$menu_vars['logout']['image'] = $tp->toAvatar(null, array('w'=>30,'h'=>30,'crop'=>1, 'shape'=>'circle')); // $tp->toGlyph('fa-user'); // "<i class='icon-user'></i>"; // "<img src='".E_16_NAV_LGOT."' alt='".ADLAN_151."' class='icon S16' />";
$menu_vars['logout']['image_src'] = LAN_LOGOUT;
$menu_vars['logout']['sub'] = $tmp;
}

View File

@@ -3655,6 +3655,12 @@ class e_parser
$linkStart = '';
$linkEnd = '';
if(!empty($options['h']))
{
$height = intval($options['h']);
}
if($userData === null && USERID)
{
$userData = array();

View File

@@ -1305,7 +1305,7 @@ td.forumheader { background-image: linear-gradient(#303030,#212121 60%,#171717);
.navbar-nav > li > a.admin-icon-avatar { padding-top:8px; padding-bottom:5px}
.navbar-nav > li > a.admin-icon-avatar { padding-top:9px; padding-bottom:5px}