mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 19:21:40 +09:00
DroArc님의 플래시 시계 위젯 추가
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@3078 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
dcd67cf711
commit
15fad89c08
5 changed files with 108 additions and 0 deletions
42
widgets/DroArc_clock/DroArc_clock.class.php
Normal file
42
widgets/DroArc_clock/DroArc_clock.class.php
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
<?php
|
||||
/**
|
||||
* @class DroArc_clock
|
||||
* @author DroArc (ac7614@empas.com)
|
||||
* @brief 플래시 시계 출력
|
||||
* @version 1.0
|
||||
**/
|
||||
|
||||
class DroArc_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';
|
||||
|
||||
$clock_width = $args->clock_width;
|
||||
if(!$clock_width) $clock_width = 150;
|
||||
$clock_height = $args->clock_height;
|
||||
if(!$clock_height) $clock_height = 64;
|
||||
|
||||
$widget_info->clock_width = $clock_width;
|
||||
$widget_info->clock_height = $clock_height;
|
||||
|
||||
$widget_info->src = sprintf("%s%s/%s/clock.swf", Context::getRequestUri(), $tpl_path, $colorset);
|
||||
|
||||
Context::set('widget_info', $widget_info);
|
||||
|
||||
// 템플릿 컴파일
|
||||
$oTemplate = &TemplateHandler::getInstance();
|
||||
return $oTemplate->compile($tpl_path, $tpl_file);
|
||||
}
|
||||
}
|
||||
?>
|
||||
41
widgets/DroArc_clock/conf/info.xml
Normal file
41
widgets/DroArc_clock/conf/info.xml
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<widget version="1.0">
|
||||
<title xml:lang="ko">플래시 디지털 시계</title>
|
||||
<title xml:lang="zh-CN">Flash数字时钟</title>
|
||||
<title xml:lang="jp">デジタル時計</title>
|
||||
<title xml:lang="en">Flash digital Clock</title>
|
||||
<author email_address="ac7614@empas.com" link="http://widz.inven.co.kr/2nd_xe/DroArc" date="2007. 8. 9">
|
||||
<name xml:lang="ko">드로아크 </name>
|
||||
<name xml:lang="zh-CN">DroArc</name>
|
||||
<name xml:lang="jp">DroArc </name>
|
||||
<name xml:lang="en">DroArc</name>
|
||||
<description xml:lang="ko">플래쉬로 된 디지털 시계를 출력합니다.</description>
|
||||
<description xml:lang="zh-CN">显示Flash数字时钟。</description>
|
||||
<description xml:lang="jp">フラッシュのデジタル時計を表示します。</description>
|
||||
<description xml:lang="en">It will display the digital clock created with 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">가로길이를 지정하실 수 있습니다. (기본 150px)</description>
|
||||
<description xml:lang="zh-CN">可以设置宽度大小。 (默认为 150px)</description>
|
||||
<description xml:lang="jp">横幅のサイズを指定することができます(デフォルト150px)。</description>
|
||||
<description xml:lang="en">It will be able to set the width. (default is 150px)</description>
|
||||
</var>
|
||||
<var id="clock_height">
|
||||
<name xml:lang="ko">세로길이</name>
|
||||
<name xml:lang="zh-CN">高度</name>
|
||||
<name xml:lang="jp">縦幅</name>
|
||||
<name xml:lang="en">Height</name>
|
||||
<type>text</type>
|
||||
<description xml:lang="ko">세로길이를 지정하실 수 있습니다. (기본 64px)</description>
|
||||
<description xml:lang="zh-CN">可以设置高度大小。(默认为 64px)</description>
|
||||
<description xml:lang="jp">縦幅のサイズを指定することができます(デフォルト64px)。</description>
|
||||
<description xml:lang="en">It will be able to set the width. (default is 64px)</description>
|
||||
</var>
|
||||
</extra_vars>
|
||||
</widget>
|
||||
3
widgets/DroArc_clock/skins/default/clock.html
Normal file
3
widgets/DroArc_clock/skins/default/clock.html
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
<script type="text/javascript">
|
||||
displayMultimedia("{$widget_info->src}", {$widget_info->clock_width}, {$widget_info->clock_height});
|
||||
</script>
|
||||
BIN
widgets/DroArc_clock/skins/default/normal/clock.swf
Normal file
BIN
widgets/DroArc_clock/skins/default/normal/clock.swf
Normal file
Binary file not shown.
22
widgets/DroArc_clock/skins/default/skin.xml
Normal file
22
widgets/DroArc_clock/skins/default/skin.xml
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<skin>
|
||||
<title xml:lang="ko">플래시 디지털 시계</title>
|
||||
<title xml:lang="zh-CN">Flash数字时钟</title>
|
||||
<title xml:lang="en">Flash Digital Clock</title>
|
||||
<maker email_address="ac7614@empas.com" link="http://widz.inven.co.kr" date="2007. 7. 26">
|
||||
<name xml:lang="ko">드로아크</name>
|
||||
<name xml:lang="zh-CN">DroArc</name>
|
||||
<name xml:lang="en">DroArc</name>
|
||||
<description xml:lang="ko">플래시 디지털 시계를 출력합니다. 자체적인 오른쪽 마우스 메뉴를 사용가능합니다.</description>
|
||||
<description xml:lang="zh-CN">显示Flash数字时钟。</description>
|
||||
<description xml:lang="en">It displays flash digital clock.</description>
|
||||
</maker>
|
||||
<colorset>
|
||||
<color name="normal">
|
||||
<title xml:lang="ko">일반</title>
|
||||
<title xml:lang="zh-CN">普通</title>
|
||||
<title xml:lang="jp">いっぱん</title>
|
||||
<title xml:lang="en">Normal</title>
|
||||
</color>
|
||||
</colorset>
|
||||
</skin>
|
||||
Loading…
Add table
Add a link
Reference in a new issue