사용자 아이디에 이미지이름/ 포인트 아이콘 적용시 img 태그를 이용하도록 수정하고 로그인 정보 위젯에도 적용

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@2769 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
zero 2007-10-15 09:33:13 +00:00
parent f2f3b1ac71
commit a99105455e
12 changed files with 148 additions and 133 deletions

View file

@ -64,6 +64,8 @@
$point = $this->oPointModel->getPoint($member_srl);
$level = $this->oPointModel->getLevel($point, $this->config->level_step);
$text = $matches[5];
$src = sprintf("modules/point/icons/%s/%d.gif", $this->config->level_icon, $level);
if(!$this->icon_width) {
$info = getimagesize($src);
@ -78,8 +80,11 @@
}
}
$code = sprintf('<%s title="%s:%s%s %s, %s:%s/%s" style="cursor:pointer;background:url(%s) no-repeat left;padding-left:%dpx; height:%dpx">%s</%s> ', $matches[6], Context::getLang('point'), $point, $this->config->point_name, $per?"(".$per."%)":"", Context::getLang('level'), $level, $this->config->max_level, Context::getRequestUri().$src, $this->icon_width+2, $this->icon_height, $matches[0], $matches[6]);
$this->member_code[$member_srl] = $code;
$title = sprintf("%s:%s%s %s, %s:%s/%s", Context::getLang('point'), $point, $this->config->point_name, $per?"(".$per."%)":"", Context::getLang('level'), $level, $this->config->max_level);
$text = sprintf('<span class="nowrap member_%s"><img src="%s" width="%s" height="%s" alt="%s" title="%s" align="absmiddle" style="margin-right:3px"/>%s</span>', $member_srl, Context::getRequestUri().$src, $this->icon_width+2, $this->icon_height, $title, $title, $text);
$this->member_code[$member_srl] = $text;
return $this->member_code[$member_srl];
}