git-svn-id: http://xe-core.googlecode.com/svn/sandbox@2328 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
zero 2007-08-12 04:00:09 +00:00
parent 8326004cb2
commit 2a055c86c2
7 changed files with 0 additions and 163 deletions

View file

@ -1,80 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<widget version="0.1">
<title xml:lang="ko">플래시 시계</title>
<title xml:lang="zh-CN">时钟</title>
<title xml:lang="jp">フラッシュ時計</title>
<title xml:lang="en">Flash Clock</title>
<author email_address="styx@bystyx.com" link="http://www.bystyx.com" date="2007. 2. 28">
<name xml:lang="ko">스틱스 </name>
<name xml:lang="zh-CN">styx </name>
<name xml:lang="jp">Styx</name>
<name xml:lang="en">styx </name>
<description xml:lang="ko">플래쉬로 된 시계를 출력합니다.</description>
<description xml:lang="zh-CN">显示Flash时钟的控件。</description>
<description xml:lang="jp">フラッシュ時計を出力します。</description>
<description xml:lang="en">This widget displays a digital clock made of flash.</description>
</author>
<extra_vars>
<var id="clock_width">
<name xml:lang="ko">가로길이</name>
<name xml:lang="zh-CN">宽度</name>
<name xml:lang="jp">横幅サイズ</name>
<name xml:lang="en">Width</name>
<type>text</type>
<description xml:lang="ko">가로길이를 지정하실 수 있습니다. (기본 200px)</description>
<description xml:lang="zh-CN">可以设置宽度。 (默认为 200px)</description>
<description xml:lang="jp">横幅サイズを指定することができます。デフォルト200px</description>
<description xml:lang="en">It will be able to set the width. (default is 200px)</description>
</var>
<var id="theme">
<name xml:lang="ko">테마</name>
<name xml:lang="zh-CN">风格</name>
<name xml:lang="jp">テーマ</name>
<name xml:lang="en">Theme</name>
<type>select</type>
<description xml:lang="ko">흰색/검은색 배경색에 따라 조절하시면 됩니다.</description>
<description xml:lang="zh-CN">可以根据设置黑/白背景色来进行调解。</description>
<description xml:lang="jp">白/黒の背景で調節します。</description>
<description xml:lang="en">You may select a theme according to white/black background color.</description>
<options>
<name xml:lang="ko">흰색 배경</name>
<name xml:lang="zh-CN">白色</name>
<name xml:lang="jp">白の背景</name>
<name xml:lang="en">White Background</name>
<value>white</value>
</options>
<options>
<name xml:lang="ko">검은색 배경</name>
<name xml:lang="zh-CN">黑色</name>
<name xml:lang="jp">黒の背景</name>
<name xml:lang="en">Black Background</name>
<value>black</value>
</options>
</var>
<var id="day">
<name xml:lang="ko">일자 표시</name>
<name xml:lang="zh-CN">显示日期</name>
<name xml:lang="jp">年月日表示</name>
<name xml:lang="en">Date Indication</name>
<type>select</type>
<description xml:lang="ko">시계내에 일자를 표시하는 기능을 끄거나 켜실 수 있습니다.</description>
<description xml:lang="zh-CN">可以开启/关闭时钟内日期的显示。</description>
<description xml:lang="jp">時計内に年月日を表示させる機能がオン・オフできます。</description>
<description xml:lang="en">You can set on or off the function of the date indication in the clock</description>
<options>
<name xml:lang="ko">나타냄</name>
<name xml:lang="zh-CN">显示</name>
<name xml:lang="jp">表示</name>
<name xml:lang="en">Show</name>
<value></value>
</options>
<options>
<name xml:lang="ko">숨김</name>
<name xml:lang="zh-CN">关闭</name>
<name xml:lang="jp">隠す</name>
<name xml:lang="en">Hide</name>
<value>false</value>
</options>
</var>
</extra_vars>
</widget>

View file

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

View file

@ -1,37 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<skin>
<title xml:lang="ko">플래시 시계</title>
<title xml:lang="jp">フラッシュ時計</title>
<title xml:lang="zh-CN">Flash时钟</title>
<title xml:lang="en">Flash Clock</title>
<maker email_address="styx@bystyx.com" link="http://www.bystyx.com" date="2007. 2. 28">
<name xml:lang="ko">styx</name>
<name xml:lang="jp">Styx</name>
<name xml:lang="zh-CN">styx</name>
<name xml:lang="en">styx</name>
<description xml:lang="ko">플래시 시계를 출력합니다.</description>
<description xml:lang="jp">フラッシュ時計を表示します。</description>
<description xml:lang="zh-CN">显示Flash时钟。</description>
<description xml:lang="en">It displays flash clock.</description>
</maker>
<colorset>
<color name="moto">
<title xml:lang="ko">moto</title>
<title xml:lang="jp">MOTO</title>
<title xml:lang="zh-CN">moto</title>
<title xml:lang="en">moto</title>
</color>
<color name="vis">
<title xml:lang="ko">vis</title>
<title xml:lang="jp">VIS</title>
<title xml:lang="zh-CN">vis</title>
<title xml:lang="en">vis</title>
</color>
<color name="red">
<title xml:lang="ko">red</title>
<title xml:lang="jp">RED</title>
<title xml:lang="zh-CN">red</title>
<title xml:lang="en">red</title>
</color>
</colorset>
</skin>

View file

@ -1,43 +0,0 @@
<?php
/**
* @class styx_clock
* @author styx (styx@bystyx.com)
* @brief 플래시 시계 출력
* @version 0.1
**/
class styx_clock extends WidgetHandler {
/**
* @brief 위젯의 실행 부분
*
* ./widgets/위젯/conf/info.xml 선언한 extra_vars를 args로 받는다
* 결과를 만든후 print가 아니라 return 해주어야 한다
**/
function proc($args) {
// 템플릿의 스킨 경로를 지정 (skin, colorset에 따른 값을 설정)
$tpl_path = sprintf('%sskins/%s', $this->widget_path, $args->skin);
$colorset = $args->colorset;
// 템플릿 파일을 지정
$tpl_file = 'clock';
$theme = $args->theme;
if($theme != "white") $theme = "black";
$day = $args->day;
if($day != "false") $day = "true";
$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);
// 템플릿 컴파일
$oTemplate = &TemplateHandler::getInstance();
return $oTemplate->compile($tpl_path, $tpl_file);
}
}
?>