mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-14 00:39:57 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@1334 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
f8b5f3fe45
commit
ae3dcc2a6d
6 changed files with 12 additions and 12 deletions
|
|
@ -9,7 +9,7 @@
|
|||
<var id="title">
|
||||
<name xml:lang="ko">제목</name>
|
||||
<type>text</type>
|
||||
<description xml:lang="ko">최근 게시물의 제목으로 출력됩니다.</description>
|
||||
<description xml:lang="ko">최근 댓글의 제목으로 출력됩니다.</description>
|
||||
</var>
|
||||
<var id="list_count">
|
||||
<name xml:lang="ko">목록수</name>
|
||||
|
|
|
|||
|
|
@ -1,15 +1,15 @@
|
|||
<?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">최근 댓글 (comment)를 출력하는 플러그인입니다.</description>
|
||||
<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>
|
||||
<description xml:lang="ko">최근 트랙백 제목으로 출력됩니다.</description>
|
||||
</var>
|
||||
<var id="list_count">
|
||||
<name xml:lang="ko">목록수</name>
|
||||
|
|
|
|||
|
|
@ -1,12 +1,12 @@
|
|||
<?php
|
||||
/**
|
||||
* @class newest_comment
|
||||
* @class newest_trackback
|
||||
* @author zero (zero@nzeo.com)
|
||||
* @brief 최근 댓글을 출력하는 플러그인
|
||||
* @brief 최근 엮인글을 출력하는 플러그인
|
||||
* @version 0.1
|
||||
**/
|
||||
|
||||
class newest_comment extends PluginHandler {
|
||||
class newest_trackback extends PluginHandler {
|
||||
|
||||
/**
|
||||
* @brief 플러그인의 실행 부분
|
||||
|
|
@ -23,20 +23,20 @@
|
|||
if(!$list_count) $list_count = 5;
|
||||
$mid_list = explode(",",$args->mid_list);
|
||||
|
||||
// CommentModel::getCommentList()를 이용하기 위한 변수 정리
|
||||
// TrackbackModel::getTrackbackList()를 이용하기 위한 변수 정리
|
||||
$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);
|
||||
// trackback 모듈의 model 객체를 받아서 getTrackbackList() method를 실행
|
||||
$oTrackbackModel = &getModel('trackback');
|
||||
$output = $oTrackbackModel->getNewestTrackbackList($obj);
|
||||
|
||||
// 템플릿 파일에서 사용할 변수들을 세팅
|
||||
if(count($mid_list)==1) $plugin_info->module_name = $mid_list[0];
|
||||
|
||||
$plugin_info->title = $title;
|
||||
$plugin_info->comment_list = $output->data;
|
||||
$plugin_info->trackback_list = $output->data;
|
||||
|
||||
preg_match_all('/(width|height)([^[:digit:]]+)([0-9]+)/i',$args->style,$matches);
|
||||
$plugin_info->width = trim($matches[3][0]);
|
||||
Loading…
Add table
Add a link
Reference in a new issue