From 24357566796b4f34eca4b93cbcdf793bb7079c46 Mon Sep 17 00:00:00 2001 From: zero Date: Mon, 3 Dec 2007 06:19:03 +0000 Subject: [PATCH] =?UTF-8?q?=EC=9D=B4=EB=AF=B8=EC=A7=80=EB=A7=81=ED=81=AC?= =?UTF-8?q?=20=EC=97=90=EB=94=94=ED=84=B0=20=EC=BB=B4=ED=8F=AC=EB=84=8C?= =?UTF-8?q?=ED=8A=B8=EC=97=90=EC=84=9C=20=EA=B2=8C=EC=8B=9C=EA=B8=80?= =?UTF-8?q?=EC=97=90=20=EC=82=BD=EC=9E=85=ED=95=9C=20=EC=8A=A4=ED=83=80?= =?UTF-8?q?=EC=9D=BC=EC=9D=84=20=EA=B7=B8=EB=8C=80=EB=A1=9C=20=EC=A4=80?= =?UTF-8?q?=EC=88=98=ED=95=98=EC=A7=80=20=EB=AA=BB=ED=95=98=EB=8D=98=20?= =?UTF-8?q?=EB=AC=B8=EC=A0=9C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://xe-core.googlecode.com/svn/sandbox@3142 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- .../components/image_link/image_link.class.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/modules/editor/components/image_link/image_link.class.php b/modules/editor/components/image_link/image_link.class.php index a15d4d620..ddfaeb81a 100644 --- a/modules/editor/components/image_link/image_link.class.php +++ b/modules/editor/components/image_link/image_link.class.php @@ -45,9 +45,10 @@ $height = $xml_obj->attrs->height; $align = $xml_obj->attrs->align; $alt = $xml_obj->attrs->alt; - $border = $xml_obj->attrs->border; + $border = (int)$xml_obj->attrs->border; $link_url = $xml_obj->attrs->link_url; $open_window = $xml_obj->attrs->open_window; + $style = $xml_obj->attrs->style; if(!$alt) { $tmp_arr = explode('/',$src); @@ -58,7 +59,6 @@ if(!$alt) $alt = $src; $attr_output = array(); - $style_output = array(); $attr_output = array("src=\"".$src."\""); if($alt) { $attr_output[] = "alt=\"".$alt."\""; @@ -68,11 +68,11 @@ if(eregi("\.png$",$src)) $attr_output[] = "class=\"iePngFix\""; - if($width) $style_output[] = "width:".$width."px"; - if($height) $style_output[] = "height:".$height."px"; - //if(!$align) $style_output[] = "display:block"; - if($border) $style_output[] = "border:".$border."px"; - $code = sprintf("", implode(" ",$attr_output), implode(";",$style_output)); + if($width) $attr_output[] = 'width="'.$width.'"'; + if($height) $attr_output[] = 'height="'.$height.'"'; + if($border) $attr_output[] = 'border="'.$border.'"'; + + $code = sprintf("", implode(" ",$attr_output), $style); if($link_url) { if($open_window =='Y') $code = sprintf('%s', $link_url, $code);