페이지 모듈에서 위젯의 외곽선과 float 조절 가능하도록 수정

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@2964 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
zero 2007-11-13 11:05:09 +00:00
parent cef71a6aab
commit 29853571a3
13 changed files with 188 additions and 31 deletions

View file

@ -86,16 +86,6 @@
$margin_left = $args->widget_margin_left;
$margin_right = $args->widget_margin_right;
$args->style .= ';';
preg_match("/height:([^;]*);/i",$args->style, $height_match);
if($height_match[0]) $height = $height_match[0];
preg_match("/width:([^;]*);/i",$args->style, $width_match);
if($width_match[0]) $width = $width_match[0];
else $width = "";
$style = "overflow:hidden;padding:none !important; margin:none !important;float:left;".$height.$width;
$inner_style = sprintf("margin:%dpx %dpx %dpx %dpx !important; padding:none !important;", $margin_top, $margin_right, $margin_bottom, $margin_left);
/**
@ -103,7 +93,7 @@
**/
// 서비스에 사용하기 위해 위젯 정보를 포함하지 않을 경우
if(!$include_info) {
$output = sprintf('<div style="%s;"><div style="%s">%s</div></div>', $style, $inner_style, $html);
$output = sprintf('<div style="%s;"><div style="%s">%s</div></div>', $args->style, $inner_style, $html);
// 위젯 sequence가 있고 위젯의 캐싱을 지정하였고 위젯정보를 담지 않도록 하였을 경우 캐시 파일을 저장
if($args->widget_sequence && $args->widget_cache) WidgetHandler::writeCache($args->widget_sequence, $output);
@ -148,7 +138,7 @@
'</div>'.
'</div>',
$css_header,
$style, $widget, implode(' ',$attribute),
$args->style, $widget, implode(' ',$attribute),
$inner_style,
$html
);