mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-24 03:57:22 +08:00
add class to medal after username
This commit is contained in:
@@ -3666,6 +3666,7 @@ function get_username($id, $big = false, $link = true, $bold = true, $target = f
|
|||||||
$disabledpic = "disabledbig";
|
$disabledpic = "disabledbig";
|
||||||
$marginLeft = '4pt';
|
$marginLeft = '4pt';
|
||||||
$medalSize = '16px';
|
$medalSize = '16px';
|
||||||
|
$medalClass = 'nexus-username-medal-big';
|
||||||
$style = "style='margin-left: $marginLeft'";
|
$style = "style='margin-left: $marginLeft'";
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@@ -3676,6 +3677,7 @@ function get_username($id, $big = false, $link = true, $bold = true, $target = f
|
|||||||
$disabledpic = "disabled";
|
$disabledpic = "disabled";
|
||||||
$marginLeft = '2pt';
|
$marginLeft = '2pt';
|
||||||
$medalSize = '11px';
|
$medalSize = '11px';
|
||||||
|
$medalClass = 'nexus-username-medal';
|
||||||
$style = "style='margin-left: $marginLeft'";
|
$style = "style='margin-left: $marginLeft'";
|
||||||
}
|
}
|
||||||
$pics = $arr["donor"] == "yes" && ($arr['donoruntil'] === null || $arr['donoruntil'] < '1970' || $arr['donoruntil'] >= date('Y-m-d H:i:s')) ? "<img class=\"".$donorpic."\" src=\"/pic/trans.gif\" alt=\"Donor\" ".$style." />" : "";
|
$pics = $arr["donor"] == "yes" && ($arr['donoruntil'] === null || $arr['donoruntil'] < '1970' || $arr['donoruntil'] >= date('Y-m-d H:i:s')) ? "<img class=\"".$donorpic."\" src=\"/pic/trans.gif\" alt=\"Donor\" ".$style." />" : "";
|
||||||
@@ -3711,8 +3713,8 @@ function get_username($id, $big = false, $link = true, $bold = true, $target = f
|
|||||||
$medalHtml = '';
|
$medalHtml = '';
|
||||||
foreach ($arr['wearing_medals'] as $medal) {
|
foreach ($arr['wearing_medals'] as $medal) {
|
||||||
$medalHtml .= sprintf(
|
$medalHtml .= sprintf(
|
||||||
'<img src="%s" title="%s" class="preview" style="max-height: %s;max-width: %s;margin-left: %s"/>',
|
'<img src="%s" title="%s" class="%s preview" style="max-height: %s;max-width: %s;margin-left: %s"/>',
|
||||||
$medal['image_large'], $medal['name'], $medalSize, $medalSize, $marginLeft
|
$medal['image_large'], $medal['name'], $medalClass, $medalSize, $medalSize, $marginLeft
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -696,7 +696,7 @@ $lang_settings = array
|
|||||||
'row_login_type' => '登录方式',
|
'row_login_type' => '登录方式',
|
||||||
'text_login_type_normal' => '正常',
|
'text_login_type_normal' => '正常',
|
||||||
'text_login_type_secret' => '秘密',
|
'text_login_type_secret' => '秘密',
|
||||||
'text_login_type_warning' => '当游客访问方式不为正常时,必须使用秘密登录才能登录',
|
'text_login_type_warning' => '三者只生效其中之一',
|
||||||
'row_login_secret' => '登录密钥',
|
'row_login_secret' => '登录密钥',
|
||||||
'text_login_secret_current' => '当前密钥',
|
'text_login_secret_current' => '当前密钥',
|
||||||
'text_login_url_with_secret' => '秘密登录链接',
|
'text_login_url_with_secret' => '秘密登录链接',
|
||||||
|
|||||||
@@ -696,7 +696,7 @@ $lang_settings = array
|
|||||||
'row_login_type' => '登錄方式',
|
'row_login_type' => '登錄方式',
|
||||||
'text_login_type_normal' => '正常',
|
'text_login_type_normal' => '正常',
|
||||||
'text_login_type_secret' => '秘密',
|
'text_login_type_secret' => '秘密',
|
||||||
'text_login_type_warning' => '當遊客訪問方式不為正常時,必須使用秘密登錄才能登錄',
|
'text_login_type_warning' => '三者只生效其中之一',
|
||||||
'row_login_secret' => '登錄密鑰',
|
'row_login_secret' => '登錄密鑰',
|
||||||
'text_login_secret_current' => '當前密鑰',
|
'text_login_secret_current' => '當前密鑰',
|
||||||
'text_login_url_with_secret' => '秘密登錄鏈接',
|
'text_login_url_with_secret' => '秘密登錄鏈接',
|
||||||
|
|||||||
@@ -696,7 +696,7 @@ $lang_settings = array
|
|||||||
'row_login_type' => 'Login type',
|
'row_login_type' => 'Login type',
|
||||||
'text_login_type_normal' => 'Normal',
|
'text_login_type_normal' => 'Normal',
|
||||||
'text_login_type_secret' => 'Secret',
|
'text_login_type_secret' => 'Secret',
|
||||||
'text_login_type_warning' => "When 'Guest visit' != Normal, user can only login through the 'Secret' way",
|
'text_login_type_warning' => "Only one of the three is in effect",
|
||||||
'row_login_secret' => 'Login secret',
|
'row_login_secret' => 'Login secret',
|
||||||
'text_login_secret_current' => 'Current secret',
|
'text_login_secret_current' => 'Current secret',
|
||||||
'text_login_url_with_secret' => 'Secret login URL',
|
'text_login_url_with_secret' => 'Secret login URL',
|
||||||
|
|||||||
Reference in New Issue
Block a user