git-svn-id: http://xe-core.googlecode.com/svn/trunk@1663 201d5d3c-b55e-5fd7-737f-ddc643e51545

This commit is contained in:
zero 2007-06-19 09:13:03 +00:00
parent 8390ec57e2
commit c814771f0f
69 changed files with 0 additions and 0 deletions

View file

@ -0,0 +1,51 @@
<?php
/**
* @class archive_list
* @author zero (zero@nzeo.com)
* @brief 보관현황 목록 출력
* @version 0.1
**/
class archive_list extends WidgetHandler {
/**
* @brief 위젯의 실행 부분
*
* ./widgets/위젯/conf/info.xml 선언한 extra_vars를 args로 받는다
* 결과를 만든후 print가 아니라 return 해주어야 한다
**/
function proc($args) {
// 위젯 자체적으로 설정한 변수들을 체크
$title = $args->title;
$mid_list = explode(",",$args->mid_list);
// DocumentModel::getMonthlyArchivedList()를 이용하기 위한 변수 정리
$obj->mid = $mid_list;
// document 모듈의 model 객체를 받아서 getMonthlyArchivedList() method를 실행
$oDocumentModel = &getModel('document');
$output = $oDocumentModel->getMonthlyArchivedList($obj);
// 템플릿 파일에서 사용할 변수들을 세팅
if(count($mid_list)==1) $widget_info->module_name = $mid_list[0];
$widget_info->title = $title;
$widget_info->archive_list = $output->data;
preg_match_all('/(width|height)([^[:digit:]]+)([0-9]+)/i',$args->style,$matches);
$widget_info->width = trim($matches[3][0]);
Context::set('widget_info', $widget_info);
// 템플릿의 스킨 경로를 지정 (skin, colorset에 따른 값을 설정)
$tpl_path = sprintf('%sskins/%s', $this->widget_path, $args->skin);
Context::set('colorset', $args->colorset);
// 템플릿 파일을 지정
$tpl_file = 'list';
// 템플릿 컴파일
$oTemplate = &TemplateHandler::getInstance();
return $oTemplate->compile($tpl_path, $tpl_file);
}
}
?>

View file

@ -0,0 +1,21 @@
<?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">제로</name>
<description xml:lang="ko">선택된 모듈의 월별 글 보관 현황을 보여줍니다.
글의 수가 너무 많을 경우 부하가 심해질 수 있습니다.</description>
</author>
<extra_vars>
<var id="title">
<name xml:lang="ko">제목</name>
<type>text</type>
<description xml:lang="ko">보관 현황 제목으로 출력됩니다.</description>
</var>
<var id="mid_list">
<name xml:lang="ko">대상 모듈</name>
<type>mid_list</type>
<description xml:lang="ko">선택하신 모듈에 등록된 글을 대상으로 합니다.</description>
</var>
</extra_vars>
</widget>

View file

@ -0,0 +1,27 @@
<!-- 설정된 컬러셋의 종류에 따라서 css파일을 import 합니다 -->
<!--@if($colorset=="normal"||!$colorset)-->
<!--%import("normal/style.css")-->
<!--@end-->
<div class="archive_list_{$colorset}">
<div class="archive_list_box">
<!--@if($widget_info->title)-->
<div class="title_box">
<div class="title">{$widget_info->title}</div>
</div>
<!--@end-->
<div class="archive_box">
<!--@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>
<!--@else-->
<a href="{getUrl('','mid',$mid,'search_target','regdate','search_keyword',$val->month)}">{zdate($val->month,'Y. m')} ({$val->count})</a>
<!--@end-->
</div>
<!--@end-->
</div>
</div>
</div>

View file

@ -0,0 +1,49 @@
.archive_list_normal {
}
.archive_list_normal .archive_list_box {
margin-bottom:5px;
}
.archive_list_normal .archive_list_box .title_box {
padding:5px;
overflow:hidden;
color:#888888;
}
.archive_list_normal .archive_list_box .title_box .title {
font-weight:bold;
}
.archive_list_normal .archive_list_box .archive_box {
padding:5px;
clear:both;
border:3px solid #EEEEEE;
overflow:hidden;
}
.archive_list_normal .archive_list_box .archive {
margin-right:5px;
color:#AAAAAA;
}
.archive_list_normal .archive_list_box .archive A {
text-decoration:none;
color:#555555;
}
.archive_list_normal .archive_list_box .archive A:hover {
text-decoration:underline;
color:#000000;
}
.archive_list_normal .archive_list_box .archive A:visited {
color:#AAAAAA;
}
.archive_list_normal .archive_list_box .archive .archive A {
font-size:7pt;
font-family:tahoma;
color:#AAAAAA;
letter-spacing:-1px;
}

View 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">제로</name>
<description xml:lang="ko">월별 보관 현황 목록을 출력합니다.</description>
</maker>
<colorset>
<color name="normal">
<title xml:lang="ko">기본 컬러</title>
</color>
</colorset>
</skin>

View file

@ -0,0 +1,67 @@
<?php
/**
* @class calendar
* @author zero (zero@nzeo.com)
* @brief 보관현황 목록 출력
* @version 0.1
**/
class calendar extends WidgetHandler {
/**
* @brief 위젯의 실행 부분
*
* ./widgets/위젯/conf/info.xml 선언한 extra_vars를 args로 받는다
* 결과를 만든후 print가 아니라 return 해주어야 한다
**/
function proc($args) {
// 위젯 자체적으로 설정한 변수들을 체크
$title = $args->title;
$mid_list = explode(",",$args->mid_list);
// DocumentModel::getDailyArchivedList()를 이용하기 위한 변수 정리
$obj->mid = $mid_list;
if(Context::get('search_target')=='regdate') {
$regdate = Context::get('search_keyword');
if($regdate) $obj->regdate = zdate($regdate, 'Ym');
}
if(!$obj->regdate) $obj->regdate = date('Ym');
// document 모듈의 model 객체를 받아서 getDailyArchivedList() method를 실행
$oDocumentModel = &getModel('document');
$output = $oDocumentModel->getDailyArchivedList($obj);
// 템플릿 파일에서 사용할 변수들을 세팅
$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));
$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) $widget_info->module_name = $mid_list[0];
$widget_info->title = $title;
if(count($output->data)) {
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);
$widget_info->width = trim($matches[3][0]);
Context::set('widget_info', $widget_info);
// 템플릿의 스킨 경로를 지정 (skin, colorset에 따른 값을 설정)
$tpl_path = sprintf('%sskins/%s', $this->widget_path, $args->skin);
Context::set('colorset', $args->colorset);
// 템플릿 파일을 지정
$tpl_file = 'list';
// 템플릿 컴파일
$oTemplate = &TemplateHandler::getInstance();
return $oTemplate->compile($tpl_path, $tpl_file);
}
}
?>

View file

@ -0,0 +1,15 @@
<?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">제로</name>
<description xml:lang="ko">달력을 표시하고 등록된 글이 있는 날에 표시와 링크를 해줍니다.</description>
</author>
<extra_vars>
<var id="mid_list">
<name xml:lang="ko">대상 모듈</name>
<type>mid_list</type>
<description xml:lang="ko">선택하신 모듈에 등록된 글을 대상으로 합니다.</description>
</var>
</extra_vars>
</widget>

View file

@ -0,0 +1,81 @@
<!-- 설정된 컬러셋의 종류에 따라서 css파일을 import 합니다 -->
<!--@if($colorset=="normal"||!$colorset)-->
<!--%import("normal/style.css")-->
<!--@end-->
<div class="calendar_{$colorset}" style="width:100%">
<div class="calendar_box">
<div class="title_box">
<div class="title">{$widget_info->today_str}</div>
<div class="move_month">
<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 < $widget_info->last_day)-->
<tr>
<!--@for($j=0;$j<7;$j++)-->
{@ $num = $i*7 + $j}
<!--@if(!$started && $num >= $widget_info->start_week)-->
{@ $started = true}
{@ $day = 1}
{@ $cur_date = $widget_info->cur_date.sprintf('%02d',$day) }
<!--@elseif($started)-->
{@ $day++}
{@ $cur_date = $widget_info->cur_date.sprintf('%02d',$day) }
<!--@end-->
<!--@if($cur_date == date("Ymd"))-->
{@ $today_class = "today"}
<!--@else-->
{@ $today_class = ""}
<!--@end-->
<!--@if($j==0)-->
{@ $cell_class_name = "sunday"}
<!--@elseif($j==6)-->
{@ $cell_class_name = "saturday"}
<!--@else-->
{@ $cell_class_name = "week"}
<!--@end-->
<!--@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) }
<!--@else-->
{@ $day_link = getUrl('','mid',$mid,'search_target','regdate','search_keyword',$cur_date) }
<!--@end-->
<!--@else-->
{@ $item_class_name = "unselected_item"}
{@ $day_link = ''}
<!--@end-->
<td>
<div class="item_box {$today_class}">
<div class="{$cell_class_name} {$item_class_name}">
<!--@if($day <= $widget_info->last_day)-->
<!--@if($day_link)-->
<a href="{$day_link}">{$day}</a>
<!--@else-->
{$day}
<!--@end-->
<!--@end-->
</div>
</div>
</td>
<!--@end-->
</tr>
<!--@end-->
<!--@end-->
</table>
</div>
</div>

View file

@ -0,0 +1,78 @@
.calendar_normal {
}
.calendar_normal .calendar_box {
margin-bottom:5px;
}
.calendar_normal .calendar_box .title_box {
padding:5px;
height:14px;
overflow:hidden;
color:#888888;
}
.calendar_normal .calendar_box .title_box .title {
font-weight:bold;
height:14px;
float:left;
}
.calendar_normal .calendar_box .title_box .move_month {
font-weight:bold;
height:14px;
float:right;
}
.calendar_normal .calendar_box .calendar_box {
padding:5px;
border:3px solid #EEEEEE;
overflow:hidden;
}
.calendar_normal .calendar_box .week {
}
.calendar_normal .calendar_box .item_box {
border:1px solid #EEEEEE;
margin:1px;
text-align:right;
}
.calendar_normal .calendar_box .sunday {
color:darkred;
}
.calendar_normal .calendar_box .saturday {
color:darkblue;
}
.calendar_normal .calendar_box .week {
color:#666666;
}
.calendar_normal .calendar_box .today {
background-color:yellow;
}
.calendar_normal .calendar_box .unselected_item {
}
.calendar_normal .calendar_box .selected_item {
font-weight:bold;
text-decoration:underline;
}
.calendar_normal .calendar_box .item_box {
margin-right:5px;
color:#AAAAAA;
height:20px;
}
.calendar_normal .calendar_box .item_box div {
margin-right:2px;
}
.calendar_normal .calendar_box .item_box A {
color:green;
}

View 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">제로</name>
<description xml:lang="ko">calendar위젯의 블로그에 어울리는 기본 스킨입니다.</description>
</maker>
<colorset>
<color name="normal">
<title xml:lang="ko">기본 컬러</title>
</color>
</colorset>
</skin>

View file

@ -0,0 +1,12 @@
<?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">제로</name>
<description xml:lang="ko">
기본 카운터 모듈을 이용하여 전체, 어제, 오늘의 접속현황을 표시합니다.
counter모듈이 설치되어 있어야 하고 counter 애드온이 켜져 있어야 합니다.
</description>
</author>
<extra_vars />
</widget>

View file

@ -0,0 +1,42 @@
<?php
/**
* @class counter_status
* @author zero (zero@nzeo.com)
* @version 0.1
* @brief counter 모듈의 데이터를 이용하여 counter 현황을 출력
**/
class counter_status extends WidgetHandler {
/**
* @brief 위젯의 실행 부분
* ./widgets/위젯/conf/info.xml에 선언한 extra_vars를 args로 받는다
* 결과를 만든후 print가 아니라 return 해주어야 한다
**/
function proc($args) {
// 전체, 어제, 오늘 접속 현황을 가져옴
$oCounterModel = &getModel('counter');
$output = $oCounterModel->getStatus(array('00000000', date('Ymd', time()-60*60*24), date('Ymd')));
foreach($output as $key => $val) {
if(!$key) Context::set('total_counter', $val);
elseif($key == date("Ymd")) Context::set('today_counter', $val);
else Context::set('yesterday_counter', $val);
}
// 변수 설정
Context::set('style', $args->style);
// 템플릿의 스킨 경로를 지정 (skin, colorset에 따른 값을 설정)
$tpl_path = sprintf('%sskins/%s', $this->widget_path, $args->skin);
Context::set('colorset', $args->colorset);
// 템플릿 파일을 지정
$tpl_file = 'counter_status';
// 템플릿 컴파일
$oTemplate = &TemplateHandler::getInstance();
return $oTemplate->compile($tpl_path, $tpl_file);
}
}
?>

View file

@ -0,0 +1,21 @@
<!--@if($colorset == "normal")-->
<!--%import("normal/style.css")-->
<!--@end-->
<div class="counter_widget">
<ul>
<!--@if($total_counter)-->
<li><strong>Total</strong> : {$total_counter->unique_visitor}</li>
<!--@end-->
<!--@if($today_counter)-->
<li><strong>Today</strong> : {$today_counter->unique_visitor}</li>
<!--@end-->
<!--@if($yesterday_counter)-->
<li><strong>Yesterday</strong> : {$yesterday_counter->unique_visitor}</li>
<!--@end-->
</ul>
</div>

View file

@ -0,0 +1,8 @@
.counter_widget {
border:3px solid #DDDDDD;
padding:6px;
margin-bottom:10px;
color:#999999;
font-family:tahoma;
font-size:8pt;
}

View 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">제로</name>
<description xml:lang="ko">counter_status 의 기본 스킨</description>
</maker>
<colorset>
<color name="normal">
<title xml:lang="ko">기본</title>
</color>
</colorset>
</skin>

View 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">제로</name>
<description xml:lang="ko">로그인 폼이나 로그인 정보를 출력합니다</description>
</author>
<extra_vars />
</widget>

View file

@ -0,0 +1,42 @@
<?php
/**
* @class login_info
* @author zero (zero@nzeo.com)
* @version 0.1
* @brief 로그인 폼을 출력하는 위젯
*
* $logged_info를 이용하며 이는 미리 설정되어 있음
**/
class login_info extends WidgetHandler {
/**
* @brief 위젯의 실행 부분
* ./widgets/위젯/conf/info.xml에 선언한 extra_vars를 args로 받는다
* 결과를 만든후 print가 아니라 return 해주어야 한다
**/
function proc($args) {
// 변수 설정
Context::set('style', $args->style);
// 템플릿의 스킨 경로를 지정 (skin, colorset에 따른 값을 설정)
$tpl_path = sprintf('%sskins/%s', $this->widget_path, $args->skin);
Context::set('colorset', $args->colorset);
// 템플릿 파일을 지정
if(Context::get('is_logged')) $tpl_file = 'login_info';
else $tpl_file = 'login_form';
// 회원 관리 정보를 받음
$oModuleModel = &getModel('module');
$this->member_config = $oModuleModel->getModuleConfig('member');
Context::set('member_config', $this->member_config);
// 템플릿 컴파일
$oTemplate = &TemplateHandler::getInstance();
return $oTemplate->compile($tpl_path, $tpl_file);
}
}
?>

View file

@ -0,0 +1,14 @@
<filter name="widget_login" module="member" act="procMemberLogin">
<form>
<node target="user_id" required="true" filter="user_id"/>
<node target="password" required="true" />
</form>
<parameter>
<param name="user_id" target="user_id" />
<param name="password" target="password" />
</parameter>
<response callback_func="completeLogin">
<tag name="error" />
<tag name="message" />
</response>
</filter>

View file

@ -0,0 +1,7 @@
<filter name="widget_logout" module="member" act="procMemberLogout">
<form />
<response>
<tag name="error" />
<tag name="message" />
</response>
</filter>

View file

@ -0,0 +1,10 @@
<filter name="openid_login" module="member" act="procMemberOpenIDLogin">
<form>
<node target="user_id" required="true" />
</form>
<parameter />
<response callback_func="completeOpenIDLogin">
<tag name="error" />
<tag name="message" />
</response>
</filter>

Binary file not shown.

After

Width:  |  Height:  |  Size: 556 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 505 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 967 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 559 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 534 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 535 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 237 B

View file

@ -0,0 +1,36 @@
/* 로그인 영역에 포커스 */
function doFocusUserId(fo_id) {
var fo_obj = xGetElementById(fo_id);
if(xGetCookie('user_id')) {
fo_obj.user_id.value = xGetCookie('user_id');
fo_obj.remember_user_id.checked = true;
try{
fo_obj.password.focus();
} catch(e) {};
} else {
try{
fo_obj.user_id.focus();
} catch(e) {};
}
}
/* 로그인 후 */
function completeLogin(ret_obj, response_tags, params, fo_obj) {
if(fo_obj.remember_user_id && fo_obj.remember_user_id.checked) {
var expire = new Date();
expire.setTime(expire.getTime()+ (7000 * 24 * 3600000));
xSetCookie('user_id', fo_obj.user_id.value, expire);
}
var url = current_url.setQuery('act','');
location.href = url;
}
/* 오픈아이디 로그인 후 */
function completeOpenIDLogin(ret_obj, response_tags) {
var redirect_url = ret_obj['redirect_url'];
location.href = redirect_url;
}

View file

@ -0,0 +1,54 @@
<!-- colorset의 값에 따라 css 파일을 import 한다 -->
<!--@if($colorset=="normal"||!$colorset)-->
<!--%import("normal/style.css")-->
<!--@end-->
<!--%import("./filter/login.xml")-->
<!--%import("./filter/openid_login.xml")-->
<!--%import("./js/login.js")-->
<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">
<div><input type="text" name="user_id" id="login_form_user_id" class="input" /></div>
<div>
<input type="checkbox" name="remember_user_id" id="chk_remember_user_id" value="Y" />
<label for="chk_remember_user_id">{$lang->remember_user_id}</label>
</div>
</div>
<div class="header">{$lang->password}</div>
<div class="body"><input type="password" name="password" class="input" /></div>
</div>
<div class="button_area">
<input type="submit" value="{$lang->cmd_login}" class="submit_button" />
<input type="button" value="{$lang->cmd_signup}" class="signup_button" onclick="location.href='{getUrl('act','dispMemberSignUpForm')}';return false;" />
</div>
</form>
<script type="text/javascript">
xAddEventListener(window, "load", function(){ doFocusUserId("fo_login_widget"); });
</script>
<!-- OpenID -->
<!--@if($member_config->enable_openid=='Y')-->
<form action="./" method="post" onsubmit="return procFilter(this, openid_login)">
<table border="1">
<tr>
<th>{$lang->openid}</th>
</tr>
<tr>
<td>
<input type="text" name="user_id" tabindex="1" class="openid_user_id" />
<input type="submit" value="{$lang->cmd_login}" tabindex="2" />
</td>
</tr>
</table>
</form>
<!--@end-->
</div>

View file

@ -0,0 +1,47 @@
<!-- colorset의 값에 따라 css 파일을 import 한다 -->
<!--@if($colorset=="normal"||!$colorset)-->
<!--%import("normal/style.css")-->
<!--@end-->
<!--%import("./filter/logout.xml")-->
<div class="login_widget">
<!-- 닉네임 + 로그아웃 -->
<div class="top_box">
<div class="logout">
<a href="#" onclick="location.href='{getUrl('act','dispMemberLogout')}';return false;">{$lang->cmd_logout}</a>
</div>
<div class="nick_name">
<div class="member_{$logged_info->member_srl}">{$logged_info->nick_name}</div>
</div>
</div>
<div class="info_box">
<!-- 정보 수정 링크 -->
<div class="member_info">
<a href="#" onclick="location.href='{getUrl('act','dispMemberInfo')}';return false;">{$lang->cmd_view_member_info}</a>
</div>
<div class="friend_list">
<a href="#" onclick="popopen('{getUrl('','module','member','act','dispMemberFriend')}','sendMessage');return false;">{$lang->cmd_view_friend}</a>
</div>
<div class="message_box">
<a href="#" onclick="location.href='{getUrl('act','dispMemberMessages')}';return false;">{$lang->cmd_view_message_box}</a>
</div>
<!-- 관리자일 경우 관리자 링크 -->
<!--@if($logged_info->is_admin=="Y")-->
<div class="link_admin">
<a href="#" onclick="winopen('./?module=admin');return false;">{$lang->cmd_management}</a>
</div>
<!--@end-->
<!-- 최종 록그인 시간 -->
<div class="last_login">
{$lang->last_login} : {zDate($logged_info->last_login, "Y-m-d H:i")}
</div>
</div>
</div>

Binary file not shown.

After

Width:  |  Height:  |  Size: 282 B

View file

