mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-04 09:32:15 +09:00
포인트 레벨 아이콘, 회원 이미지네임등을 처리시 div,span에 a태그도 적용되도록 변경
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@4784 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
7eefe43491
commit
125c0245d2
4 changed files with 11 additions and 12 deletions
|
|
@ -15,5 +15,5 @@
|
|||
require_once('./addons/point_level_icon/point_level_icon.lib.php');
|
||||
|
||||
$oPointController = &getController('point');
|
||||
$output = preg_replace_callback('!<(div|span)([^\>]*)member_([0-9\-]+)([^\>]*)>(.*?)\<\/(div|span)\>!is', 'pointLevelIconTrans', $output);
|
||||
$output = preg_replace_callback('!<(div|span|a)([^\>]*)member_([0-9\-]+)([^\>]*)>(.*?)\<\/(div|span|a)\>!is', 'pointLevelIconTrans', $output);
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -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];
|
||||
}
|
||||
?>
|
||||
?>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue