mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-29 08:09:58 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@1663 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
8390ec57e2
commit
c814771f0f
69 changed files with 0 additions and 0 deletions
41
widgets/styx_clock/conf/info.xml
Normal file
41
widgets/styx_clock/conf/info.xml
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<widget version="0.1">
|
||||
<title xml:lang="ko">플래시 시계</title>
|
||||
<author email_address="styx@bystyx.com" link="http://www.bystyx.com" date="2007. 2. 28">
|
||||
<name xml:lang="ko">스틱스 </name>
|
||||
<description xml:lang="ko">플래쉬로 된 시계를 출력합니다.</description>
|
||||
</author>
|
||||
<extra_vars>
|
||||
<var id="width">
|
||||
<name xml:lang="ko">가로길이</name>
|
||||
<type>text</type>
|
||||
<description xml:lang="ko">가로길이를 지정하실 수 있습니다. (기본 200)</description>
|
||||
</var>
|
||||
<var id="theme">
|
||||
<name xml:lang="ko">테마</name>
|
||||
<type>select</type>
|
||||
<description xml:lang="ko">흰색/검은색 배경색에 따라 조절하시면 됩니다.</description>
|
||||
<options>
|
||||
<name xml:lang="ko">흰색 배경</name>
|
||||
<value>white</value>
|
||||
</options>
|
||||
<options>
|
||||
<name xml:lang="ko">검은색 배경</name>
|
||||
<value>black</value>
|
||||
</options>
|
||||
</var>
|
||||
<var id="day">
|
||||
<name xml:lang="ko">일자 표시</name>
|
||||
<type>select</type>
|
||||
<description xml:lang="ko">시계내에 일자를 표시하는 기능을 끄거나 캬실 수 있습니다.</description>
|
||||
<options>
|
||||
<name xml:lang="ko">나타냄</name>
|
||||
<value></value>
|
||||
</options>
|
||||
<options>
|
||||
<name xml:lang="ko">숨김</name>
|
||||
<value>false</value>
|
||||
</options>
|
||||
</var>
|
||||
</extra_vars>
|
||||
</widget>
|
||||
3
widgets/styx_clock/skins/default/clock.html
Normal file
3
widgets/styx_clock/skins/default/clock.html
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
<script type="text/javascript">
|
||||
displayMultimedia("{$widget_info->src}", {$widget_info->width}, {$widget_info->width});
|
||||
</script>
|
||||
BIN
widgets/styx_clock/skins/default/moto/clock.swf
Normal file
BIN
widgets/styx_clock/skins/default/moto/clock.swf
Normal file
Binary file not shown.
16
widgets/styx_clock/skins/default/skin.xml
Normal file
16
widgets/styx_clock/skins/default/skin.xml
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<skin>
|
||||
<title xml:lang="ko">플래시 시계</title>
|
||||
<maker email_address="styx@bystyx.com" link="http://www.bystyx.com" date="2007. 2. 28">
|
||||
<name xml:lang="ko">styx</name>
|
||||
<description xml:lang="ko">플래시 시계를 출력합니다.</description>
|
||||
</maker>
|
||||
<colorset>
|
||||
<color name="moto">
|
||||
<title xml:lang="ko">moto</title>
|
||||
</color>
|
||||
<color name="vis">
|
||||
<title xml:lang="ko">vis</title>
|
||||
</color>
|
||||
</colorset>
|
||||
</skin>
|
||||
BIN
widgets/styx_clock/skins/default/vis/clock.swf
Executable file
BIN
widgets/styx_clock/skins/default/vis/clock.swf
Executable file
Binary file not shown.
44
widgets/styx_clock/styx_clock.class.php
Normal file
44
widgets/styx_clock/styx_clock.class.php
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
<?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";
|
||||
|
||||
$width = $args->width;
|
||||
if(!$width) $width = 200;
|
||||
$widget_info->width = $width;
|
||||
|
||||
$widget_info->src = sprintf("%s%s/%s/clock.swf?theme=%s&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);
|
||||
}
|
||||
}
|
||||
?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue