From 37743d8f430df49237808cd0f879d55606702157 Mon Sep 17 00:00:00 2001 From: zero Date: Fri, 22 Jun 2007 05:29:18 +0000 Subject: [PATCH] git-svn-id: http://xe-core.googlecode.com/svn/trunk@1737 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- modules/board/skins/xe_gallery/css/white.css | 10 +- modules/board/skins/xe_gallery/list.html | 125 +++++++++---------- modules/board/skins/xe_gallery/skin.xml | 8 +- modules/board/skins/xe_webzine/list.html | 2 +- modules/document/document.item.php | 19 +-- 5 files changed, 78 insertions(+), 86 deletions(-) diff --git a/modules/board/skins/xe_gallery/css/white.css b/modules/board/skins/xe_gallery/css/white.css index a836c3d90..08a2d5a90 100644 --- a/modules/board/skins/xe_gallery/css/white.css +++ b/modules/board/skins/xe_gallery/css/white.css @@ -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;} diff --git a/modules/board/skins/xe_gallery/list.html b/modules/board/skins/xe_gallery/list.html index db85c1fa4..40eb2f516 100644 --- a/modules/board/skins/xe_gallery/list.html +++ b/modules/board/skins/xe_gallery/list.html @@ -13,10 +13,9 @@ - - + + - - {@ $order_icon = "buttonDescending.gif" } @@ -48,25 +47,12 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + +
{$lang->no} +
{$lang->title} {$lang->title}{$lang->writer}
76" class="title"> - {$lang->no_documents} -
{$lang->notice}{$category_list[$document->get('category_srl')]->title} + document_srl])-->checked="true" /> @@ -88,61 +74,68 @@ {$document->getTrackbackCount()}
{$document->getNickName()}
{$document->get('readed_count')} {$document->get('voted_count')} {$document->getRegdate('Y-m-d')}
{$no}{$category_list[$document->get('category_srl')]->title} - - - - - - - - document_srl])-->checked="true" /> - - - - {$document->getTitleText($module_info->subject_cut_size)} - - {$document->getTitleText($module_info->subject_cut_size)} - - - {$document->getTitleText($module_info->subject_cut_size)} - - - - {$document->getCommentCount()} - - - - {$document->getTrackbackCount()} - -
{$document->getNickName()}
{$document->get('readed_count')}{$document->get('voted_count')}{$document->getRegdate('Y-m-d')}
65" class="summary">{$document->getSummary(140)}
+ + + + + +
+ + + +
+ + + + + + +
+ + document_srl])-->checked="true" /> + + + + {$document->getTitleText(8,'')} + + {$document->getTitleText(8,'')} + + + {$document->getTitleText(8,'')} + + + + ({$document->getCommentCount()}) + + + + [{$document->getTrackbackCount()}] + + +
+
{$document->getNickName()}
+
{$document->getRegdate('Y.m.d')}
+
+
+
+ {$lang->readed_count} {$document->get('readed_count')} + | {$lang->voted_count} {$document->get('voted_count')} +
+
+ + + +
diff --git a/modules/board/skins/xe_gallery/skin.xml b/modules/board/skins/xe_gallery/skin.xml index 6a4a35dc3..e626f3a61 100644 --- a/modules/board/skins/xe_gallery/skin.xml +++ b/modules/board/skins/xe_gallery/skin.xml @@ -1,10 +1,10 @@ - 제로보드XE 게시판 기본 스킨(웹진형) + 제로보드XE 게시판 기본 스킨 (갤러리형) (주)NHN - 제로보드XE 게시판의 웹진형태 기본 스킨입니다. + 제로보드XE 게시판의 갤러리형태의 기본 스킨입니다. 디자인 : 서기정 HTML/CSS : 정찬명 @@ -27,9 +27,5 @@ 게시판 상세 설명 게시판 제목 아래 표시될 설명을 입력하실 수 있습니다. - - 제목 글자수 - 제목 글자수를 지정할 수 있습니다. (0또는 비워주시면 자르지 않습니다) - diff --git a/modules/board/skins/xe_webzine/list.html b/modules/board/skins/xe_webzine/list.html index db85c1fa4..335136a1b 100644 --- a/modules/board/skins/xe_webzine/list.html +++ b/modules/board/skins/xe_webzine/list.html @@ -104,7 +104,7 @@ - + diff --git a/modules/document/document.item.php b/modules/document/document.item.php index 6d00534ac..cf07ccf0f 100644 --- a/modules/document/document.item.php +++ b/modules/document/document.item.php @@ -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); }