1. 플래닛 글 위젯 추가 2. 최신글 위젯 스킨에 xe_official 스킨 추가

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@5176 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
zero 2008-12-24 07:31:20 +00:00
parent 13238f50f2
commit 5eb6ca353c
17 changed files with 295 additions and 2 deletions

View file

@ -0,0 +1,16 @@
.latest_comment_black { width:100%; padding-bottom:15px; overflow:hidden; position:relative;}
.latest_comment_black h2 { margin:0; display:block; height:21px; padding:9px 0 0 9px; margin-bottom:12px; color:#ffffff; background:url(../images/black/lineNotice.gif) no-repeat left bottom; font-size:1em;}
.latest_comment_black ul { margin:0; padding:0; }
.latest_comment_black ul li { height:20px; background:url(../images/black/bulletD0.gif) no-repeat left 5px; padding-left:10px; overflow:hidden; list-style:none; white-space:nowrap;}
.latest_comment_black ul li .title a { color:#818181; text-decoration:none; }
.latest_comment_black ul li .title a:hover { text-decoration:underline; }
.latest_comment_black ul li .title span.comment { color:#FE6700; font:.9em Tahoma; }
.latest_comment_black ul li .title span.comment a { color:#FE6700; font:.9em Tahoma; }
.latest_comment_black ul li .date { color:#999999; font:.8em Tahoma; white-space:nowrap; margin-right:5px;}
.latest_comment_black .more { position:absolute; top:12px; right:11px; color:#54564b; font:.8em Tahoma;}
.latest_comment_black a.more { text-decoration:none;}
.latest_comment_black a.more:hover { text-decoration:underline;}

View file

@ -0,0 +1,16 @@
.latest_comment_white { width:100%; padding-bottom:15px; overflow:hidden; position:relative;}
.latest_comment_white h2 { margin:0; display:block; height:21px; padding:9px 0 0 9px; margin-bottom:12px; color:#000000; background:url(../images/white/lineNotice.gif) no-repeat left bottom; font-size:1em;}
.latest_comment_white ul { margin:0; padding:0; }
.latest_comment_white ul li { height:20px; background:url(../images/white/bulletD0.gif) no-repeat left 5px; padding-left:10px; overflow:hidden; list-style:none; white-space:nowrap;}
.latest_comment_white ul li .title a { color:#555555; text-decoration:none; }
.latest_comment_white ul li .title a:hover { text-decoration:underline; }
.latest_comment_white ul li .title span.comment { color:#FE6700; font:.9em Tahoma; }
.latest_comment_white ul li .title span.comment a { color:#FE6700; font:.9em Tahoma; }
.latest_comment_white ul li .date { color:#999999; font:.8em Tahoma; white-space:nowrap; margin-right:5px;}
.latest_comment_white .more { position:absolute; top:12px; right:11px; color:#54564b; font:.8em Tahoma;}
.latest_comment_white a.more { text-decoration:none;}
.latest_comment_white a.more:hover { text-decoration:underline;}

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 139 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 139 B

View file

@ -0,0 +1,26 @@
<!--// 설정된 컬러셋의 종류에 따라서 css파일을 import 합니다 -->
<!--@if($colorset=="black")-->
<!--%import("css/black.css")-->
<!--@else-->
<!--%import("css/white.css")-->
{@ $colorset = "white" }
<!--@end-->
<div class="latest_comment_{$colorset}">
<!--@if($widget_info->title)-->
<h2>{$widget_info->title}</h2>
<!--@end-->
<ul>
<!--@foreach($widget_info->comment_list as $val)-->
<li>
<span class="date">{$val->getRegdate("Y-m-d")}</span>
<span class="title">
<a href="{getUrl('','document_srl',$val->get('document_srl'))}#comment_{$val->get('comment_srl')}">{$val->getSummary($widget_info->subject_cut_size)}</a>
</span>
</li>
<!--@end-->
</ul>
<!--@if($widget_info->title && $widget_info->module_name)-->
<a href="{getUrl('','mid',$widget_info->module_name)}" class="more">more</a>
<!--@end-->
</div>

View file

@ -0,0 +1,42 @@
<?xml version="1.0" encoding="UTF-8"?>
<skin version="0.2">
<title xml:lang="ko">XE 공식 레이아웃용 최신 댓글 스킨</title>
<title xml:lang="jp">XE 공식 레이아웃용 최신 댓글 스킨</title>
<title xml:lang="zh-CN">XE 공식 레이아웃용 최신 댓글 스킨</title>
<title xml:lang="en">XE 공식 레이아웃용 최신 댓글 스킨</title>
<title xml:lang="zh-TW">XE 공식 레이아웃용 최신 댓글 스킨</title>
<description xml:lang="ko">댓글을 출력합니다</description>
<description xml:lang="jp">댓글을 출력합니다</description>
<description xml:lang="zh-CN">댓글을 출력합니다</description>
<description xml:lang="en">댓글을 출력합니다</description>
<description xml:lang="zh-TW">댓글을 출력합니다</description>
<version>0.1</version>
<date>2007-02-28</date>
<link>http://www.zeroboard.com</link>
<author email_address="zero@zeroboard.com" link="http://www.zeroboard.com">
<name xml:lang="ko">제로</name>
<name xml:lang="jp">Zero</name>
<name xml:lang="zh-CN">zero</name>
<name xml:lang="en">zero</name>
<name xml:lang="zh-TW">zero</name>
</author>
<colorset>
<color name="white">
<title xml:lang="ko">흰색 바탕용</title>
<title xml:lang="jp">白い背景用</title>
<title xml:lang="zh-CN">白色背景</title>
<title xml:lang="en">White Background</title>
<title xml:lang="zh-TW">白色背景</title>
</color>
<color name="black">
<title xml:lang="ko">어두운 바탕용</title>
<title xml:lang="jp">暗い背景用</title>
<title xml:lang="zh-CN">暗色背景</title>
<title xml:lang="en">Dark Background</title>
<title xml:lang="zh-TW">暗色背景</title>
</color>
</colorset>
</skin>

View file

@ -186,4 +186,4 @@
<description xml:lang="zh-TW">把所選擇的模組作為目標。</description> <description xml:lang="zh-TW">把所選擇的模組作為目標。</description>
</var> </var>
</extra_vars> </extra_vars>
</widget> </widget>

View file

@ -63,4 +63,4 @@
<title xml:lang="zh-TW">暗色背景</title> <title xml:lang="zh-TW">暗色背景</title>
</color> </color>
</colorset> </colorset>
</skin> </skin>

View file

@ -0,0 +1,48 @@
<?xml version="1.0" encoding="UTF-8"?>
<widget version="0.2">
<title xml:lang="ko">플래닛 최근 글 출력</title>
<description xml:lang="ko">플래닛의 글들만 출력하는 위젯입니다 .</description>
<version>0.1</version>
<date>2008-12-24</date>
<author email_address="zero@zeroboard.com" link="http://blog.nzeo.com">
<name xml:lang="ko">zero</name>
</author>
<extra_vars>
<var id="title">
<type>text</type>
<name xml:lang="ko">제목</name>
<name xml:lang="zh-CN">栏目名</name>
<name xml:lang="jp">タイトル</name>
<name xml:lang="en">Title</name>
<name xml:lang="es">Título</name>
<name xml:lang="ru">Заголовок</name>
<name xml:lang="zh-TW">標題</name>
<description xml:lang="ko">최근 게시물의 제목으로 출력됩니다.</description>
<description xml:lang="zh-CN">显示为最新主题列表的标题。</description>
<description xml:lang="jp">最新の書き込みのタイトルとして表示されます。</description>
<description xml:lang="en">It will be the title of the newest articles.</description>
<description xml:lang="es">Este será el título de los documentos recientes.</description>
<description xml:lang="ru">Это будет заголовком последних статей.</description>
<description xml:lang="zh-TW">顯示最新主題列表的標題。</description>
</var>
<var id="list_count">
<type>text</type>
<name xml:lang="ko">목록수</name>
<name xml:lang="zh-CN">目录数</name>
<name xml:lang="jp">リスト数</name>
<name xml:lang="en">The number of list</name>
<name xml:lang="es">Número de la lista</name>
<name xml:lang="ru">Число списка</name>
<name xml:lang="zh-TW">目錄數</name>
<description xml:lang="ko">출력될 목록의 수를 정하실 수 있습니다. (기본 5개)</description>
<description xml:lang="zh-CN">可设置要显示的目录数。 (默认为5个)</description>
<description xml:lang="jp">出力されるリストの数を指定することができます。(デフォルト5個)</description>
<description xml:lang="en">You can set the number of articles to be displayed. (default is 5)</description>
<description xml:lang="es">Usted puede definir el número de los documentos a mostrar. (predefinido: 5)</description>
<description xml:lang="ru">Вы можете выбрать число списка статей для отображения. (стандарт: 5)</description>
<description xml:lang="zh-TW">設置要顯示的目錄數。(預設是5個)</description>
</var>
</extra_vars>
</widget>

View file

@ -0,0 +1,44 @@
<?php
/**
* @class planet_document
* @author zero (zero@nzeo.com)
* @brief 플래닛 목록 출력
* @version 0.1
**/
class planet_document 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 = 5;
// 플래닛 글 목록 구함
$oPlanetModel = &getModel('planet');
Context::set('planet', $planet = $oPlanetModel->getPlanet());
$output = $oPlanetModel->getNewestContentList(null, $planet->getContentLastDay(), $page, $list_count, 'documents.list_order', 'asc', null);
Context::set('planet_list', $output->data);
// 템플릿의 스킨 경로를 지정 (skin, colorset에 따른 값을 설정)
$tpl_path = sprintf('%sskins/%s', $this->widget_path, $args->skin);
Context::set('colorset', $args->colorset);
// 템플릿 파일을 지정
$tpl_file = 'list';
// 템플릿 컴파일
$oTemplate = &TemplateHandler::getInstance();
$output = $oTemplate->compile($tpl_path, $tpl_file);
return $output;
}
}
?>

View file

@ -0,0 +1,34 @@
@charset "utf-8";
.commentBody.myPlanet .comment .tongue{ margin:0 !important;}
.commentBody.myPlanet .comment .tongue .post,
.commentBody.myPlanet .comment .tongue .postScript,
.commentBody.myPlanet .comment .tongue .postExtra{ *zoom:1;}
/* Comment Body */
.commentBody{ margin:0 0 10px 0; *zoom:1; clear:both; overflow:hidden; width:100%; }
.commentBody .comment{ margin:0 1px 0 0; padding:0; clear:both; *zoom:1; overflow:hidden;}
.commentBody .comment .identity{ width:98px; height:98px; padding:0; float:left; margin:0 -98px 0 0; background:none; *zoom:1;}
.commentBody .comment .identity a{ position:relative; display:block; text-align:center; color:#fff !important; font-weight:bold; text-decoration:none; }
.commentBody .comment .identity a img{ display:block; border:1px solid #000;}
.commentBody .comment .identity a em{ position:absolute; width:96px; text-align:center; left:1px; bottom:1px; display:block; padding:5px 0; font-style:normal; background:#000; opacity:.6; filter:alpha(opacity=60); line-height:normal;}
.commentBody .comment .tongue{ position:relative; margin-left:113px; *zoom:1;}
.commentBody .comment .tongue .post{ margin:0 0 7px 0; }
.commentBody .comment .tongue .post a { color:#06C;}
.commentBody .comment .tongue .post strong{ background:#f7b100; color:#000;}
.commentBody .comment .tongue .postScript{ margin:0 0 5px 0; color:#999;}
.commentBody .comment .tongue .postScript strong{ letter-spacing:-1px; margin-right:5px;}
.commentBody .comment .tongue .postExtra{ overflow:hidden; padding-top:5px; border-top:1px dotted #ccc; *zoom:1;}
.commentBody .comment .tongue .postExtra *{ margin:0; padding:0;}
.commentBody .comment .tongue .postExtra .tag { float:left;}
.commentBody .comment .tongue .postExtra .tag .time{ display:inline; margin-right:5px; color:#999; }
.commentBody .comment .tongue .postExtra .tag dl{ display:inline;}
.commentBody .comment .tongue .postExtra .tag dt{ text-align:center; padding:0 7px; margin-right:5px; display:inline; background:url(../images/bgTag.gif) no-repeat center; font:bold 8pt Tahoma; color:#fff;}
.commentBody .comment .tongue .postExtra .tag dd{ display:inline; position:relative;}
.commentBody .comment .tongue .postExtra .tag dd.tagRead a{ position:relative; margin-right:2px; color:#999; text-decoration:none;}
.commentBody .comment .tongue .postExtra .tag dd.tagRead a strong{ background:#f7b100; color:#fff;}

Binary file not shown.

After

Width:  |  Height:  |  Size: 152 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 291 B

View file

@ -0,0 +1,44 @@
{@ $colorset = "white"}
<!--@if($colorset=="black")-->
<!--%import("css/black.css")-->
<!--@else-->
<!--%import("css/white.css")-->
<!--@end-->
<!--@foreach($planet_list as $no => $item)-->
<div id="commentBody:{$item->get('document_srl')}" class="commentBody <!--@if($planet->getMid() == $item->getPlanetMid())-->myPlanet<!--@end-->">
<!--// Original Text -->
<div class="comment">
<!--@if($planet->getMid() != $item->getPlanetMid())-->
<h3 class="identity"> <a href="{getUrl('','mid',$item->getPlanetMid())}"><img src="{$item->getPlanetPhotoSrc()}" width="96" height="96" alt="{htmlspecialchars($item->nick_name)}" /><em>{htmlspecialchars($item->get('nick_name'))}</em></a> </h3>
<!--@end-->
<div class="tongue">
<div class="post">
{$item->getContent()}
</div>
<!--@if($item->getPostScript())-->
<p class="postScript"><strong>{$lang->planet_postscript}</strong> {htmlspecialchars($item->getPostScript())}</p>
<!--@end-->
<div class="postExtra">
<div class="tag">
<!--// class="tag" | class="tag edit" -->
{@ $regdate = $item->get('regdate') }
<p class="time">{getTimeGap($item->get('regdate'), sprintf('y/m/d a H%s i%s', $lang->unit_hour,$lang->unit_min))}</p>
<dl>
<dt>TAG</dt>
<dd class="tagRead">
<!--@for($i=0,$tag=$item->getArrTags(),$c=count($tag);$i<$c;$i++)-->
<a href="{getUrl('act','dispPlanetContentTagSearch','keyword',urlencode($tag[$i]))}" name="planet_content_tag:{$item->get('document_srl')}">{htmlspecialchars($tag[$i])}</a>
<!--@end-->
</dd>
</dl>
</div>
</div>
</div>
</div>
<!--// //Reply Text -->
<span class="tl"></span><span class="tr"></span><span class="bl"></span><span class="br"></span>
</div>
<!--@end-->

View file

@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<skin version="0.2">
<title xml:lang="ko">XE 공식 레이아웃용 플래닛 글 스킨</title>
<description xml:lang="ko">
플래닛 글들을 출력하는 위젯 스킨입니다.
</description>
<version>0.1</version>
<date>2008-12-24</date>
<link>http://www.zeroboard.com</link>
<author email_address="zero@zeroboard.com" link="http://www.zeroboard.com">
<name xml:lang="ko">zero</name>
</author>
<colorset>
<color name="white">
<title xml:lang="ko">흰색 바탕용</title>
<title xml:lang="jp">白い背景用</title>
<title xml:lang="zh-CN">白色背景</title>
<title xml:lang="en">White Background</title>
<title xml:lang="zh-TW">白色背景</title>
</color>
</colorset>
</skin>