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

This commit is contained in:
zero 2007-06-22 08:54:34 +00:00
parent c759503063
commit f4953b1b92
15 changed files with 110 additions and 79 deletions

View file

@ -6,7 +6,7 @@
<description xml:lang="ko">플래쉬로 된 시계를 출력합니다.</description>
</author>
<extra_vars>
<var id="width">
<var id="clock_width">
<name xml:lang="ko">가로길이</name>
<type>text</type>
<description xml:lang="ko">가로길이를 지정하실 수 있습니다. (기본 200)</description>

View file

@ -1,3 +1,3 @@
<script type="text/javascript">
displayMultimedia("{$widget_info->src}", {$widget_info->width}, {$widget_info->width});
displayMultimedia("{$widget_info->src}", {$widget_info->clock_width}, {$widget_info->clock_width});
</script>

View file

@ -28,10 +28,9 @@
$day = $args->day;
if($day != "false") $day = "true";
$width = $args->width;
if(!$width) $width = 200;
$widget_info->width = $width;
$clock_width = $args->clock_width;
if(!$clock_width) $clock_width = 200;
$widget_info->clock_width = $clock_width;
$widget_info->src = sprintf("%s%s/%s/clock.swf?theme=%s&amp;day=%s", Context::getRequestUri(), $tpl_path, $colorset, $theme, $day);
Context::set('widget_info', $widget_info);