mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-24 13:49:56 +09:00
언어 선택 위젯 추가
git-svn-id: http://xe-core.googlecode.com/svn/trunk@1936 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
a93baaac40
commit
aa9b51fcac
4 changed files with 59 additions and 0 deletions
9
widgets/language_select/conf/info.xml
Normal file
9
widgets/language_select/conf/info.xml
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<widget version="0.1">
|
||||
<title xml:lang="ko">언어 선택</title>
|
||||
<author email_address="zero@zeroboard.com" link="http://www.zeroboard.com" date="2007. 2. 28">
|
||||
<name xml:lang="ko">zero</name>
|
||||
<description xml:lang="ko">사용자의 접속언어를 변경할 수 있는 select폼을 출력합니다.</description>
|
||||
</author>
|
||||
<extra_vars />
|
||||
</widget>
|
||||
27
widgets/language_select/language_select.class.php
Normal file
27
widgets/language_select/language_select.class.php
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
<?php
|
||||
/**
|
||||
* @class styx_clock
|
||||
* @author styx (styx@bystyx.com)
|
||||
* @brief 플래시 시계 출력
|
||||
* @version 0.1
|
||||
**/
|
||||
|
||||
class language_select 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);
|
||||
$tpl_file = 'language_select';
|
||||
|
||||
// 템플릿 컴파일
|
||||
$oTemplate = &TemplateHandler::getInstance();
|
||||
return $oTemplate->compile($tpl_path, $tpl_file);
|
||||
}
|
||||
}
|
||||
?>
|
||||
10
widgets/language_select/skins/default/language_select.html
Normal file
10
widgets/language_select/skins/default/language_select.html
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
<div class="tCenter">
|
||||
<select name="lang_type" onchange="doChangeLangType(this)">
|
||||
<option value="{$lang_type}">{$lang_type}</option>
|
||||
<!--@foreach($lang_supported as $val)-->
|
||||
<!--@if($val != $lang_type)-->
|
||||
<option value="{$val}">{$val}</option>
|
||||
<!--@end-->
|
||||
<!--@end-->
|
||||
</select>
|
||||
</div>
|
||||
13
widgets/language_select/skins/default/skin.xml
Normal file
13
widgets/language_select/skins/default/skin.xml
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<skin>
|
||||
<title xml:lang="ko">언어 출력</title>
|
||||
<maker email_address="zero@zeroboard.com" link="http://www.zeroboard.com" date="2007. 2. 28">
|
||||
<name xml:lang="ko">zero</name>
|
||||
<description xml:lang="ko">스킨 기능이 없습니다</description>
|
||||
</maker>
|
||||
<colorset>
|
||||
<color name="normal">
|
||||
<title xml:lang="ko">기본</title>
|
||||
</color>
|
||||
</colorset>
|
||||
</skin>
|
||||
Loading…
Add table
Add a link
Reference in a new issue