git-svn-id: http://xe-core.googlecode.com/svn/trunk@1772 201d5d3c-b55e-5fd7-737f-ddc643e51545

This commit is contained in:
zero 2007-06-26 09:18:42 +00:00
parent fbbad5e79e
commit 898eb99469
26 changed files with 214 additions and 135 deletions

View file

@ -1079,14 +1079,14 @@
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;"/>', Context::getRequestUri().$image_name->file, $image_name->width, $image_name->height, $top_margin);
$text = sprintf('<img src="%s" border="0" alt="image name" 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],Context::getRequestUri().$image_mark->file, $image_mark->width+2, $image_mark->height), $matches[0] );
}
return str_replace($matches[5], $text, $matches[0]);
$output = str_replace('>'.$matches[5].'<', '>'.$text.'<', $matches[0]);
return $output;
}
/**