mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-13 16:34:52 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@1615 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
b1159d74c9
commit
61c587648d
1 changed files with 2 additions and 2 deletions
|
|
@ -1024,11 +1024,11 @@
|
|||
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="image" width="%s" height="%s" style="margin-top:%dpx;"/>', $image_name->file, $image_name->width, $image_name->height, $top_margin);
|
||||
$text = sprintf('<img src="%s" border="0" alt="image" width="%s" height="%s" style="margin-top:%dpx;"/>', Context::getRequestUri().$image_name->file, $image_name->width, $image_name->height, $top_margin);
|
||||
}
|
||||
|
||||
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] );
|
||||
$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] );
|
||||
}
|
||||
|
||||
return str_replace($matches[5], $text, $matches[0]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue