포인트 레벨 아이콘, 회원 이미지네임등을 처리시 div,span에 a태그도 적용되도록 변경

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@4784 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
zero 2008-11-07 01:41:47 +00:00
parent 7eefe43491
commit 125c0245d2
4 changed files with 11 additions and 12 deletions

View file

@ -37,11 +37,13 @@
$title = sprintf('%s:%s%s %s, %s:%s/%s', Context::getLang('point'), $point, $config->point_name, $per?'('.$per.'%)':'', Context::getLang('level'), $level, $config->max_level);
$alt = sprintf('[%s:%s]', Context::getLang('level'), $level);
$text = sprintf('<span class="nowrap member_%s" style="cursor:pointer"><img src="%s" alt="%s" title="%s" style="vertical-align:middle;margin-right:3px"/>%s</span>', $member_srl, $level_icon, $alt, $title, $text);
$orig_text = preg_replace('/'.preg_quote($matches[5],'/').'<\/'.$matches[6].'>$/', '', $matches[0]);
$GLOBALS['_pointLevelIcon'][$member_srl] = $text;
$text = sprintf('<img src="%s" alt="%s" title="%s" style="vertical-align:middle; margin-right:3px;" />%s', $level_icon, $alt, $title, $text);
$GLOBALS['_pointLevelIcon'][$member_srl] = $orig_text.$text.'</'.$matches[6].'>';
}
return $GLOBALS['_pointLevelIcon'][$member_srl];
}
?>
?>