mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-22 04:39:55 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@1590 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
7461841819
commit
3b1703d91a
4 changed files with 37 additions and 31 deletions
|
|
@ -1028,10 +1028,12 @@
|
|||
$text = sprintf('<img src="%s" border="0" alt="image" width="%s" height="%s" style="margin-top:%dpx;"/>', $image_name->file, $image_name->width, $image_name->height, $top_margin);
|
||||
}
|
||||
|
||||
if($image_mark->width) $buff = sprintf('<%s style="cursor:pointer;background:url(%s) no-repeat left;padding-left:%dpx; height:%dpx">%s</%s>', $matches[1],$image_mark->file, $image_mark->width+2, $image_mark->height, $text, $matches[6]);
|
||||
else $buff = $text;
|
||||
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],$image_mark->file, $image_mark->width+2, $image_mark->height), $matches[0] );
|
||||
}
|
||||
|
||||
$GLOBALS['_transImageNameList'][$member_srl] = str_replace($matches[5], $text, $matches[0]);
|
||||
|
||||
$GLOBALS['_transImageNameList'][$member_srl] = str_replace($matches[5], $buff, $matches[0]);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue