mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 02:31:40 +09:00
사용자 아이디에 이미지이름/ 포인트 아이콘 적용시 img 태그를 이용하도록 수정하고 로그인 정보 위젯에도 적용
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@2769 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
f2f3b1ac71
commit
a99105455e
12 changed files with 148 additions and 133 deletions
|
|
@ -1369,16 +1369,14 @@
|
|||
if(!$image_name && !$image_mark) return $matches[0];
|
||||
|
||||
if($image_name->width) {
|
||||
if($image_mark->height && $image_mark->height > $image_name->height) $top_margin = ($image_mark->height - $image_name->height)/2;
|
||||
else $top_margin = 0;
|
||||
$text = sprintf('<img src="%s" border="0" alt="id: %s" title="id: %s" width="%s" height="%s" style="margin-top:%dpx;"/>', Context::getRequestUri().$image_name->file, htmlspecialchars(strip_tags($matches[5])), htmlspecialchars(strip_tags($matches[5])), $image_name->width, $image_name->height, $top_margin);
|
||||
$text = sprintf('<img src="%s" border="0" alt="id: %s" title="id: %s" width="%s" height="%s" align="absmiddle" style="margin-right:3px" />', Context::getRequestUri().$image_name->file, htmlspecialchars(strip_tags($matches[5])), htmlspecialchars(strip_tags($matches[5])), $image_name->width, $image_name->height);
|
||||
}
|
||||
|
||||
if($image_mark->width) {
|
||||
$matches[0] = str_replace('<'.$matches[6], sprintf('<%s style="cursor:pointer;background:url(%s) no-repeat left;padding-left:%dpx; height:%dpx" ', $matches[1],Context::getRequestUri().$image_mark->file, $image_mark->width+2, $image_mark->height), $matches[0] );
|
||||
$text = sprintf('<img src="%s" border="0" alt="id: %s" title="id : %s" width="%s" height="%s" align="absmiddle" style="margin-right:3px"/>%s', Context::getRequestUri().$image_mark->file, htmlspecialchars(strip_tags($matches[5])), htmlspecialchars(strip_tags($matches[5])), $image_mark->width, $image_mark->height, $text);
|
||||
}
|
||||
$output = str_replace('>'.$matches[5].'<', '>'.$text.'<', $matches[0]);
|
||||
return $output;
|
||||
|
||||
return sprintf('<span class="nowrap member_%d">%s</span>',$member_srl, $text);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue