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

This commit is contained in:
zero 2007-04-25 09:01:59 +00:00
parent a2a4c65488
commit b49e62e714
13 changed files with 10 additions and 245 deletions

View file

@ -1,9 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<plugin version="0.1">
<title xml:lang="ko">최근 문서 출력</title>
<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">최근 댓글 (comment)를 출력하는 플러그인입니다.</description>
</author>
<extra_vars>
<var id="title">
@ -11,32 +11,6 @@
<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>

View file

@ -1,12 +1,12 @@
<?php
/**
* @class newest_document
* @class newest_comment
* @author zero (zero@nzeo.com)
* @brief 최근 게시물출력하는 플러그인
* @brief 최근 댓글출력하는 플러그인
* @version 0.1
**/
class newest_document extends PluginHandler {
class newest_comment extends PluginHandler {
/**
* @brief 플러그인의 실행 부분
@ -23,20 +23,20 @@
if(!$list_count) $list_count = 5;
$mid_list = explode(",",$args->mid_list);
// DocumentModel::getDocumentList()를 이용하기 위한 변수 정리
// CommentModel::getCommentList()를 이용하기 위한 변수 정리
$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);
// comment 모듈의 model 객체를 받아서 getCommentList() method를 실행
$oCommentModel = &getModel('comment');
$output = $oCommentModel->getNewestCommentList($obj);
// 템플릿 파일에서 사용할 변수들을 세팅
if(count($mid_list)==1) $plugin_info->module_name = $mid_list[0];
$plugin_info->title = $title;
$plugin_info->document_list = $output->data;
$plugin_info->comment_list = $output->data;
preg_match_all('/(width|height)([^[:digit:]]+)([0-9]+)/i',$args->style,$matches);
$plugin_info->width = trim($matches[3][0]);

Binary file not shown.

Before

Width:  |  Height:  |  Size: 282 B

View file

@ -1,79 +0,0 @@
.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.

Before

Width:  |  Height:  |  Size: 1 KiB

View file

@ -1,35 +0,0 @@
<!-- 설정된 컬러셋의 종류에 따라서 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">{$plugin_info->title}</div>
<!--@if($module_name)-->
<div class="more"><a href="{getUrl('','mid',$plugin_info->module_name)}">more</a></div>
<!--@end-->
</div>
<!--@foreach($plugin_info->document_list as $val)-->
<div class="document_box">
<div class="document">
<a href="{getUrl('','document_srl',$val->document_srl,'comment_count', $val->comment_count)}">{$val->title}</a>
<!--@if($val->comment_count)-->
<span class="comment"><a href="{getUrl('','document_srl',$val->document_srl)}#comment_top_{$val->document_srl}">( {$val->comment_count} )</a></span>
<!--@end-->
<span class="writer">
- {$val->nick_name}
</span>
</div>
<div class="regdate">{zdate($val->regdate, "Y-m-d")}</div>
</div>
<!--@end-->
</div>
</div>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 282 B

View file

@ -1,79 +0,0 @@
.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.

Before

Width:  |  Height:  |  Size: 589 B

View file

@ -1,16 +0,0 @@
<?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>