mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-10 05:52:13 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@1662 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
15801d738a
commit
8390ec57e2
75 changed files with 484 additions and 484 deletions
|
|
@ -6,16 +6,16 @@
|
|||
* @version 0.1
|
||||
**/
|
||||
|
||||
class archive_list extends PluginHandler {
|
||||
class archive_list extends WidgetHandler {
|
||||
|
||||
/**
|
||||
* @brief 플러그인의 실행 부분
|
||||
* @brief 위젯의 실행 부분
|
||||
*
|
||||
* ./plugins/플러그인/conf/info.xml 에 선언한 extra_vars를 args로 받는다
|
||||
* ./widgets/위젯/conf/info.xml 에 선언한 extra_vars를 args로 받는다
|
||||
* 결과를 만든후 print가 아니라 return 해주어야 한다
|
||||
**/
|
||||
function proc($args) {
|
||||
// 플러그인 자체적으로 설정한 변수들을 체크
|
||||
// 위젯 자체적으로 설정한 변수들을 체크
|
||||
$title = $args->title;
|
||||
$mid_list = explode(",",$args->mid_list);
|
||||
|
||||
|
|
@ -27,17 +27,17 @@
|
|||
$output = $oDocumentModel->getMonthlyArchivedList($obj);
|
||||
|
||||
// 템플릿 파일에서 사용할 변수들을 세팅
|
||||
if(count($mid_list)==1) $plugin_info->module_name = $mid_list[0];
|
||||
if(count($mid_list)==1) $widget_info->module_name = $mid_list[0];
|
||||
|
||||
$plugin_info->title = $title;
|
||||
$plugin_info->archive_list = $output->data;
|
||||
$widget_info->title = $title;
|
||||
$widget_info->archive_list = $output->data;
|
||||
|
||||
preg_match_all('/(width|height)([^[:digit:]]+)([0-9]+)/i',$args->style,$matches);
|
||||
$plugin_info->width = trim($matches[3][0]);
|
||||
Context::set('plugin_info', $plugin_info);
|
||||
$widget_info->width = trim($matches[3][0]);
|
||||
Context::set('widget_info', $widget_info);
|
||||
|
||||
// 템플릿의 스킨 경로를 지정 (skin, colorset에 따른 값을 설정)
|
||||
$tpl_path = sprintf('%sskins/%s', $this->plugin_path, $args->skin);
|
||||
$tpl_path = sprintf('%sskins/%s', $this->widget_path, $args->skin);
|
||||
Context::set('colorset', $args->colorset);
|
||||
|
||||
// 템플릿 파일을 지정
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<plugin version="0.1">
|
||||
<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">제로</name>
|
||||
|
|
@ -18,4 +18,4 @@
|
|||
<description xml:lang="ko">선택하신 모듈에 등록된 글을 대상으로 합니다.</description>
|
||||
</var>
|
||||
</extra_vars>
|
||||
</plugin>
|
||||
</widget>
|
||||
|
|
|
|||
|
|
@ -7,13 +7,13 @@
|
|||
<div class="archive_list_{$colorset}">
|
||||
<div class="archive_list_box">
|
||||
|
||||
<!--@if($plugin_info->title)-->
|
||||
<!--@if($widget_info->title)-->
|
||||
<div class="title_box">
|
||||
<div class="title">{$plugin_info->title}</div>
|
||||
<div class="title">{$widget_info->title}</div>
|
||||
</div>
|
||||
<!--@end-->
|
||||
<div class="archive_box">
|
||||
<!--@foreach($plugin_info->archive_list as $val)-->
|
||||
<!--@foreach($widget_info->archive_list as $val)-->
|
||||
<div class="archive">
|
||||
<!--@if($layout_info->mid)-->
|
||||
<a href="{getUrl('','mid',$layout_info->mid,'search_target','regdate','search_keyword',$val->month)}">{zdate($val->month,'Y. m')} ({$val->count})</a>
|
||||
|
|
|
|||
|
|
@ -6,16 +6,16 @@
|
|||
* @version 0.1
|
||||
**/
|
||||
|
||||
class calendar extends PluginHandler {
|
||||
class calendar extends WidgetHandler {
|
||||
|
||||
/**
|
||||
* @brief 플러그인의 실행 부분
|
||||
* @brief 위젯의 실행 부분
|
||||
*
|
||||
* ./plugins/플러그인/conf/info.xml 에 선언한 extra_vars를 args로 받는다
|
||||
* ./widgets/위젯/conf/info.xml 에 선언한 extra_vars를 args로 받는다
|
||||
* 결과를 만든후 print가 아니라 return 해주어야 한다
|
||||
**/
|
||||
function proc($args) {
|
||||
// 플러그인 자체적으로 설정한 변수들을 체크
|
||||
// 위젯 자체적으로 설정한 변수들을 체크
|
||||
$title = $args->title;
|
||||
$mid_list = explode(",",$args->mid_list);
|
||||
|
||||
|
|
@ -33,27 +33,27 @@
|
|||
$output = $oDocumentModel->getDailyArchivedList($obj);
|
||||
|
||||
// 템플릿 파일에서 사용할 변수들을 세팅
|
||||
$plugin_info->cur_date = $obj->regdate;
|
||||
$plugin_info->today_str = sprintf('%4d%s %2d%s',zdate($obj->regdate, 'Y'), Context::getLang('unit_year'), zdate($obj->regdate,'m'), Context::getLang('unit_month'));
|
||||
$plugin_info->last_day = date('t', ztime($obj->regdate));
|
||||
$plugin_info->start_week= date('w', ztime($obj->regdate));
|
||||
$widget_info->cur_date = $obj->regdate;
|
||||
$widget_info->today_str = sprintf('%4d%s %2d%s',zdate($obj->regdate, 'Y'), Context::getLang('unit_year'), zdate($obj->regdate,'m'), Context::getLang('unit_month'));
|
||||
$widget_info->last_day = date('t', ztime($obj->regdate));
|
||||
$widget_info->start_week= date('w', ztime($obj->regdate));
|
||||
|
||||
$plugin_info->prev_month = date('Ym', mktime(1,0,0,zdate($obj->regdate,'m'),1,zdate($obj->regdate,'Y'))-60*60*24);
|
||||
$plugin_info->next_month = date('Ym', mktime(1,0,0,zdate($obj->regdate,'m'),$plugin_info->last_day,zdate($obj->regdate,'Y'))+60*60*24);
|
||||
$widget_info->prev_month = date('Ym', mktime(1,0,0,zdate($obj->regdate,'m'),1,zdate($obj->regdate,'Y'))-60*60*24);
|
||||
$widget_info->next_month = date('Ym', mktime(1,0,0,zdate($obj->regdate,'m'),$widget_info->last_day,zdate($obj->regdate,'Y'))+60*60*24);
|
||||
|
||||
if(count($mid_list)==1) $plugin_info->module_name = $mid_list[0];
|
||||
$plugin_info->title = $title;
|
||||
if(count($mid_list)==1) $widget_info->module_name = $mid_list[0];
|
||||
$widget_info->title = $title;
|
||||
|
||||
if(count($output->data)) {
|
||||
foreach($output->data as $key => $val) $plugin_info->calendar[$val->month] = $val->count;
|
||||
foreach($output->data as $key => $val) $widget_info->calendar[$val->month] = $val->count;
|
||||
}
|
||||
|
||||
preg_match_all('/(width|height)([^[:digit:]]+)([0-9]+)/i',$args->style,$matches);
|
||||
$plugin_info->width = trim($matches[3][0]);
|
||||
Context::set('plugin_info', $plugin_info);
|
||||
$widget_info->width = trim($matches[3][0]);
|
||||
Context::set('widget_info', $widget_info);
|
||||
|
||||
// 템플릿의 스킨 경로를 지정 (skin, colorset에 따른 값을 설정)
|
||||
$tpl_path = sprintf('%sskins/%s', $this->plugin_path, $args->skin);
|
||||
$tpl_path = sprintf('%sskins/%s', $this->widget_path, $args->skin);
|
||||
Context::set('colorset', $args->colorset);
|
||||
|
||||
// 템플릿 파일을 지정
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<plugin version="0.1">
|
||||
<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">제로</name>
|
||||
|
|
@ -12,4 +12,4 @@
|
|||
<description xml:lang="ko">선택하신 모듈에 등록된 글을 대상으로 합니다.</description>
|
||||
</var>
|
||||
</extra_vars>
|
||||
</plugin>
|
||||
</widget>
|
||||
|
|
|
|||
|
|
@ -8,28 +8,28 @@
|
|||
<div class="calendar_box">
|
||||
|
||||
<div class="title_box">
|
||||
<div class="title">{$plugin_info->today_str}</div>
|
||||
<div class="title">{$widget_info->today_str}</div>
|
||||
<div class="move_month">
|
||||
<a href="{getUrl('search_target','regdate','search_keyword',$plugin_info->prev_month)}">prev</a> |
|
||||
<a href="{getUrl('search_target','regdate','search_keyword',$plugin_info->next_month)}">next</a>
|
||||
<a href="{getUrl('search_target','regdate','search_keyword',$widget_info->prev_month)}">prev</a> |
|
||||
<a href="{getUrl('search_target','regdate','search_keyword',$widget_info->next_month)}">next</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{@ $day = ''}
|
||||
<table border="0" cellspacing="0" cellpadding="0" width="99%" style="table-layout:fixed">
|
||||
<!--@for($i=0;$i<6;$i++)-->
|
||||
<!--@if($day < $plugin_info->last_day)-->
|
||||
<!--@if($day < $widget_info->last_day)-->
|
||||
<tr>
|
||||
<!--@for($j=0;$j<7;$j++)-->
|
||||
|
||||
{@ $num = $i*7 + $j}
|
||||
<!--@if(!$started && $num >= $plugin_info->start_week)-->
|
||||
<!--@if(!$started && $num >= $widget_info->start_week)-->
|
||||
{@ $started = true}
|
||||
{@ $day = 1}
|
||||
{@ $cur_date = $plugin_info->cur_date.sprintf('%02d',$day) }
|
||||
{@ $cur_date = $widget_info->cur_date.sprintf('%02d',$day) }
|
||||
<!--@elseif($started)-->
|
||||
{@ $day++}
|
||||
{@ $cur_date = $plugin_info->cur_date.sprintf('%02d',$day) }
|
||||
{@ $cur_date = $widget_info->cur_date.sprintf('%02d',$day) }
|
||||
<!--@end-->
|
||||
|
||||
<!--@if($cur_date == date("Ymd"))-->
|
||||
|
|
@ -46,7 +46,7 @@
|
|||
{@ $cell_class_name = "week"}
|
||||
<!--@end-->
|
||||
|
||||
<!--@if($plugin_info->calendar[$cur_date])-->
|
||||
<!--@if($widget_info->calendar[$cur_date])-->
|
||||
{@ $item_class_name = "selected_item"}
|
||||
<!--@if($layout_info->mid)-->
|
||||
{@ $day_link = getUrl('','mid',$layout_info->mid,'search_target','regdate','search_keyword',$cur_date) }
|
||||
|
|
@ -61,7 +61,7 @@
|
|||
<td>
|
||||
<div class="item_box {$today_class}">
|
||||
<div class="{$cell_class_name} {$item_class_name}">
|
||||
<!--@if($day <= $plugin_info->last_day)-->
|
||||
<!--@if($day <= $widget_info->last_day)-->
|
||||
<!--@if($day_link)-->
|
||||
<a href="{$day_link}">{$day}</a>
|
||||
<!--@else-->
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
<title xml:lang="ko">달력 및 글 현황 표시</title>
|
||||
<maker email_address="zero@zeroboard.com" link="http://www.zeroboard.com" date="2007. 2. 28">
|
||||
<name xml:lang="ko">제로</name>
|
||||
<description xml:lang="ko">calendar플러그인의 블로그에 어울리는 기본 스킨입니다.</description>
|
||||
<description xml:lang="ko">calendar위젯의 블로그에 어울리는 기본 스킨입니다.</description>
|
||||
</maker>
|
||||
<colorset>
|
||||
<color name="normal">
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<plugin version="0.1">
|
||||
<title xml:lang="ko">기본 카운터 플러그인</title>
|
||||
<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">제로</name>
|
||||
<description xml:lang="ko">
|
||||
|
|
@ -9,4 +9,4 @@
|
|||
</description>
|
||||
</author>
|
||||
<extra_vars />
|
||||
</plugin>
|
||||
</widget>
|
||||
|
|
|
|||
|
|
@ -6,11 +6,11 @@
|
|||
* @brief counter 모듈의 데이터를 이용하여 counter 현황을 출력
|
||||
**/
|
||||
|
||||
class counter_status extends PluginHandler {
|
||||
class counter_status extends WidgetHandler {
|
||||
|
||||
/**
|
||||
* @brief 플러그인의 실행 부분
|
||||
* ./plugins/플러그인/conf/info.xml에 선언한 extra_vars를 args로 받는다
|
||||
* @brief 위젯의 실행 부분
|
||||
* ./widgets/위젯/conf/info.xml에 선언한 extra_vars를 args로 받는다
|
||||
* 결과를 만든후 print가 아니라 return 해주어야 한다
|
||||
**/
|
||||
function proc($args) {
|
||||
|
|
@ -28,7 +28,7 @@
|
|||
Context::set('style', $args->style);
|
||||
|
||||
// 템플릿의 스킨 경로를 지정 (skin, colorset에 따른 값을 설정)
|
||||
$tpl_path = sprintf('%sskins/%s', $this->plugin_path, $args->skin);
|
||||
$tpl_path = sprintf('%sskins/%s', $this->widget_path, $args->skin);
|
||||
Context::set('colorset', $args->colorset);
|
||||
|
||||
// 템플릿 파일을 지정
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
<!--%import("normal/style.css")-->
|
||||
<!--@end-->
|
||||
|
||||
<div class="counter_plugin">
|
||||
<div class="counter_widget">
|
||||
|
||||
<ul>
|
||||
<!--@if($total_counter)-->
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
.counter_plugin {
|
||||
.counter_widget {
|
||||
border:3px solid #DDDDDD;
|
||||
padding:6px;
|
||||
margin-bottom:10px;
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<plugin version="0.1">
|
||||
<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">제로</name>
|
||||
<description xml:lang="ko">로그인 폼이나 로그인 정보를 출력합니다</description>
|
||||
</author>
|
||||
<extra_vars />
|
||||
</plugin>
|
||||
</widget>
|
||||
|
|
|
|||
|
|
@ -3,16 +3,16 @@
|
|||
* @class login_info
|
||||
* @author zero (zero@nzeo.com)
|
||||
* @version 0.1
|
||||
* @brief 로그인 폼을 출력하는 플러그인
|
||||
* @brief 로그인 폼을 출력하는 위젯
|
||||
*
|
||||
* $logged_info를 이용하며 이는 미리 설정되어 있음
|
||||
**/
|
||||
|
||||
class login_info extends PluginHandler {
|
||||
class login_info extends WidgetHandler {
|
||||
|
||||
/**
|
||||
* @brief 플러그인의 실행 부분
|
||||
* ./plugins/플러그인/conf/info.xml에 선언한 extra_vars를 args로 받는다
|
||||
* @brief 위젯의 실행 부분
|
||||
* ./widgets/위젯/conf/info.xml에 선언한 extra_vars를 args로 받는다
|
||||
* 결과를 만든후 print가 아니라 return 해주어야 한다
|
||||
**/
|
||||
function proc($args) {
|
||||
|
|
@ -20,7 +20,7 @@
|
|||
Context::set('style', $args->style);
|
||||
|
||||
// 템플릿의 스킨 경로를 지정 (skin, colorset에 따른 값을 설정)
|
||||
$tpl_path = sprintf('%sskins/%s', $this->plugin_path, $args->skin);
|
||||
$tpl_path = sprintf('%sskins/%s', $this->widget_path, $args->skin);
|
||||
Context::set('colorset', $args->colorset);
|
||||
|
||||
// 템플릿 파일을 지정
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
<filter name="plugin_login" module="member" act="procMemberLogin">
|
||||
<filter name="widget_login" module="member" act="procMemberLogin">
|
||||
<form>
|
||||
<node target="user_id" required="true" filter="user_id"/>
|
||||
<node target="password" required="true" />
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
<filter name="plugin_logout" module="member" act="procMemberLogout">
|
||||
<filter name="widget_logout" module="member" act="procMemberLogout">
|
||||
<form />
|
||||
<response>
|
||||
<tag name="error" />
|
||||
|
|
|
|||
|
|
@ -7,8 +7,8 @@
|
|||
<!--%import("./filter/openid_login.xml")-->
|
||||
<!--%import("./js/login.js")-->
|
||||
|
||||
<div class="login_plugin">
|
||||
<form action="./" method="get" onsubmit="return procFilter(this, plugin_login)" id="fo_login_plugin">
|
||||
<div class="login_widget">
|
||||
<form action="./" method="get" onsubmit="return procFilter(this, widget_login)" id="fo_login_widget">
|
||||
<div class="login_box">
|
||||
<div class="header">{$lang->user_id}</div>
|
||||
<div class="body">
|
||||
|
|
@ -31,7 +31,7 @@
|
|||
</form>
|
||||
|
||||
<script type="text/javascript">
|
||||
xAddEventListener(window, "load", function(){ doFocusUserId("fo_login_plugin"); });
|
||||
xAddEventListener(window, "load", function(){ doFocusUserId("fo_login_widget"); });
|
||||
</script>
|
||||
|
||||
<!-- OpenID -->
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
<!--@end-->
|
||||
|
||||
<!--%import("./filter/logout.xml")-->
|
||||
<div class="login_plugin">
|
||||
<div class="login_widget">
|
||||
|
||||
<!-- 닉네임 + 로그아웃 -->
|
||||
<div class="top_box">
|
||||
|
|
|
|||
|
|
@ -1,92 +1,92 @@
|
|||
.login_plugin {
|
||||
.login_widget {
|
||||
border:3px solid #DDDDDD;
|
||||
padding:6px;
|
||||
margin-bottom:10px;
|
||||
}
|
||||
|
||||
.login_plugin .top_box {
|
||||
.login_widget .top_box {
|
||||
height:22px;
|
||||
border-bottom:2px dotted #DDDDDD;
|
||||
overflow:hidden;
|
||||
margin-bottom:5px;
|
||||
}
|
||||
|
||||
.login_plugin .top_box .nick_name {
|
||||
.login_widget .top_box .nick_name {
|
||||
font-weight:bold;
|
||||
float:left;
|
||||
color:#555555;
|
||||
}
|
||||
|
||||
.login_plugin .top_box .logout {
|
||||
.login_widget .top_box .logout {
|
||||
float:right;
|
||||
}
|
||||
|
||||
.login_plugin .top_box .logout A {
|
||||
.login_widget .top_box .logout A {
|
||||
text-decoration:none;
|
||||
color:#737CF5;
|
||||
}
|
||||
|
||||
.login_plugin .top_box .logout A:hover {
|
||||
.login_widget .top_box .logout A:hover {
|
||||
font-weight:bold;
|
||||
letter-spacing:-1px;
|
||||
color:#151F9E;
|
||||
}
|
||||
|
||||
|
||||
.login_plugin .info_box {
|
||||
.login_widget .info_box {
|
||||
clear:both;
|
||||
color:#555555;
|
||||
}
|
||||
|
||||
.login_plugin .info_box A:link {
|
||||
.login_widget .info_box A:link {
|
||||
text-decoration:none;
|
||||
color:#555555;
|
||||
}
|
||||
|
||||
.login_plugin .info_box A:visited {
|
||||
.login_widget .info_box A:visited {
|
||||
text-decoration:none;
|
||||
color:#555555;
|
||||
}
|
||||
|
||||
.login_plugin .info_box A:hover {
|
||||
.login_widget .info_box A:hover {
|
||||
text-decoration:none;
|
||||
font-weight:bold;
|
||||
letter-spacing:-1px;
|
||||
color:#555555;
|
||||
}
|
||||
|
||||
.login_plugin .info_box div {
|
||||
.login_widget .info_box div {
|
||||
padding-left:15px;
|
||||
margin:0px 0px 4px 0px;
|
||||
}
|
||||
|
||||
.login_plugin .info_box .member_info {
|
||||
.login_widget .info_box .member_info {
|
||||
background:url("../images/icon_profile.gif") no-repeat left;
|
||||
float:left;
|
||||
width:90px;
|
||||
}
|
||||
|
||||
.login_plugin .info_box .friend_list {
|
||||
.login_widget .info_box .friend_list {
|
||||
background:url("../images/icon_friend_list.gif") no-repeat left;
|
||||
float:left;
|
||||
}
|
||||
|
||||
.login_plugin .info_box .message_box {
|
||||
.login_widget .info_box .message_box {
|
||||
background:url("../images/icon_message_box.gif") no-repeat left;
|
||||
float:left;
|
||||
width:90px;
|
||||
}
|
||||
|
||||
.login_plugin .info_box .link_admin {
|
||||
.login_widget .info_box .link_admin {
|
||||
background:url("../images/icon_key.gif") no-repeat left;
|
||||
float:left;
|
||||
}
|
||||
|
||||
.login_plugin .info_box .link_admin A {
|
||||
.login_widget .info_box .link_admin A {
|
||||
color:#cd0000;
|
||||
}
|
||||
|
||||
.login_plugin .info_box .last_login {
|
||||
.login_widget .info_box .last_login {
|
||||
clear:left;
|
||||
background:url("../images/icon_last_login.gif") no-repeat left;
|
||||
padding-left:15px;
|
||||
|
|
@ -94,11 +94,11 @@
|
|||
}
|
||||
|
||||
|
||||
.login_plugin .login_box {
|
||||
.login_widget .login_box {
|
||||
height:40px;
|
||||
}
|
||||
|
||||
.login_plugin .header {
|
||||
.login_widget .header {
|
||||
float:left;
|
||||
clear:left;
|
||||
width:80px;
|
||||
|
|
@ -107,31 +107,31 @@
|
|||
color:#555555;
|
||||
}
|
||||
|
||||
.login_plugin .body {
|
||||
.login_widget .body {
|
||||
float:left;
|
||||
width:100px;
|
||||
margin-bottom:5px;
|
||||
}
|
||||
|
||||
.login_plugin .body .input {
|
||||
.login_widget .body .input {
|
||||
width:90px;
|
||||
height:13px;
|
||||
border:1px solid #AAAAAA;
|
||||
color:#555555;
|
||||
}
|
||||
|
||||
.login_plugin .body label {
|
||||
.login_widget .body label {
|
||||
cursor:pointer;
|
||||
}
|
||||
|
||||
.login_plugin .button_area {
|
||||
.login_widget .button_area {
|
||||
clear:both;
|
||||
height:20px;
|
||||
margin-top:5px;
|
||||
text-align:center;
|
||||
}
|
||||
|
||||
.login_plugin .button_area .submit_button {
|
||||
.login_widget .button_area .submit_button {
|
||||
width:80px;
|
||||
height:18px;
|
||||
border:1px solid #AAAAAA;
|
||||
|
|
@ -140,7 +140,7 @@
|
|||
font-weight:bold;
|
||||
}
|
||||
|
||||
.login_plugin .button_area .signup_button {
|
||||
.login_widget .button_area .signup_button {
|
||||
width:80px;
|
||||
height:18px;
|
||||
border:1px solid #555555;
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<plugin version="0.1">
|
||||
<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">제로</name>
|
||||
<description xml:lang="ko">최근 댓글 (comment)를 출력하는 플러그인입니다.</description>
|
||||
<description xml:lang="ko">최근 댓글 (comment)를 출력하는 위젯입니다.</description>
|
||||
</author>
|
||||
<extra_vars>
|
||||
<var id="title">
|
||||
|
|
@ -22,4 +22,4 @@
|
|||
<description xml:lang="ko">선택하신 모듈에 등록된 글을 대상으로 합니다.</description>
|
||||
</var>
|
||||
</extra_vars>
|
||||
</plugin>
|
||||
</widget>
|
||||
|
|
|
|||
|
|
@ -2,20 +2,20 @@
|
|||
/**
|
||||
* @class newest_comment
|
||||
* @author zero (zero@nzeo.com)
|
||||
* @brief 최근 댓글을 출력하는 플러그인
|
||||
* @brief 최근 댓글을 출력하는 위젯
|
||||
* @version 0.1
|
||||
**/
|
||||
|
||||
class newest_comment extends PluginHandler {
|
||||
class newest_comment extends WidgetHandler {
|
||||
|
||||
/**
|
||||
* @brief 플러그인의 실행 부분
|
||||
* @brief 위젯의 실행 부분
|
||||
*
|
||||
* ./plugins/플러그인/conf/info.xml 에 선언한 extra_vars를 args로 받는다
|
||||
* ./widgets/위젯/conf/info.xml 에 선언한 extra_vars를 args로 받는다
|
||||
* 결과를 만든후 print가 아니라 return 해주어야 한다
|
||||
**/
|
||||
function proc($args) {
|
||||
// 플러그인 자체적으로 설정한 변수들을 체크
|
||||
// 위젯 자체적으로 설정한 변수들을 체크
|
||||
$title = $args->title;
|
||||
$order_target = $args->order_target;
|
||||
$order_type = $args->order_type;
|
||||
|
|
@ -33,17 +33,17 @@
|
|||
$output = $oCommentModel->getNewestCommentList($obj);
|
||||
|
||||
// 템플릿 파일에서 사용할 변수들을 세팅
|
||||
if(count($mid_list)==1) $plugin_info->module_name = $mid_list[0];
|
||||
if(count($mid_list)==1) $widget_info->module_name = $mid_list[0];
|
||||
|
||||
$plugin_info->title = $title;
|
||||
$plugin_info->comment_list = $output->data;
|
||||
$widget_info->title = $title;
|
||||
$widget_info->comment_list = $output->data;
|
||||
|
||||
preg_match_all('/(width|height)([^[:digit:]]+)([0-9]+)/i',$args->style,$matches);
|
||||
$plugin_info->width = trim($matches[3][0]);
|
||||
Context::set('plugin_info', $plugin_info);
|
||||
$widget_info->width = trim($matches[3][0]);
|
||||
Context::set('widget_info', $widget_info);
|
||||
|
||||
// 템플릿의 스킨 경로를 지정 (skin, colorset에 따른 값을 설정)
|
||||
$tpl_path = sprintf('%sskins/%s', $this->plugin_path, $args->skin);
|
||||
$tpl_path = sprintf('%sskins/%s', $this->widget_path, $args->skin);
|
||||
Context::set('colorset', $args->colorset);
|
||||
|
||||
// 템플릿 파일을 지정
|
||||
|
|
|
|||
|
|
@ -7,14 +7,14 @@
|
|||
<div class="newest_comment_{$colorset}" style="width:100%">
|
||||
<div class="newest_comment_box">
|
||||
|
||||
<!--@if($plugin_info->title)-->
|
||||
<!--@if($widget_info->title)-->
|
||||
<div class="title_box">
|
||||
<div class="title">{$plugin_info->title}</div>
|
||||
<div class="title">{$widget_info->title}</div>
|
||||
</div>
|
||||
<!--@end-->
|
||||
|
||||
<div class="comment_box">
|
||||
<!--@foreach($plugin_info->comment_list as $val)-->
|
||||
<!--@foreach($widget_info->comment_list as $val)-->
|
||||
<div class="comment">
|
||||
<a href="{getUrl('','document_srl',$val->document_srl)}#comment_{$val->comment_srl}">{htmlspecialchars(cut_str(strip_tags($val->content),13,'...'))}</a>
|
||||
<!--@if($val->member_srl)-->
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<plugin version="0.1">
|
||||
<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">제로</name>
|
||||
<description xml:lang="ko">최근 문서 (document)를 출력하는 플러그인입니다.</description>
|
||||
<description xml:lang="ko">최근 문서 (document)를 출력하는 위젯입니다.</description>
|
||||
</author>
|
||||
<extra_vars>
|
||||
<var id="title">
|
||||
|
|
@ -48,4 +48,4 @@
|
|||
<description xml:lang="ko">선택하신 모듈에 등록된 글을 대상으로 합니다.</description>
|
||||
</var>
|
||||
</extra_vars>
|
||||
</plugin>
|
||||
</widget>
|
||||
|
|
|
|||
|
|
@ -2,20 +2,20 @@
|
|||
/**
|
||||
* @class newest_document
|
||||
* @author zero (zero@nzeo.com)
|
||||
* @brief 최근 게시물을 출력하는 플러그인
|
||||
* @brief 최근 게시물을 출력하는 위젯
|
||||
* @version 0.1
|
||||
**/
|
||||
|
||||
class newest_document extends PluginHandler {
|
||||
class newest_document extends WidgetHandler {
|
||||
|
||||
/**
|
||||
* @brief 플러그인의 실행 부분
|
||||
* @brief 위젯의 실행 부분
|
||||
*
|
||||
* ./plugins/플러그인/conf/info.xml 에 선언한 extra_vars를 args로 받는다
|
||||
* ./widgets/위젯/conf/info.xml 에 선언한 extra_vars를 args로 받는다
|
||||
* 결과를 만든후 print가 아니라 return 해주어야 한다
|
||||
**/
|
||||
function proc($args) {
|
||||
// 플러그인 자체적으로 설정한 변수들을 체크
|
||||
// 위젯 자체적으로 설정한 변수들을 체크
|
||||
$title = $args->title;
|
||||
$order_target = $args->order_target;
|
||||
$order_type = $args->order_type;
|
||||
|
|
@ -33,17 +33,17 @@
|
|||
$output = $oDocumentModel->getDocumentList($obj);
|
||||
|
||||
// 템플릿 파일에서 사용할 변수들을 세팅
|
||||
if(count($mid_list)==1) $plugin_info->module_name = $mid_list[0];
|
||||
if(count($mid_list)==1) $widget_info->module_name = $mid_list[0];
|
||||
|
||||
$plugin_info->title = $title;
|
||||
$plugin_info->document_list = $output->data;
|
||||
$widget_info->title = $title;
|
||||
$widget_info->document_list = $output->data;
|
||||
|
||||
preg_match_all('/(width|height)([^[:digit:]]+)([0-9]+)/i',$args->style,$matches);
|
||||
$plugin_info->width = trim($matches[3][0]);
|
||||
Context::set('plugin_info', $plugin_info);
|
||||
$widget_info->width = trim($matches[3][0]);
|
||||
Context::set('widget_info', $widget_info);
|
||||
|
||||
// 템플릿의 스킨 경로를 지정 (skin, colorset에 따른 값을 설정)
|
||||
$tpl_path = sprintf('%sskins/%s', $this->plugin_path, $args->skin);
|
||||
$tpl_path = sprintf('%sskins/%s', $this->widget_path, $args->skin);
|
||||
Context::set('colorset', $args->colorset);
|
||||
|
||||
// 템플릿 파일을 지정
|
||||
|
|
|
|||
|
|
@ -7,14 +7,14 @@
|
|||
<div class="newest_document_blog_{$colorset}" style="width:100%">
|
||||
<div class="newest_document_blog_box">
|
||||
|
||||
<!--@if($plugin_info->title)-->
|
||||
<!--@if($widget_info->title)-->
|
||||
<div class="title_box">
|
||||
<div class="title">{$plugin_info->title}</div>
|
||||
<div class="title">{$widget_info->title}</div>
|
||||
</div>
|
||||
<!--@end-->
|
||||
|
||||
<div class="document_box">
|
||||
<!--@foreach($plugin_info->document_list as $oDocument)-->
|
||||
<!--@foreach($widget_info->document_list as $oDocument)-->
|
||||
<div class="document">
|
||||
<a href="{$oDocument->getPermanentUrl()}#{$oDocument->getCommentCount()}">{$oDocument->getTitleText(20)}</a>
|
||||
<!--@if($oDocument->getCommentCount())-->
|
||||
|
|
|
|||
|
|
@ -11,13 +11,13 @@
|
|||
<div class="newest_document_default_{$colorset}" style="width:100%">
|
||||
<div class="newest_document_default_box">
|
||||
<div class="title_box">
|
||||
<div class="title">{$plugin_info->title}</div>
|
||||
<div class="title">{$widget_info->title}</div>
|
||||
<!--@if($module_name)-->
|
||||
<div class="more"><a href="{getUrl('','mid',$plugin_info->module_name)}">more</a></div>
|
||||
<div class="more"><a href="{getUrl('','mid',$widget_info->module_name)}">more</a></div>
|
||||
<!--@end-->
|
||||
</div>
|
||||
|
||||
<!--@foreach($plugin_info->document_list as $oDocument)-->
|
||||
<!--@foreach($widget_info->document_list as $oDocument)-->
|
||||
<div class="document_box">
|
||||
<div class="document">
|
||||
<a href="{$oDocument->getPermanentUrl()}#{$oDocument->getCommentCount()}">{$oDocument->getTitleText(20)}</a>
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
<title xml:lang="ko">최신글 목록 기본 스킨</title>
|
||||
<maker email_address="zero@zeroboard.com" link="http://www.zeroboard.com" date="2007. 2. 28">
|
||||
<name xml:lang="ko">제로</name>
|
||||
<description xml:lang="ko">최신글 목록 플러그인의 기본 스킨</description>
|
||||
<description xml:lang="ko">최신글 목록 위젯의 기본 스킨</description>
|
||||
</maker>
|
||||
<colorset>
|
||||
<color name="normal">
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<plugin version="0.1">
|
||||
<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">제로</name>
|
||||
<description xml:lang="ko">최근 엮인글 (trackback)을 출력하는 플러그인입니다.</description>
|
||||
<description xml:lang="ko">최근 엮인글 (trackback)을 출력하는 위젯입니다.</description>
|
||||
</author>
|
||||
<extra_vars>
|
||||
<var id="title">
|
||||
|
|
@ -22,4 +22,4 @@
|
|||
<description xml:lang="ko">선택하신 모듈에 등록된 글을 대상으로 합니다.</description>
|
||||
</var>
|
||||
</extra_vars>
|
||||
</plugin>
|
||||
</widget>
|
||||
|
|
|
|||
|
|
@ -2,20 +2,20 @@
|
|||
/**
|
||||
* @class newest_trackback
|
||||
* @author zero (zero@nzeo.com)
|
||||
* @brief 최근 엮인글을 출력하는 플러그인
|
||||
* @brief 최근 엮인글을 출력하는 위젯
|
||||
* @version 0.1
|
||||
**/
|
||||
|
||||
class newest_trackback extends PluginHandler {
|
||||
class newest_trackback extends WidgetHandler {
|
||||
|
||||
/**
|
||||
* @brief 플러그인의 실행 부분
|
||||
* @brief 위젯의 실행 부분
|
||||
*
|
||||
* ./plugins/플러그인/conf/info.xml 에 선언한 extra_vars를 args로 받는다
|
||||
* ./widgets/위젯/conf/info.xml 에 선언한 extra_vars를 args로 받는다
|
||||
* 결과를 만든후 print가 아니라 return 해주어야 한다
|
||||
**/
|
||||
function proc($args) {
|
||||
// 플러그인 자체적으로 설정한 변수들을 체크
|
||||
// 위젯 자체적으로 설정한 변수들을 체크
|
||||
$title = $args->title;
|
||||
$order_target = $args->order_target;
|
||||
$order_type = $args->order_type;
|
||||
|
|
@ -33,17 +33,17 @@
|
|||
$output = $oTrackbackModel->getNewestTrackbackList($obj);
|
||||
|
||||
// 템플릿 파일에서 사용할 변수들을 세팅
|
||||
if(count($mid_list)==1) $plugin_info->module_name = $mid_list[0];
|
||||
if(count($mid_list)==1) $widget_info->module_name = $mid_list[0];
|
||||
|
||||
$plugin_info->title = $title;
|
||||
$plugin_info->trackback_list = $output->data;
|
||||
$widget_info->title = $title;
|
||||
$widget_info->trackback_list = $output->data;
|
||||
|
||||
preg_match_all('/(width|height)([^[:digit:]]+)([0-9]+)/i',$args->style,$matches);
|
||||
$plugin_info->width = trim($matches[3][0]);
|
||||
Context::set('plugin_info', $plugin_info);
|
||||
$widget_info->width = trim($matches[3][0]);
|
||||
Context::set('widget_info', $widget_info);
|
||||
|
||||
// 템플릿의 스킨 경로를 지정 (skin, colorset에 따른 값을 설정)
|
||||
$tpl_path = sprintf('%sskins/%s', $this->plugin_path, $args->skin);
|
||||
$tpl_path = sprintf('%sskins/%s', $this->widget_path, $args->skin);
|
||||
Context::set('colorset', $args->colorset);
|
||||
|
||||
// 템플릿 파일을 지정
|
||||
|
|
|
|||
|
|
@ -6,14 +6,14 @@
|
|||
<div class="newest_trackback_{$colorset}" style="width:100%">
|
||||
<div class="newest_trackback_box">
|
||||
|
||||
<!--@if($plugin_info->title)-->
|
||||
<!--@if($widget_info->title)-->
|
||||
<div class="title_box">
|
||||
<div class="title">{$plugin_info->title}</div>
|
||||
<div class="title">{$widget_info->title}</div>
|
||||
</div>
|
||||
<!--@end-->
|
||||
|
||||
<div class="trackback_box">
|
||||
<!--@foreach($plugin_info->trackback_list as $val)-->
|
||||
<!--@foreach($widget_info->trackback_list as $val)-->
|
||||
<div class="trackback">
|
||||
<a href="{getUrl('','document_srl',$val->document_srl)}#trackback_{$val->trackback_srl}">{cut_str($val->title,15,'...')}</a>
|
||||
- <a href="#" onclick="winopen('{$val->url}');return false;">{cut_str($val->blog_name,10,'...')}</a>
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<plugin version="0.1">
|
||||
<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>
|
||||
|
|
@ -38,4 +38,4 @@
|
|||
</options>
|
||||
</var>
|
||||
</extra_vars>
|
||||
</plugin>
|
||||
</widget>
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
<script type="text/javascript">
|
||||
displayMultimedia("{$plugin_info->src}", {$plugin_info->width}, {$plugin_info->width});
|
||||
displayMultimedia("{$widget_info->src}", {$widget_info->width}, {$widget_info->width});
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -6,17 +6,17 @@
|
|||
* @version 0.1
|
||||
**/
|
||||
|
||||
class styx_clock extends PluginHandler {
|
||||
class styx_clock extends WidgetHandler {
|
||||
|
||||
/**
|
||||
* @brief 플러그인의 실행 부분
|
||||
* @brief 위젯의 실행 부분
|
||||
*
|
||||
* ./plugins/플러그인/conf/info.xml 에 선언한 extra_vars를 args로 받는다
|
||||
* ./widgets/위젯/conf/info.xml 에 선언한 extra_vars를 args로 받는다
|
||||
* 결과를 만든후 print가 아니라 return 해주어야 한다
|
||||
**/
|
||||
function proc($args) {
|
||||
// 템플릿의 스킨 경로를 지정 (skin, colorset에 따른 값을 설정)
|
||||
$tpl_path = sprintf('%sskins/%s', $this->plugin_path, $args->skin);
|
||||
$tpl_path = sprintf('%sskins/%s', $this->widget_path, $args->skin);
|
||||
$colorset = $args->colorset;
|
||||
|
||||
// 템플릿 파일을 지정
|
||||
|
|
@ -30,11 +30,11 @@
|
|||
|
||||
$width = $args->width;
|
||||
if(!$width) $width = 200;
|
||||
$plugin_info->width = $width;
|
||||
$widget_info->width = $width;
|
||||
|
||||
$plugin_info->src = sprintf("%s%s/%s/clock.swf?theme=%s&day=%s", Context::getRequestUri(), $tpl_path, $colorset, $theme, $day);
|
||||
$widget_info->src = sprintf("%s%s/%s/clock.swf?theme=%s&day=%s", Context::getRequestUri(), $tpl_path, $colorset, $theme, $day);
|
||||
|
||||
Context::set('plugin_info', $plugin_info);
|
||||
Context::set('widget_info', $widget_info);
|
||||
|
||||
// 템플릿 컴파일
|
||||
$oTemplate = &TemplateHandler::getInstance();
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<plugin version="0.1">
|
||||
<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">제로</name>
|
||||
|
|
@ -22,4 +22,4 @@
|
|||
<description xml:lang="ko">선택하신 모듈에 등록된 꼬리표를 대상으로 합니다.</description>
|
||||
</var>
|
||||
</extra_vars>
|
||||
</plugin>
|
||||
</widget>
|
||||
|
|
|
|||
|
|
@ -7,14 +7,14 @@
|
|||
<div class="tag_list_{$colorset}" style="width:100%">
|
||||
<div class="tag_list_box">
|
||||
|
||||
<!--@if($plugin_info->title)-->
|
||||
<!--@if($widget_info->title)-->
|
||||
<div class="title_box">
|
||||
<div class="title">{$plugin_info->title}</div>
|
||||
<div class="title">{$widget_info->title}</div>
|
||||
</div>
|
||||
<!--@end-->
|
||||
|
||||
<div class="tag_box">
|
||||
<!--@foreach($plugin_info->tag_list as $val)-->
|
||||
<!--@foreach($widget_info->tag_list as $val)-->
|
||||
<div class="tag">
|
||||
<!--@if(!$layout_info->mid)-->
|
||||
<a href="{getUrl('','mid',$mid,'search_target','tag','search_keyword',urlencode($val->tag))}">{cut_str($val->tag,15,'...')}</a>
|
||||
|
|
|
|||
|
|
@ -6,16 +6,16 @@
|
|||
* @version 0.1
|
||||
**/
|
||||
|
||||
class tag_list extends PluginHandler {
|
||||
class tag_list extends WidgetHandler {
|
||||
|
||||
/**
|
||||
* @brief 플러그인의 실행 부분
|
||||
* @brief 위젯의 실행 부분
|
||||
*
|
||||
* ./plugins/플러그인/conf/info.xml 에 선언한 extra_vars를 args로 받는다
|
||||
* ./widgets/위젯/conf/info.xml 에 선언한 extra_vars를 args로 받는다
|
||||
* 결과를 만든후 print가 아니라 return 해주어야 한다
|
||||
**/
|
||||
function proc($args) {
|
||||
// 플러그인 자체적으로 설정한 변수들을 체크
|
||||
// 위젯 자체적으로 설정한 변수들을 체크
|
||||
$title = $args->title;
|
||||
$list_count = (int)$args->list_count;
|
||||
if(!$list_count) $list_count = 20;
|
||||
|
|
@ -30,17 +30,17 @@
|
|||
$output = $oTagModel->getTagList($obj);
|
||||
|
||||
// 템플릿 파일에서 사용할 변수들을 세팅
|
||||
if(count($mid_list)==1) $plugin_info->module_name = $mid_list[0];
|
||||
if(count($mid_list)==1) $widget_info->module_name = $mid_list[0];
|
||||
|
||||
$plugin_info->title = $title;
|
||||
$plugin_info->tag_list = $output->data;
|
||||
$widget_info->title = $title;
|
||||
$widget_info->tag_list = $output->data;
|
||||
|
||||
preg_match_all('/(width|height)([^[:digit:]]+)([0-9]+)/i',$args->style,$matches);
|
||||
$plugin_info->width = trim($matches[3][0]);
|
||||
Context::set('plugin_info', $plugin_info);
|
||||
$widget_info->width = trim($matches[3][0]);
|
||||
Context::set('widget_info', $widget_info);
|
||||
|
||||
// 템플릿의 스킨 경로를 지정 (skin, colorset에 따른 값을 설정)
|
||||
$tpl_path = sprintf('%sskins/%s', $this->plugin_path, $args->skin);
|
||||
$tpl_path = sprintf('%sskins/%s', $this->widget_path, $args->skin);
|
||||
Context::set('colorset', $args->colorset);
|
||||
|
||||
// 템플릿 파일을 지정
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue