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

This commit is contained in:
zero 2007-06-22 05:29:18 +00:00
parent f19a1bad3f
commit 37743d8f43
5 changed files with 78 additions and 86 deletions

View file

@ -87,14 +87,14 @@ Jeong, Chan Myeong 070601~070630
.boardList.thumbnail { margin-top:-1px; border-bottom:none;}
.boardList.thumbnail td { border-top:none; border-bottom:1px solid #eff0ed; padding:1.5em 0 0 1.5em; overflow:hidden;}
.boardList.thumbnail div.cell { float:left; width:130px; margin:0 1.5em 0 0; padding-bottom:1.5em;}
.boardList.thumbnail div.cell { float:left; width:128px; height:200px; margin:0 1.5em 0 0; padding-bottom:1.5em;}
.boardList.thumbnail div.cell img.thumb { padding:2px; border:1px solid #e0e1db; display:block; margin-bottom:1em;}
.boardList.thumbnail div.title { color:#444444; margin-bottom:.2em; padding-left:3px;}
.boardList.thumbnail div.title a { color:#444444;}
.boardList.thumbnail div.nameAndDate { font-size:.9em; color:#999999; margin-bottom:.2em; padding-left:3px;}
.boardList.thumbnail div.nameAndDate a { color:#999999;}
.boardList.thumbnail div.nameAndDate .date { font:.8em Tahoma; color:#999999;}
.boardList.thumbnail div.readAndRecommend { font-size:.9em; color:#666666; padding-left:3px;}
.boardList.thumbnail div.nameAndDate { font-size:.9em; color:#999999; margin-bottom:.2em; padding-left:3px; clear:both;}
.boardList.thumbnail div.nameAndDate .author { float:left; color:#999999; margin-right:.3em; margin-top:.3em}
.boardList.thumbnail div.nameAndDate .date { float:left; font:.8em Tahoma; color:#999999; margin-top:.3em}
.boardList.thumbnail div.readAndRecommend { padding-top:2px; clear:both; font-size:.9em; color:#666666; padding-left:3px;}
.boardList.thumbnail div.readAndRecommend .num { font:.8em Tahoma;}
.boardList.thumbnail div.readAndRecommend .vr { color:#dddddd;}
.boardList.thumbnail div.readAndRecommend strong.num { font:bold .8em Tahoma; color:#ff6600;}

View file

@ -13,10 +13,9 @@
<table cellspacing="0" summary="" class="boardList">
<thead>
<tr>
<th scope="col" class="num">{$lang->no}</th>
<!--@if($module_info->use_category == "Y")-->
<!-- 카테고리 사용시 카테고리 선택 표시 -->
<th scope="col" class="category">
<th scope="col" class="category thumbStyle" colspan="2">
<form action="./" method="get">
<select name="category" id="board_category">
<option value="" selected="selected">{$lang->category}</option>
@ -27,9 +26,9 @@
<input type="button" name="go_button" value="GO" onclick="doChangeCategory(); return false;" class="buttonTypeGo" />
</form>
</th>
<!--@else-->
<th scope="col" class="title thumbStyle" colspan="2">{$lang->title}</th>
<!--@end-->
<th scope="col" class="title" colspan="2">{$lang->title}</th>
<th class="author" scope="col">{$lang->writer}</th>
<!--@if($order_type == "desc")-->
{@ $order_icon = "buttonDescending.gif" }
@ -48,25 +47,12 @@
</thead>
<tbody>
<!--@if(!$document_list)-->
<!-- 게시물이 없으면 등록된 글이 없음을 표시 -->
<tr class="bg0">
<td colspan="<!--@if($module_info->use_category=="Y")-->7<!--@else-->6<!--@end-->" class="title">
{$lang->no_documents}
</td>
</tr>
<!--@end-->
<!--@foreach($document_list as $no => $document)-->
<!--@if($document->isNotice())-->
<tr class="notice">
<td class="num">{$lang->notice}</td>
<!--@if($module_info->use_category == "Y")-->
<td class="category">{$category_list[$document->get('category_srl')]->title}</td>
<!--@end-->
<td class="title" colspan="2">
<td class="title">
<!--@if($grant->is_admin)-->
<input type="checkbox" value="{$document->document_srl}" onclick="doAddCart('{$mid}',this)" <!--@if($check_list[$document->document_srl])-->checked="true"<!--@end--> />
<!--@end-->
@ -88,61 +74,68 @@
<span class="replyAndTrackback" title="Trackbacks"><img src="./images/{$module_info->colorset}/iconTrackback.gif" alt="" width="12" height="13" class="trackback icon" /> <strong>{$document->getTrackbackCount()}</strong></span>
<!--@end-->
</td>
<td class="author"><div class="member_{$document->get('member_srl')}">{$document->getNickName()}</div></td>
<td class="reading">{$document->get('readed_count')}</td>
<td class="recommend">{$document->get('voted_count')}</td>
<td class="date">{$document->getRegdate('Y-m-d')}</td>
</tr>
<!--@else-->
<tr class="bg{($no+1)%2+1}">
<td class="num" rowspan="2">{$no}</td>
<!--@if($module_info->use_category == "Y")-->
<td class="category" rowspan="2">{$category_list[$document->get('category_srl')]->title}</td>
<!--@end-->
<td rowspan="2" class="thumb">
<!--@if($module_info->display_thumnail=='Y' && $document->thumbnailExists(100))-->
<a href="{getUrl('','document_srl',$document->document_srl)}" class="thumbnailMedium"><img src="{$document->getThumbnail(100)}" border="0" alt="" /></a>
<!--@else-->
<img src="./images/blank.gif" width="1" height="1" alt="" />
<!--@end-->
</td>
<td class="title bold">
<!--@if($grant->is_admin)-->
<input type="checkbox" value="{$document->document_srl}" onclick="doAddCart('{$mid}',this)" <!--@if($check_list[$document->document_srl])-->checked="true"<!--@end--> />
<!--@end-->
<!--@if($grant->view)-->
<!--@if($search_target && $search_keyword)-->
<a href="#" onclick="winopen('{getUrl('','document_srl',$document->document_srl)}','viewDocument');return false;">{$document->getTitleText($module_info->subject_cut_size)}</a>
<!--@else-->
<a href="{getUrl('','document_srl',$document->document_srl)}">{$document->getTitleText($module_info->subject_cut_size)}</a>
<!--@end-->
<!--@else-->
{$document->getTitleText($module_info->subject_cut_size)}
<!--@end-->
<!--@if($document->getCommentCount())-->
<span class="replyAndTrackback" title="Replies"><img src="./images/{$module_info->colorset}/iconReply.gif" alt="" width="12" height="12" class="icon" /> <strong>{$document->getCommentCount()}</strong></span>
<!--@end-->
<!--@if($document->getTrackbackCount())-->
<span class="replyAndTrackback" title="Trackbacks"><img src="./images/{$module_info->colorset}/iconTrackback.gif" alt="" width="12" height="13" class="trackback icon" /> <strong>{$document->getTrackbackCount()}</strong></span>
<!--@end-->
</td>
<td class="author"><div class="member_{$document->get('member_srl')}">{$document->getNickName()}</div></td>
<td class="reading">{$document->get('readed_count')}</td>
<td class="recommend">{$document->get('voted_count')}</td>
<td class="date">{$document->getRegdate('Y-m-d')}</td>
</tr>
<tr class="bg{($no+1)%2+1}">
<td colspan="<!--@if($module_info->use_category=="Y")-->6<!--@else-->5<!--@end-->" class="summary"><a href="{getUrl('','document_srl',$document->document_srl)}">{$document->getSummary(140)}</a></td>
</tr>
<!--@end-->
<!--@end-->
</tbody>
</table>
<table cellspacing="0" class="boardList thumbnail">
<tbody>
<tr class="bg1">
<td>
<!--@foreach($document_list as $no => $document)-->
<!--@if(!$document->isNotice())-->
<div class="cell">
<!--@if($document->thumbnailExists(122))-->
<a href="{getUrl('','document_srl',$document->document_srl)}"><img src="{$document->getThumbnail(122)}" border="0" alt="" class="thumb"/></a>
<!--@else-->
<img src="./images/blank.gif" border="0" alt="" class="thumb" width="122" height="122" />
<!--@end-->
<div class="title">
<!--@if($grant->is_admin)-->
<input type="checkbox" value="{$document->document_srl}" onclick="doAddCart('{$mid}',this)" <!--@if($check_list[$document->document_srl])-->checked="true"<!--@end--> />
<!--@end-->
<!--@if($grant->view)-->
<!--@if($search_target && $search_keyword)-->
<a href="#" onclick="winopen('{getUrl('','document_srl',$document->document_srl)}','viewDocument');return false;">{$document->getTitleText(8,'')}</a>
<!--@else-->
<a href="{getUrl('','document_srl',$document->document_srl)}">{$document->getTitleText(8,'')}</a>
<!--@end-->
<!--@else-->
{$document->getTitleText(8,'')}
<!--@end-->
<!--@if($document->getCommentCount())-->
<span class="replyAndTrackback" title="Replies">(<strong>{$document->getCommentCount()}</strong>)</span>
<!--@end-->
<!--@if($document->getTrackbackCount())-->
<span class="replyAndTrackback" title="Trackbacks">[<strong>{$document->getTrackbackCount()}</strong>]</span>
<!--@end-->
<div class="nameAndDate">
<div class="author member_{$document->get('member_srl')}">{$document->getNickName()}</div>
<div class="date">{$document->getRegdate('Y.m.d')}</div>
</div>
</div>
<div class="readAndRecommend">
{$lang->readed_count} <span class="num">{$document->get('readed_count')}</span>
<!--@if($document->get('voted_count'))--><span class="vr">|</span> {$lang->voted_count} <strong class="num">{$document->get('voted_count')}</strong><!--@end-->
</div>
</div>
<!--@end-->
<!--@end-->
</td>
</tr>
</tbody>
</table>

View file

@ -1,10 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<skin>
<title xml:lang="ko">제로보드XE 게시판 기본 스킨(웹진형)</title>
<title xml:lang="ko">제로보드XE 게시판 기본 스킨 (갤러리형)</title>
<maker email_address="zero@zeroboard.com" link="http://www.zeroboard.com" date="2007. 2. 28">
<name xml:lang="ko">(주)NHN</name>
<description xml:lang="ko">
제로보드XE 게시판의 웹진형태 기본 스킨입니다.
제로보드XE 게시판의 갤러리형태의 기본 스킨입니다.
디자인 : 서기정
HTML/CSS : 정찬명
</description>
@ -27,9 +27,5 @@
<title xml:lang="ko">게시판 상세 설명</title>
<description lang="ko">게시판 제목 아래 표시될 설명을 입력하실 수 있습니다.</description>
</var>
<var name="subject_cut_size" type="text">
<title xml:lang="ko">제목 글자수</title>
<description lang="ko">제목 글자수를 지정할 수 있습니다. (0또는 비워주시면 자르지 않습니다)</description>
</var>
</extra_vars>
</skin>

View file

@ -104,7 +104,7 @@
<!--@end-->
<td rowspan="2" class="thumb">
<!--@if($module_info->display_thumnail=='Y' && $document->thumbnailExists(100))-->
<!--@if($document->thumbnailExists(100))-->
<a href="{getUrl('','document_srl',$document->document_srl)}" class="thumbnailMedium"><img src="{$document->getThumbnail(100)}" border="0" alt="" /></a>
<!--@else-->
<img src="./images/blank.gif" width="1" height="1" alt="" />

View file

@ -104,14 +104,14 @@
return htmlspecialchars($this->get('nick_name'));
}
function getTitleText($cut_size = 0) {
return htmlspecialchars($this->getTitle($cut_size));
function getTitleText($cut_size = 0, $tail='...') {
return htmlspecialchars($this->getTitle($cut_size, $tail));
}
function getTitle($cut_size = 0) {
function getTitle($cut_size = 0, $tail='...') {
if($this->isSecret() && !$this->isGranted()) return Context::getLang('msg_is_secret');
if($cut_size) return cut_str($this->get('title'), $cut_size);
if($cut_size) return cut_str($this->get('title'), $cut_size, $tail);
return $this->get('title');
}
@ -207,11 +207,14 @@
FileHandler::getRemoteFile($src, $tmp_file);
}
// 파일정보를 보아서 가로/세로크기가 64보다 작으면 무시시킴
list($width, $height, $type, $attrs) = @getimagesize($tmp_file);
FileHandler::writeFile($thumbnail_file, '', 'w');
if($width <= 64 && $height <= 64) FileHandler::writeFile($thumbnail_file, '', 'w');
else FileHandler::createImageFile($tmp_file, $thumbnail_file, 100, 100, 'gif');
if(file_exists($tmp_file)) {
// 파일정보를 보아서 가로/세로크기가 64보다 작으면 무시시킴
list($s_width, $s_height, $s_type, $s_attrs) = @getimagesize($tmp_file);
if($s_width > 64 || $s_height > 64) FileHandler::createImageFile($tmp_file, $thumbnail_file, $width, $width, 'gif');
}
@unlink($tmp_file);
}