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

This commit is contained in:
zero 2007-11-14 03:58:00 +00:00
parent 686afa7637
commit 3de8735479
8 changed files with 38 additions and 37 deletions

View file

@ -93,7 +93,7 @@
**/
// 서비스에 사용하기 위해 위젯 정보를 포함하지 않을 경우
if(!$include_info) {
$output = sprintf('<div style="%s;"><div style="%s">%s</div></div>', $args->style, $inner_style, $html);
$output = sprintf('<div style="overflow:hidden;%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);

View file

@ -329,6 +329,12 @@ function doCheckWidgetDrag(e) {
}
}
function _getInt(val) {
if(!val || val == "null") return 0;
if(parseInt(val,10)==NaN) return 0;
return parseInt(val,10);
}
// 위젯 크기 조절 레이어를 보여줌
var selectedSizeWidget = null;
function doShowWidgetSizeSetup(px, py, obj) {
@ -343,10 +349,10 @@ function doShowWidgetSizeSetup(px, py, obj) {
formObj.width.value = obj.style.width;
formObj.height.value = obj.style.height;
formObj.margin_left.value = selectedSizeWidget.getAttribute('widget_margin_left');
formObj.margin_right.value = selectedSizeWidget.getAttribute('widget_margin_right');
formObj.margin_top.value = selectedSizeWidget.getAttribute('widget_margin_top');
formObj.margin_bottom.value = selectedSizeWidget.getAttribute('widget_margin_bottom');
formObj.margin_left.value = _getInt(selectedSizeWidget.getAttribute('widget_margin_left'));
formObj.margin_right.value = _getInt(selectedSizeWidget.getAttribute('widget_margin_right'));
formObj.margin_top.value = _getInt(selectedSizeWidget.getAttribute('widget_margin_top'));
formObj.margin_bottom.value = _getInt(selectedSizeWidget.getAttribute('widget_margin_bottom'));
var widget_align = '';
if(xIE4Up) widget_align = selectedSizeWidget.style.styleFloat;

View file

@ -1,6 +1,5 @@
.newestComment { position:relative; border:1px solid #e0e1db; background:url(../images/cyan/bgBoxTypeB.gif) repeat-x left top; margin-bottom:.7em; }
.newestComment h2 { position:relative; border-left:1px solid #ffffff; border-right:1px solid #ffffff; padding:7px 0 0 12px; height:21px; _height:20px; font-size:1em; color:#54564b; font-family:Tahoma;}
/*:first-child+html .boxTypeB h2 { height:20px;} */
.newestComment .commentList { padding:1.2em; overflow:hidden;}
.newestComment .commentList li { display:block; color:#a4a4a4; margin-right:.1em; white-space:nowrap; overflow:hidden; list-style:none;}
.newestComment .commentList li a { color:#a4a4a4; line-height:1.5em; text-decoration:none;}
.newestComment_cyan { border:1px solid #e0e1db; background:url(../images/cyan/bgBoxTypeB.gif) repeat-x left top; margin-bottom:.7em; }
.newestComment_cyan h2 { border-left:1px solid #ffffff; border-right:1px solid #ffffff; padding:7px 0 0 12px; height:21px; _height:20px; font-size:1em; color:#54564b; font-family:Tahoma;}
.newestComment_cyan .commentList { padding:1.2em; overflow:hidden;}
.newestComment_cyan .commentList li { display:block; color:#a4a4a4; white-space:nowrap; overflow:hidden; list-style:none; width:100%;}
.newestComment_cyan .commentList li a { color:#a4a4a4; line-height:1.5em; text-decoration:none;}

View file

@ -1,6 +1,5 @@
.newestComment { position:relative; border:1px solid #e0e1db; background:url(../images/green/bgBoxTypeB.gif) repeat-x left top; margin-bottom:.7em; }
.newestComment h2 { position:relative; border-left:1px solid #ffffff; border-right:1px solid #ffffff; padding:7px 0 0 12px; height:21px; _height:20px; font-size:1em; color:#54564b; font-family:Tahoma;}
/*:first-child+html .boxTypeB h2 { height:20px;} */
.newestComment .commentList { padding:1.2em; overflow:hidden;}
.newestComment .commentList li { display:block; color:#a4a4a4; margin-right:.1em; white-space:nowrap; overflow:hidden; list-style:none;}
.newestComment .commentList li a { color:#a4a4a4; line-height:1.5em; text-decoration:none;}
.newestComment_green { border:1px solid #e0e1db; background:url(../images/green/bgBoxTypeB.gif) repeat-x left top; margin-bottom:.7em; }
.newestComment_green h2 { border-left:1px solid #ffffff; border-right:1px solid #ffffff; padding:7px 0 0 12px; height:21px; _height:20px; font-size:1em; color:#54564b; font-family:Tahoma;}
.newestComment_green .commentList { padding:1.2em; overflow:hidden;}
.newestComment_green .commentList li { display:block; color:#a4a4a4; white-space:nowrap; overflow:hidden; list-style:none; width:100%;}
.newestComment_green .commentList li a { color:#a4a4a4; line-height:1.5em; text-decoration:none;}

View file

@ -1,6 +1,5 @@
.newestComment { position:relative; border:1px solid #e0e1db; background:url(../images/normal/bgBoxTypeB.gif) repeat-x left top; margin-bottom:.7em; }
.newestComment h2 { position:relative; border-left:1px solid #ffffff; border-right:1px solid #ffffff; padding:7px 0 0 12px; height:21px; _height:20px; font-size:1em; color:#54564b; font-family:Tahoma;}
/*:first-child+html .boxTypeB h2 { height:20px;} */
.newestComment .commentList { padding:1.2em; overflow:hidden;}
.newestComment .commentList li { display:block; color:#a4a4a4; margin-right:.1em; white-space:nowrap; overflow:hidden; list-style:none;}
.newestComment .commentList li a { color:#a4a4a4; line-height:1.5em; text-decoration:none;}
.newestComment_normal { border:1px solid #e0e1db; background:url(../images/normal/bgBoxTypeB.gif) repeat-x left top; margin-bottom:.7em; }
.newestComment_normal h2 { border-left:1px solid #ffffff; border-right:1px solid #ffffff; padding:7px 0 0 12px; height:21px; _height:20px; font-size:1em; color:#54564b; font-family:Tahoma;}
.newestComment_normal ul.commentList { padding:1.2em; overflow:hidden;}
.newestComment_normal ul.commentList li { display:block; color:#a4a4a4; white-space:nowrap; overflow:hidden; list-style:none; width:100%;}
.newestComment_normal ul.commentList li a { color:#a4a4a4; line-height:1.5em; text-decoration:none;}

View file

@ -1,6 +1,5 @@
.newestComment { position:relative; border:1px solid #e0e1db; background:url(../images/purple/bgBoxTypeB.gif) repeat-x left top; margin-bottom:.7em; }
.newestComment h2 { position:relative; border-left:1px solid #ffffff; border-right:1px solid #ffffff; padding:7px 0 0 12px; height:21px; _height:20px; font-size:1em; color:#54564b; font-family:Tahoma;}
/*:first-child+html .boxTypeB h2 { height:20px;} */
.newestComment .commentList { padding:1.2em; overflow:hidden;}
.newestComment .commentList li { display:block; color:#a4a4a4; margin-right:.1em; white-space:nowrap; overflow:hidden; list-style:none; }
.newestComment .commentList li a { color:#a4a4a4; line-height:1.5em; text-decoration:none;}
.newestComment_purple { border:1px solid #e0e1db; background:url(../images/purple/bgBoxTypeB.gif) repeat-x left top; margin-bottom:.7em; }
.newestComment_purple h2 { border-left:1px solid #ffffff; border-right:1px solid #ffffff; padding:7px 0 0 12px; height:21px; _height:20px; font-size:1em; color:#54564b; font-family:Tahoma;}
.newestComment_purple .commentList { padding:1.2em; overflow:hidden;}
.newestComment_purple .commentList li { display:block; color:#a4a4a4; white-space:nowrap; overflow:hidden; list-style:none; width:100%;}
.newestComment_purple .commentList li a { color:#a4a4a4; line-height:1.5em; text-decoration:none;}

View file

@ -1,6 +1,5 @@
.newestComment { position:relative; border:1px solid #e0e1db; background:url(../images/red/bgBoxTypeB.gif) repeat-x left top; margin-bottom:.7em; }
.newestComment h2 { position:relative; border-left:1px solid #ffffff; border-right:1px solid #ffffff; padding:7px 0 0 12px; height:21px; _height:20px; font-size:1em; color:#54564b; font-family:Tahoma;}
/*:first-child+html .boxTypeB h2 { height:20px;} */
.newestComment .commentList { padding:1.2em; overflow:hidden;}
.newestComment .commentList li { display:block; color:#a4a4a4; margin-right:.1em; white-space:nowrap; overflow:hidden; list-style:none; }
.newestComment .commentList li a { color:#a4a4a4; line-height:1.5em; text-decoration:none;}
.newestComment_red { border:1px solid #e0e1db; background:url(../images/red/bgBoxTypeB.gif) repeat-x left top; margin-bottom:.7em; }
.newestComment_red h2 { border-left:1px solid #ffffff; border-right:1px solid #ffffff; padding:7px 0 0 12px; height:21px; _height:20px; font-size:1em; color:#54564b; font-family:Tahoma;}
.newestComment_red .commentList { padding:1.2em; overflow:hidden;}
.newestComment_red .commentList li { display:block; color:#a4a4a4; white-space:nowrap; overflow:hidden; list-style:none; width:100%;}
.newestComment_red .commentList li a { color:#a4a4a4; line-height:1.5em; text-decoration:none;}

View file

@ -1,5 +1,4 @@
<!-- 설정된 컬러셋의 종류에 따라서 css파일을 import 합니다 -->
<!--@if($colorset=="cyan")-->
<!--%import("css/cyan.css")-->
<!--@elseif($colorset=="green")-->
@ -10,9 +9,10 @@
<!--%import("css/purple.css")-->
<!--@else-->
<!--%import("css/normal.css")-->
{@ $colorset = "normal" }
<!--@end-->
<div class="newestComment">
<div class="newestComment_{$colorset}">
<div class="header">
<!--@if($widget_info->title)-->
<h2>{$widget_info->title}</h2>