@ -0,0 +1,158 @@
.login_widget {
border:3px solid #DDDDDD;
padding:6px;
margin-bottom:10px;
}
.login_widget .top_box {
height:22px;
border-bottom:2px dotted #DDDDDD;
overflow:hidden;
margin-bottom:5px;
}
.login_widget .top_box .nick_name {
font-weight:bold;
float:left;
color:#555555;
}
.login_widget .top_box .logout {
float:right;
}
.login_widget .top_box .logout A {
text-decoration:none;
color:#737CF5;
}
.login_widget .top_box .logout A:hover {
font-weight:bold;
letter-spacing:-1px;
color:#151F9E;
}
.login_widget .info_box {
clear:both;
color:#555555;
}
.login_widget .info_box A:link {
text-decoration:none;
color:#555555;
}
.login_widget .info_box A:visited {
text-decoration:none;
color:#555555;
}
.login_widget .info_box A:hover {
text-decoration:none;
font-weight:bold;
letter-spacing:-1px;
color:#555555;
}
.login_widget .info_box div {
padding-left:15px;
margin:0px 0px 4px 0px;
}
.login_widget .info_box .member_info {
background:url("../images/icon_profile.gif") no-repeat left;
float:left;
width:90px;
}
.login_widget .info_box .friend_list {
background:url("../images/icon_friend_list.gif") no-repeat left;
float:left;
}
.login_widget .info_box .message_box {
background:url("../images/icon_message_box.gif") no-repeat left;
float:left;
width:90px;
}
.login_widget .info_box .link_admin {
background:url("../images/icon_key.gif") no-repeat left;
float:left;
}
.login_widget .info_box .link_admin A {
color:#cd0000;
}
.login_widget .info_box .last_login {
clear:left;
background:url("../images/icon_last_login.gif") no-repeat left;
padding-left:15px;
margin-bottom:4px;
}
.login_widget .login_box {
height:40px;
}
.login_widget .header {
float:left;
clear:left;
width:80px;
margin-bottom:5px;
font-weight:bold;
color:#555555;
}
.login_widget .body {
float:left;
width:100px;
margin-bottom:5px;
}
.login_widget .body .input {
width:90px;
height:13px;
border:1px solid #AAAAAA;
color:#555555;
}
.login_widget .body label {
cursor:pointer;
}
.login_widget .button_area {
clear:both;
height:20px;
margin-top:5px;
text-align:center;
}
.login_widget .button_area .submit_button {
width:80px;
height:18px;
border:1px solid #AAAAAA;
background-color:#555555;
color:#FFFFFF;
font-weight:bold;
}
.login_widget .button_area .signup_button {
width:80px;
height:18px;
border:1px solid #555555;
background-color:#FFFFFF;
color:#000000;
font-weight:bold;
}
.openid_user_id {
background: url(../images/login-bg.gif) left no-repeat;
background-color: #ffffff;
background-position: 0 50%;
color: #000;
padding-left: 18px;
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 589 B

View 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">제로</name>
<description xml:lang="ko">newest_document의 기본 스킨</description>
</maker>
<colorset>
<color name="normal">
<title xml:lang="ko">기본</title>
</color>
</colorset>
</skin>

View file

@ -0,0 +1,25 @@
<?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">제로</name>
<description xml:lang="ko">최근 댓글 (comment)를 출력하는 위젯입니다.</description>
</author>
<extra_vars>
<var id="title">
<name xml:lang="ko">제목</name>
<type>text</type>
<description xml:lang="ko">최근 댓글의 제목으로 출력됩니다.</description>
</var>
<var id="list_count">
<name xml:lang="ko">목록수</name>
<type>text</type>
<description xml:lang="ko">출력될 목록의 수를 정하실 수 있습니다. (기본 5개)</description>
</var>
<var id="mid_list">
<name xml:lang="ko">대상 모듈</name>
<type>mid_list</type>
<description xml:lang="ko">선택하신 모듈에 등록된 글을 대상으로 합니다.</description>
</var>
</extra_vars>
</widget>

View file

@ -0,0 +1,57 @@
<?php
/**
* @class newest_comment
* @author zero (zero@nzeo.com)
* @brief 최근 댓글을 출력하는 위젯
* @version 0.1
**/
class newest_comment extends WidgetHandler {
/**
* @brief 위젯의 실행 부분
*
* ./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;
$list_count = (int)$args->list_count;
if(!$list_count) $list_count = 5;
$mid_list = explode(",",$args->mid_list);
// CommentModel::getCommentList()를 이용하기 위한 변수 정리
$obj->mid = $mid_list;
$obj->sort_index = $order_target;
$obj->list_count = $list_count;
// comment 모듈의 model 객체를 받아서 getCommentList() method를 실행
$oCommentModel = &getModel('comment');
$output = $oCommentModel->getNewestCommentList($obj);
// 템플릿 파일에서 사용할 변수들을 세팅
if(count($mid_list)==1) $widget_info->module_name = $mid_list[0];
$widget_info->title = $title;
$widget_info->comment_list = $output->data;
preg_match_all('/(width|height)([^[:digit:]]+)([0-9]+)/i',$args->style,$matches);
$widget_info->width = trim($matches[3][0]);
Context::set('widget_info', $widget_info);
// 템플릿의 스킨 경로를 지정 (skin, colorset에 따른 값을 설정)
$tpl_path = sprintf('%sskins/%s', $this->widget_path, $args->skin);
Context::set('colorset', $args->colorset);
// 템플릿 파일을 지정
$tpl_file = 'list';
// 템플릿 컴파일
$oTemplate = &TemplateHandler::getInstance();
return $oTemplate->compile($tpl_path, $tpl_file);
}
}
?>

View file

@ -0,0 +1,29 @@
<!-- 설정된 컬러셋의 종류에 따라서 css파일을 import 합니다 -->
<!--@if($colorset=="normal"||!$colorset)-->
<!--%import("normal/style.css")-->
<!--@end-->
<div class="newest_comment_{$colorset}" style="width:100%">
<div class="newest_comment_box">
<!--@if($widget_info->title)-->
<div class="title_box">
<div class="title">{$widget_info->title}</div>
</div>
<!--@end-->
<div class="comment_box">
<!--@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)-->
<span class="member_{$val->member_srl} writer">{$val->nick_name}</span>
<!--@else-->
<span class="writer">{$val->nick_name}</span>
<!--@end-->
</div>
<!--@end-->
</div>
</div>
</div>

View file

@ -0,0 +1,54 @@
.newest_comment_normal {
}
.newest_comment_normal .newest_comment_box {
margin-bottom:5px;
}
.newest_comment_normal .newest_comment_box .title_box {
padding:5px;
height:14px;
overflow:hidden;
color:#888888;
}
.newest_comment_normal .newest_comment_box .title_box .title {
font-weight:bold;
height:14px;
float:left;
}
.newest_comment_normal .newest_comment_box .comment_box {
padding:5px 3px 3px 1px;
clear:both;
border:3px solid #EEEEEE;
overflow:hidden;
}
.newest_comment_normal .newest_comment_box .comment {
padding:0px 0px 5px 5px;
height:16px;
overflow:hidden;
color:#AAAAAA;
clear:both;
}
.newest_comment_normal .newest_comment_box .comment A {
text-decoration:none;
float:left;
color:#555555;
}
.newest_comment_normal .newest_comment_box .comment A:hover {
text-decoration:underline;
color:#000000;
}
.newest_comment_normal .newest_comment_box .comment A:visited {
color:#AAAAAA;
}
.newest_comment_normal .newest_comment_box .comment .writer {
cursor:pointer;
float:right;
}

View 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">제로</name>
<description xml:lang="ko">블로그 스타일로 최신 댓글을 출력합니다.</description>
</maker>
<colorset>
<color name="normal">
<title xml:lang="ko">기본 컬러</title>
</color>
</colorset>
</skin>

View file

@ -0,0 +1,51 @@
<?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">제로</name>
<description xml:lang="ko">최근 문서 (document)를 출력하는 위젯입니다.</description>
</author>
<extra_vars>
<var id="title">
<name xml:lang="ko">제목</name>
<type>text</type>
<description xml:lang="ko">최근 게시물의 제목으로 출력됩니다.</description>
</var>
<var id="order_target">
<name xml:lang="ko">정렬 대상</name>
<type>select</type>
<description xml:lang="ko">등록된 순서 또는 변경된 순서로 정렬을 할 수 있습니다.</description>
<options>
<name xml:lang="ko">최신 등록순</name>
<value>list_order</value>
</options>
<options>
<name xml:lang="ko">최근 변경순</name>
<value>update_order</value>
</options>
</var>
<var id="order_type">
<name xml:lang="ko">정렬 방법</name>
<type>select</type>
<description xml:lang="ko">정렬대상을 내림차순 또는 올림차순으로 정렬할 수 있습니다.</description>
<options>
<name xml:lang="ko">내림차순</name>
<value>desc</value>
</options>
<options>
<name xml:lang="ko">올림차순</name>
<value>asc</value>
</options>
</var>
<var id="list_count">
<name xml:lang="ko">목록수</name>
<type>text</type>
<description xml:lang="ko">출력될 목록의 수를 정하실 수 있습니다. (기본 5개)</description>
</var>
<var id="mid_list">
<name xml:lang="ko">대상 모듈</name>
<type>mid_list</type>
<description xml:lang="ko">선택하신 모듈에 등록된 글을 대상으로 합니다.</description>
</var>
</extra_vars>
</widget>

View file

@ -0,0 +1,57 @@
<?php
/**
* @class newest_document
* @author zero (zero@nzeo.com)
* @brief 최근 게시물을 출력하는 위젯
* @version 0.1
**/
class newest_document extends WidgetHandler {
/**
* @brief 위젯의 실행 부분
*
* ./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;
$list_count = (int)$args->list_count;
if(!$list_count) $list_count = 5;
$mid_list = explode(",",$args->mid_list);
// DocumentModel::getDocumentList()를 이용하기 위한 변수 정리
$obj->mid = $mid_list;
$obj->sort_index = $order_target;
$obj->list_count = $list_count;
// document 모듈의 model 객체를 받아서 getDocumentList() method를 실행
$oDocumentModel = &getModel('document');
$output = $oDocumentModel->getDocumentList($obj);
// 템플릿 파일에서 사용할 변수들을 세팅
if(count($mid_list)==1) $widget_info->module_name = $mid_list[0];
$widget_info->title = $title;
$widget_info->document_list = $output->data;
preg_match_all('/(width|height)([^[:digit:]]+)([0-9]+)/i',$args->style,$matches);
$widget_info->width = trim($matches[3][0]);
Context::set('widget_info', $widget_info);
// 템플릿의 스킨 경로를 지정 (skin, colorset에 따른 값을 설정)
$tpl_path = sprintf('%sskins/%s', $this->widget_path, $args->skin);
Context::set('colorset', $args->colorset);
// 템플릿 파일을 지정
$tpl_file = 'list';
// 템플릿 컴파일
$oTemplate = &TemplateHandler::getInstance();
return $oTemplate->compile($tpl_path, $tpl_file);
}
}
?>

View file

@ -0,0 +1,27 @@
<!-- 설정된 컬러셋의 종류에 따라서 css파일을 import 합니다 -->
<!--@if($colorset=="normal"||!$colorset)-->
<!--%import("normal/style.css")-->
<!--@end-->
<div class="newest_document_blog_{$colorset}" style="width:100%">
<div class="newest_document_blog_box">
<!--@if($widget_info->title)-->
<div class="title_box">
<div class="title">{$widget_info->title}</div>
</div>
<!--@end-->
<div class="document_box">
<!--@foreach($widget_info->document_list as $oDocument)-->
<div class="document">
<a href="{$oDocument->getPermanentUrl()}#{$oDocument->getCommentCount()}">{$oDocument->getTitleText(20)}</a>
<!--@if($oDocument->getCommentCount())-->
&nbsp;<span class="comment"><a href="{$oDocument->getPermanentUrl()}#comment_top_{$oDocument->document_srl}">*{$oDocument->getCommentCount()}</a></span>
<!--@end-->
</div>
<!--@end-->
</div>
</div>
</div>

View file

@ -0,0 +1,51 @@
.newest_document_blog_normal {
}
.newest_document_blog_normal .newest_document_blog_box {
margin-bottom:5px;
}
.newest_document_blog_normal .newest_document_blog_box .title_box {
padding:5px;
height:14px;
overflow:hidden;
color:#888888;
}
.newest_document_blog_normal .newest_document_blog_box .title_box .title {
font-weight:bold;
height:14px;
float:left;
}
.newest_document_blog_normal .newest_document_blog_box .document_box {
padding:5px 3px 3px 1px;
clear:both;
border:3px solid #EEEEEE;
overflow:hidden;
}
.newest_document_blog_normal .newest_document_blog_box .document {
padding:0px 0px 5px 5px;
}
.newest_document_blog_normal .newest_document_blog_box .document A {
text-decoration:none;
color:#555555;
}
.newest_document_blog_normal .newest_document_blog_box .document A:hover {
text-decoration:underline;
color:#000000;
}
.newest_document_blog_normal .newest_document_blog_box .document A:visited {
color:#AAAAAA;
}
.newest_document_blog_normal .newest_document_blog_box .document .comment A {
font-size:7pt;
font-family:tahoma;
color:#AAAAAA;
letter-spacing:-1px;
}

View 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">제로</name>
<description xml:lang="ko">블로그 스타일로 최신글을 출력합니다.</description>
</maker>
<colorset>
<color name="normal">
<title xml:lang="ko">기본 컬러</title>
</color>
</colorset>
</skin>

Binary file not shown.

After

Width:  |  Height:  |  Size: 282 B

View file

@ -0,0 +1,79 @@
.newest_document_default_blue {
}
.newest_document_default_blue .newest_document_default_box {
padding:5px;
}
.newest_document_default_blue .newest_document_default_box .title_box {
border:1px solid #EEEEEE;
padding:5px;
height:14px;
overflow:hidden;
}
.newest_document_default_blue .newest_document_default_box .title_box .title {
background:url(./title_bullet.gif) no-repeat left;
font-weight:bold;
height:16px;
padding-left:20px;
float:left;
}
.newest_document_default_blue .newest_document_default_box .title_box .more A {
float:right;
color:#AAAAAA;
text-decoration:none;
font-family:tahoma;
font-weight:bold;
}
.newest_document_default_blue .newest_document_default_box .document_box {
padding:3px 3px 3px 20px;
clear:both;
border-bottom:1px solid #EEEEEE;
height:16px;
margin:0px 0px 2px 0px;
overflow:hidden;
}
.newest_document_default_blue .newest_document_default_box .document {
padding:0px 0px 5px 20px;
background:url(./document_bullet.gif) no-repeat left;
float:left;
}
.newest_document_default_blue .newest_document_default_box .document A {
text-decoration:none;
color:#555555;
}
.newest_document_default_blue .newest_document_default_box .document A:hover {
text-decoration:underline;
color:#000000;
}
.newest_document_default_blue .newest_document_default_box .document A:visited {
color:#AAAAAA;
}
.newest_document_default_blue .newest_document_default_box .document .comment A {
font-size:7pt;
font-family:tahoma;
color:#AAAAAA;
letter-spacing:-1px;
}
.newest_document_default_blue .newest_document_default_box .document .writer {
font-size:9pt;
font-family:tahoma;
color:#AAAAAA;
}
.newest_document_default_blue .newest_document_default_box .regdate {
color:#AAAAAA;
font-size:8pt;
font-family:tahoma;
float:right;
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 1 KiB

View file

@ -0,0 +1,35 @@
<!-- 설정된 컬러셋의 종류에 따라서 css파일을 import 합니다 -->
<!--@if($colorset=="normal"||!$colorset)-->
<!--%import("normal/style.css")-->
<!--@elseif($colorset=="blue")-->
<!--%import("blue/style.css")-->
<!--@end-->
<div class="newest_document_default_{$colorset}" style="width:100%">
<div class="newest_document_default_box">
<div class="title_box">
<div class="title">{$widget_info->title}</div>
<!--@if($module_name)-->
<div class="more"><a href="{getUrl('','mid',$widget_info->module_name)}">more</a></div>
<!--@end-->
</div>
<!--@foreach($widget_info->document_list as $oDocument)-->
<div class="document_box">
<div class="document">
<a href="{$oDocument->getPermanentUrl()}#{$oDocument->getCommentCount()}">{$oDocument->getTitleText(20)}</a>
<!--@if($oDocument->getCommentCount())-->
&nbsp;<span class="comment"><a href="{$oDocument->getPermanentUrl()}#comment_top_{$oDocument->document_srl}">*{$oDocument->getCommentCount()}</a></span>
<!--@end-->
<span class="writer">
- {$oDocument->getNickName()}
</span>
</div>
<div class="regdate">{$oDocument->getRegdate("Y-m-d")}</div>
</div>
<!--@end-->
</div>
</div>

Binary file not shown.

After

Width:  |  Height:  |  Size: 282 B

View file

@ -0,0 +1,79 @@
.newest_document_default_normal {
}
.newest_document_default_normal .newest_document_default_box {
padding:5px;
}
.newest_document_default_normal .newest_document_default_box .title_box {
border:1px solid #EEEEEE;
padding:5px;
height:14px;
overflow:hidden;
}
.newest_document_default_normal .newest_document_default_box .title_box .title {
background:url(./title_bullet.gif) no-repeat left;
font-weight:bold;
height:14px;
padding-left:20px;
float:left;
}
.newest_document_default_normal .newest_document_default_box .title_box .more A {
float:right;
color:#AAAAAA;
text-decoration:none;
font-family:tahoma;
font-weight:bold;
}
.newest_document_default_normal .newest_document_default_box .document_box {
padding:3px 3px 3px 20px;
clear:both;
border-bottom:1px solid #EEEEEE;
height:16px;
margin:0px 0px 2px 0px;
overflow:hidden;
}
.newest_document_default_normal .newest_document_default_box .document {
padding:0px 0px 5px 20px;
background:url(./document_bullet.gif) no-repeat left;
float:left;
}
.newest_document_default_normal .newest_document_default_box .document A {
text-decoration:none;
color:#555555;
}
.newest_document_default_normal .newest_document_default_box .document A:hover {
text-decoration:underline;
color:#000000;
}
.newest_document_default_normal .newest_document_default_box .document A:visited {
color:#AAAAAA;
}
.newest_document_default_normal .newest_document_default_box .document .comment A {
font-size:7pt;
font-family:tahoma;
color:#AAAAAA;
letter-spacing:-1px;
}
.newest_document_default_normal .newest_document_default_box .document .writer {
font-size:9pt;
font-family:tahoma;
color:#AAAAAA;
}
.newest_document_default_normal .newest_document_default_box .regdate {
color:#AAAAAA;
font-size:8pt;
font-family:tahoma;
float:right;
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 589 B

View file

@ -0,0 +1,16 @@
<?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">제로</name>
<description xml:lang="ko">최신글 목록 위젯의 기본 스킨</description>
</maker>
<colorset>
<color name="normal">
<title xml:lang="ko">기본 컬러</title>
</color>
<color name="blue">
<title xml:lang="ko">푸른계통의 컬러</title>
</color>
</colorset>
</skin>

View file

@ -0,0 +1,25 @@
<?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">제로</name>
<description xml:lang="ko">최근 엮인글 (trackback)을 출력하는 위젯입니다.</description>
</author>
<extra_vars>
<var id="title">
<name xml:lang="ko">제목</name>
<type>text</type>
<description xml:lang="ko">최근 엮인글 제목으로 출력됩니다.</description>
</var>
<var id="list_count">
<name xml:lang="ko">목록수</name>
<type>text</type>
<description xml:lang="ko">출력될 목록의 수를 정하실 수 있습니다. (기본 5개)</description>
</var>
<var id="mid_list">
<name xml:lang="ko">대상 모듈</name>
<type>mid_list</type>
<description xml:lang="ko">선택하신 모듈에 등록된 글을 대상으로 합니다.</description>
</var>
</extra_vars>
</widget>

View file

@ -0,0 +1,57 @@
<?php
/**
* @class newest_trackback
* @author zero (zero@nzeo.com)
* @brief 최근 엮인글을 출력하는 위젯
* @version 0.1
**/
class newest_trackback extends WidgetHandler {
/**
* @brief 위젯의 실행 부분
*
* ./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;
$list_count = (int)$args->list_count;
if(!$list_count) $list_count = 5;
$mid_list = explode(",",$args->mid_list);
// TrackbackModel::getTrackbackList()를 이용하기 위한 변수 정리
$obj->mid = $mid_list;
$obj->sort_index = $order_target;
$obj->list_count = $list_count;
// trackback 모듈의 model 객체를 받아서 getTrackbackList() method를 실행
$oTrackbackModel = &getModel('trackback');
$output = $oTrackbackModel->getNewestTrackbackList($obj);
// 템플릿 파일에서 사용할 변수들을 세팅
if(count($mid_list)==1) $widget_info->module_name = $mid_list[0];
$widget_info->title = $title;
$widget_info->trackback_list = $output->data;
preg_match_all('/(width|height)([^[:digit:]]+)([0-9]+)/i',$args->style,$matches);
$widget_info->width = trim($matches[3][0]);
Context::set('widget_info', $widget_info);
// 템플릿의 스킨 경로를 지정 (skin, colorset에 따른 값을 설정)
$tpl_path = sprintf('%sskins/%s', $this->widget_path, $args->skin);
Context::set('colorset', $args->colorset);
// 템플릿 파일을 지정
$tpl_file = 'list';
// 템플릿 컴파일
$oTemplate = &TemplateHandler::getInstance();
return $oTemplate->compile($tpl_path, $tpl_file);
}
}
?>

View file

@ -0,0 +1,24 @@
<!-- 설정된 컬러셋의 종류에 따라서 css파일을 import 합니다 -->
<!--@if($colorset=="normal"||!$colorset)-->
<!--%import("normal/style.css")-->
<!--@end-->
<div class="newest_trackback_{$colorset}" style="width:100%">
<div class="newest_trackback_box">
<!--@if($widget_info->title)-->
<div class="title_box">
<div class="title">{$widget_info->title}</div>
</div>
<!--@end-->
<div class="trackback_box">
<!--@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>
</div>
<!--@end-->
</div>
</div>
</div>

View file

@ -0,0 +1,45 @@
.newest_trackback_normal {
}
.newest_trackback_normal .newest_trackback_box {
margin-bottom:5px;
}
.newest_trackback_normal .newest_trackback_box .title_box {
padding:5px;
height:14px;
overflow:hidden;
color:#888888;
}
.newest_trackback_normal .newest_trackback_box .title_box .title {
font-weight:bold;
height:14px;
float:left;
}
.newest_trackback_normal .newest_trackback_box .trackback_box {
padding:5px 3px 3px 1px;
clear:both;
border:3px solid #EEEEEE;
overflow:hidden;
}
.newest_trackback_normal .newest_trackback_box .trackback {
padding:0px 0px 5px 5px;
color:#AAAAAA;
}
.newest_trackback_normal .newest_trackback_box .trackback A {
text-decoration:none;
color:#555555;
}
.newest_trackback_normal .newest_trackback_box .trackback A:hover {
text-decoration:underline;
color:#000000;
}
.newest_trackback_normal .newest_trackback_box .trackback A:visited {
color:#AAAAAA;
}

View 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">제로</name>
<description xml:lang="ko">블로그 스타일로 최신 엮인글 출력합니다.</description>
</maker>
<colorset>
<color name="normal">
<title xml:lang="ko">기본 컬러</title>
</color>
</colorset>
</skin>

View 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>

View file

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

Binary file not shown.

View 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>

Binary file not shown.

View 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&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);
}
}
?>

View file

@ -0,0 +1,25 @@
<?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">제로</name>
<description xml:lang="ko">선택된 모듈의 꼬리표 목록을 정해진 순위만큼 노출하여 줍니다</description>
</author>
<extra_vars>
<var id="title">
<name xml:lang="ko">제목</name>
<type>text</type>
<description xml:lang="ko">꼬리표 출력시 제목으로 출력됩니다.</description>
</var>
<var id="list_count">
<name xml:lang="ko">목록수</name>
<type>text</type>
<description xml:lang="ko">출력될 목록의 수를 정하실 수 있습니다. (기본 20개)</description>
</var>
<var id="mid_list">
<name xml:lang="ko">대상 모듈</name>
<type>mid_list</type>
<description xml:lang="ko">선택하신 모듈에 등록된 꼬리표를 대상으로 합니다.</description>
</var>
</extra_vars>
</widget>

View file

@ -0,0 +1,28 @@
<!-- 설정된 컬러셋의 종류에 따라서 css파일을 import 합니다 -->
<!--@if($colorset=="normal"||!$colorset)-->
<!--%import("normal/style.css")-->
<!--@end-->
<div class="tag_list_{$colorset}" style="width:100%">
<div class="tag_list_box">
<!--@if($widget_info->title)-->
<div class="title_box">
<div class="title">{$widget_info->title}</div>
</div>
<!--@end-->
<div class="tag_box">
<!--@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>
<!--@else-->
<a href="{getUrl('','mid',$layout_info->mid,'search_target','tag','search_keyword',urlencode($val->tag))}">{cut_str($val->tag,15,'...')}</a>
<!--@end-->
</div>
<!--@end-->
</div>
</div>
</div>

View file

@ -0,0 +1,52 @@
.tag_list_normal {
}
.tag_list_normal .tag_list_box {
margin-bottom:5px;
}
.tag_list_normal .tag_list_box .title_box {
padding:5px;
height:14px;
overflow:hidden;
color:#888888;
}
.tag_list_normal .tag_list_box .title_box .title {
font-weight:bold;
height:14px;
float:left;
}
.tag_list_normal .tag_list_box .tag_box {
padding:5px;
clear:both;
border:3px solid #EEEEEE;
}
.tag_list_normal .tag_list_box .tag {
display:inline;
margin-right:5px;
color:#AAAAAA;
}
.tag_list_normal .tag_list_box .tag A {
text-decoration:none;
color:#555555;
}
.tag_list_normal .tag_list_box .tag A:hover {
text-decoration:underline;
color:#000000;
}
.tag_list_normal .tag_list_box .tag A:visited {
color:#AAAAAA;
}
.tag_list_normal .tag_list_box .tag .tag A {
font-size:7pt;
font-family:tahoma;
color:#AAAAAA;
letter-spacing:-1px;
}

View 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">제로</name>
<description xml:lang="ko">꼬리표 목록을 출력합니다.</description>
</maker>
<colorset>
<color name="normal">
<title xml:lang="ko">기본 컬러</title>
</color>
</colorset>
</skin>

View file

@ -0,0 +1,54 @@
<?php
/**
* @class tag_list
* @author zero (zero@nzeo.com)
* @brief 꼬리표 목록 출력
* @version 0.1
**/
class tag_list extends WidgetHandler {
/**
* @brief 위젯의 실행 부분
*
* ./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;
$mid_list = explode(",",$args->mid_list);
// TagModel::getTagList()를 이용하기 위한 변수 정리
$obj->mid = $mid_list;
$obj->list_count = $list_count;
// tag 모듈의 model 객체를 받아서 getTagList() method를 실행
$oTagModel = &getModel('tag');
$output = $oTagModel->getTagList($obj);
// 템플릿 파일에서 사용할 변수들을 세팅
if(count($mid_list)==1) $widget_info->module_name = $mid_list[0];
$widget_info->title = $title;
$widget_info->tag_list = $output->data;
preg_match_all('/(width|height)([^[:digit:]]+)([0-9]+)/i',$args->style,$matches);
$widget_info->width = trim($matches[3][0]);
Context::set('widget_info', $widget_info);
// 템플릿의 스킨 경로를 지정 (skin, colorset에 따른 값을 설정)
$tpl_path = sprintf('%sskins/%s', $this->widget_path, $args->skin);
Context::set('colorset', $args->colorset);
// 템플릿 파일을 지정
$tpl_file = 'list';
// 템플릿 컴파일
$oTemplate = &TemplateHandler::getInstance();
return $oTemplate->compile($tpl_path, $tpl_file);
}
}
?>