mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-02 01:52:10 +09:00
#217 썸네일 생성 방법을 문서 모듈에서 crop/ratio를 정할 수 있게 하고 xe_webzine, xe_gallery에서 방식/가로/세로크기를 지정할 수 있게 함. newest_images 위젯 역시 동일한 설정과 동작을 추가함
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@2734 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
e4d55fc4d1
commit
5bdad63b7f
28 changed files with 514 additions and 267 deletions
|
|
@ -182,7 +182,7 @@
|
|||
/**
|
||||
* @brief 특정 이미지 파일을 특정 위치로 옮김 (옮길때 이미지의 크기를 리사이징할 수 있음..)
|
||||
**/
|
||||
function createImageFile($source_file, $target_file, $resize_width = 0, $resize_height = 0, $target_type = '') {
|
||||
function createImageFile($source_file, $target_file, $resize_width = 0, $resize_height = 0, $target_type = '', $thumbnail_type = 'crop') {
|
||||
if(!file_exists($source_file)) return;
|
||||
if(!$resize_width) $resize_width = 100;
|
||||
if(!$resize_height) $resize_height = $resize_width;
|
||||
|
|
@ -227,8 +227,14 @@
|
|||
if($resize_height>0 && $height >= $resize_height) $height_per = $resize_height / $height;
|
||||
else $height_per = $height / $resize_height;
|
||||
|
||||
if($width_per > $height_per) $per = $height_per;
|
||||
else $per = $width_per;
|
||||
if($thumbnail_type == 'ratio') {
|
||||
if($width_per > $height_per) $per = $height_per;
|
||||
else $per = $width_per;
|
||||
} else {
|
||||
if($width_per < $height_per) $per = $height_per;
|
||||
else $per = $width_per;
|
||||
|
||||
}
|
||||
|
||||
if(!$per) $per = 1;
|
||||
|
||||
|
|
|
|||
|
|
@ -20,6 +20,11 @@
|
|||
{@ $module_info->duration_new = 12 }
|
||||
<!--@end-->
|
||||
|
||||
<!-- 스킨 설정중 썸네일 관련 항목을 지정 -->
|
||||
<!--@if(!$module_info->thumbnail_type)-->{@ $module_info->thumbnail_type = 'crop'; }<!--@end-->
|
||||
<!--@if(!$module_info->thumbnail_width)-->{@ $module_info->thumbnail_width = 100; }<!--@end-->
|
||||
<!--@if(!$module_info->thumbnail_height)-->{@ $module_info->thumbnail_height = 100; }<!--@end-->
|
||||
|
||||
<!-- 상단 텍스트 출력 -->
|
||||
{$module_info->header_text}
|
||||
|
||||
|
|
|
|||
|
|
@ -92,10 +92,10 @@
|
|||
<!--@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>
|
||||
<!--@if($document->thumbnailExists($module_info->thumbnail_width, $module_info->thumbnail_height, $module_info->thumbnail_type))-->
|
||||
<a href="{getUrl('','document_srl',$document->document_srl)}"><img src="{$document->getThumbnail($module_info->thumbnail_width, $module_info->thumbnail_height, $module_info->thumbnail_type)}" border="0" alt="" class="thumb"/></a>
|
||||
<!--@else-->
|
||||
<img src="./images/blank.gif" border="0" alt="" class="thumb" width="122" height="122" />
|
||||
<img src="./images/blank.gif" border="0" alt="" class="thumb" width="{$module_info->thumbnail_width}" height="{$module_info->thumbnail_height}" />
|
||||
<!--@end-->
|
||||
|
||||
<div class="title">
|
||||
|
|
|
|||
|
|
@ -1,119 +1,135 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<skin>
|
||||
<title xml:lang="ko">제로보드XE 게시판 기본 스킨 (갤러리형)</title>
|
||||
<title xml:lang="jp">ゼロボードXE掲示板のデフォルトスキン(ギャラリースタイル)</title>
|
||||
<title xml:lang="zh-CN">Zeroboard XE board 基本皮肤(相册型)</title>
|
||||
<title xml:lang="en">ZeroboardXE Basic Board Skin (Gallery Style)</title>
|
||||
<maker email_address="zero@zeroboard.com" link="http://www.zeroboard.com" date="2007. 2. 28">
|
||||
<name xml:lang="ko">(주)NHN</name>
|
||||
<name xml:lang="jp">(株)NHN</name>
|
||||
<name xml:lang="zh-CN">(株)NHN</name>
|
||||
<name xml:lang="en">NHN Corp</name>
|
||||
<description xml:lang="ko">
|
||||
제로보드XE 게시판의 갤러리형태의 기본 스킨입니다.
|
||||
디자인 : 서기정 (http://blog.naver.com/addcozy)
|
||||
HTML/CSS : 정찬명 (http://naradesign.net)
|
||||
</description>
|
||||
<description xml:lang="jp">
|
||||
ゼロボードXEのギャラリースタイルのデフォルトスキンです。
|
||||
デザイン:ソギジョン (http://blog.naver.com/addcozy)
|
||||
HTML/CSS:ジョンチャンミョン (http://naradesign.net)
|
||||
</description>
|
||||
<description xml:lang="zh-CN">
|
||||
zeroboard XE Board的相册型基本皮肤。
|
||||
设计 : Ki-Jeong Seo (http://blog.naver.com/addcozy)
|
||||
HTML/CSS : Chan-Myung Jeong (http://naradesign.net)
|
||||
</description>
|
||||
<description xml:lang="en">
|
||||
This is the basic gallery style board skin of Zeroboard XE.
|
||||
Design : Ki-Jeong Seo (http://blog.naver.com/addcozy)
|
||||
HTML/CSS : Chan-Myung Jeong (http://naradesign.net)
|
||||
</description>
|
||||
</maker>
|
||||
<colorset>
|
||||
<color name="white" src="screenshot/white.gif">
|
||||
<title xml:lang="ko">하얀색(기본)</title>
|
||||
<title xml:lang="jp">白(デフォルト)</title>
|
||||
<title xml:lang="zh-CN">白色(基本)</title>
|
||||
<title xml:lang="en">White (default)</title>
|
||||
</color>
|
||||
<color name="cyan" src="screenshot/cyan.gif">
|
||||
<title xml:lang="ko">청록색</title>
|
||||
<title xml:lang="jp">青緑</title>
|
||||
<title xml:lang="zh-CN">青绿色</title>
|
||||
<title xml:lang="en">Cyan</title>
|
||||
</color>
|
||||
<color name="green" src="screenshot/green.gif">
|
||||
<title xml:lang="ko">초록색</title>
|
||||
<title xml:lang="jp">緑</title>
|
||||
<title xml:lang="zh-CN">绿色</title>
|
||||
<title xml:lang="en">Green</title>
|
||||
</color>
|
||||
<color name="red" src="screenshot/red.gif">
|
||||
<title xml:lang="ko">빨간색</title>
|
||||
<title xml:lang="jp">赤</title>
|
||||
<title xml:lang="zh-CN">红色</title>
|
||||
<title xml:lang="en">Red</title>
|
||||
</color>
|
||||
<color name="purple" src="screenshot/purple.gif">
|
||||
<title xml:lang="ko">보라색</title>
|
||||
<title xml:lang="jp">紫</title>
|
||||
<title xml:lang="zh-CN">紫色</title>
|
||||
<title xml:lang="en">Purple</title>
|
||||
<title xml:lang="ko">제로보드XE 게시판 기본 스킨 (갤러리형)</title>
|
||||
<title xml:lang="jp">ゼロボードXE掲示板のデフォルトスキン(ギャラリースタイル)</title>
|
||||
<title xml:lang="zh-CN">Zeroboard XE board 基本皮肤(相册型)</title>
|
||||
<title xml:lang="en">ZeroboardXE Basic Board Skin (Gallery Style)</title>
|
||||
<maker email_address="zero@zeroboard.com" link="http://www.zeroboard.com" date="2007. 2. 28">
|
||||
<name xml:lang="ko">(주)NHN</name>
|
||||
<name xml:lang="jp">(株)NHN</name>
|
||||
<name xml:lang="zh-CN">(株)NHN</name>
|
||||
<name xml:lang="en">NHN Corp</name>
|
||||
<description xml:lang="ko">
|
||||
제로보드XE 게시판의 갤러리형태의 기본 스킨입니다.
|
||||
디자인 : 서기정 (http://blog.naver.com/addcozy)
|
||||
HTML/CSS : 정찬명 (http://naradesign.net)
|
||||
</description>
|
||||
<description xml:lang="jp">
|
||||
ゼロボードXEのギャラリースタイルのデフォルトスキンです。
|
||||
デザイン:ソギジョン (http://blog.naver.com/addcozy)
|
||||
HTML/CSS:ジョンチャンミョン (http://naradesign.net)
|
||||
</description>
|
||||
<description xml:lang="zh-CN">
|
||||
zeroboard XE Board的相册型基本皮肤。
|
||||
设计 : Ki-Jeong Seo (http://blog.naver.com/addcozy)
|
||||
HTML/CSS : Chan-Myung Jeong (http://naradesign.net)
|
||||
</description>
|
||||
<description xml:lang="en">
|
||||
This is the basic gallery style board skin of Zeroboard XE.
|
||||
Design : Ki-Jeong Seo (http://blog.naver.com/addcozy)
|
||||
HTML/CSS : Chan-Myung Jeong (http://naradesign.net)
|
||||
</description>
|
||||
</maker>
|
||||
<colorset>
|
||||
<color name="white" src="screenshot/white.gif">
|
||||
<title xml:lang="ko">하얀색(기본)</title>
|
||||
<title xml:lang="jp">白(デフォルト)</title>
|
||||
<title xml:lang="zh-CN">白色(基本)</title>
|
||||
<title xml:lang="en">White (default)</title>
|
||||
</color>
|
||||
<color name="cyan" src="screenshot/cyan.gif">
|
||||
<title xml:lang="ko">청록색</title>
|
||||
<title xml:lang="jp">青緑</title>
|
||||
<title xml:lang="zh-CN">青绿色</title>
|
||||
<title xml:lang="en">Cyan</title>
|
||||
</color>
|
||||
<color name="green" src="screenshot/green.gif">
|
||||
<title xml:lang="ko">초록색</title>
|
||||
<title xml:lang="jp">緑</title>
|
||||
<title xml:lang="zh-CN">绿色</title>
|
||||
<title xml:lang="en">Green</title>
|
||||
</color>
|
||||
<color name="red" src="screenshot/red.gif">
|
||||
<title xml:lang="ko">빨간색</title>
|
||||
<title xml:lang="jp">赤</title>
|
||||
<title xml:lang="zh-CN">红色</title>
|
||||
<title xml:lang="en">Red</title>
|
||||
</color>
|
||||
<color name="purple" src="screenshot/purple.gif">
|
||||
<title xml:lang="ko">보라색</title>
|
||||
<title xml:lang="jp">紫</title>
|
||||
<title xml:lang="zh-CN">紫色</title>
|
||||
<title xml:lang="en">Purple</title>
|
||||
</color>
|
||||
</colorset>
|
||||
<extra_vars>
|
||||
<var name="order_target" type="select">
|
||||
<title xml:lang="ko">정렬 대상</title>
|
||||
<title xml:lang="jp">ソート対象</title>
|
||||
<title xml:lang="zh-CN">排序对象</title>
|
||||
<title xml:lang="en">Align Target</title>
|
||||
<type>select</type>
|
||||
<description xml:lang="ko">등록된 순서 또는 변경된 순서로 정렬을 할 수 있습니다.</description>
|
||||
<description xml:lang="jp">登録された順、変更された順でソートできます。</description>
|
||||
<description xml:lang="zh-CN">可对主题按发表顺或最后更新顺进行排序。</description>
|
||||
<description xml:lang="en">It can align articles as registered order or modified order.</description>
|
||||
<default>newest</default>
|
||||
<default>updated</default>
|
||||
</var>
|
||||
<var name="title" type="text">
|
||||
<title xml:lang="ko">게시판 제목</title>
|
||||
<title xml:lang="jp">掲示板タイトル</title>
|
||||
<title xml:lang="zh-CN">版面标题</title>
|
||||
<title xml:lang="en">Title of Board</title>
|
||||
<description xml:lang="ko">게시판의 제목을 적어주세요.</description>
|
||||
<description xml:lang="jp">掲示板タイトルを入力してください。</description>
|
||||
<description xml:lang="zh-CN">请输入版面标题。(留空为不显示)</description>
|
||||
<description xml:lang="en">Please input the title of board.</description>
|
||||
</var>
|
||||
<var name="sub_title" type="text">
|
||||
<title xml:lang="ko">게시판 부제목</title>
|
||||
<title xml:lang="jp">掲示板サブタイトル</title>
|
||||
<title xml:lang="zh-CN">版面副标题</title>
|
||||
<title xml:lang="en">Subtitle of Board</title>
|
||||
<description lang="ko">게시판 제목 옆에 나타날 부제목을 적어주세요.</description>
|
||||
<description lang="jp">掲示板タイトルの横表示されるサブタイトルを入力してください。</description>
|
||||
<description lang="zh-CN">请输入显示在版面标题旁的副标题。(留空为不显示)</description>
|
||||
<description lang="en">Please input the subtitle of board which will be displayed beside of board title.</description>
|
||||
</var>
|
||||
<var name="comment" type="textarea">
|
||||
<title xml:lang="ko">게시판 상세 설명</title>
|
||||
<title xml:lang="jp">掲示板の説明</title>
|
||||
<title xml:lang="zh-CN">版面详细说明</title>
|
||||
<title xml:lang="en">Description of Board</title>
|
||||
<description lang="ko">게시판 제목 아래 표시될 설명을 입력하실 수 있습니다.</description>
|
||||
<description lang="jp">掲示板タイトルの下に表示される説明文入力してください。</description>
|
||||
<description lang="zh-CN">请输入显示在版面标题下的说明。(留空为不显示)</description>
|
||||
<description lang="en">You may input description which will be displayed under the board title.</description>
|
||||
</var>
|
||||
<var name="duration_new" type="text">
|
||||
<title xml:lang="ko">new표시 시간 (hours)</title>
|
||||
<title xml:lang="zh-CN">new图标显示时间(hours)</title>
|
||||
<title xml:lang="en">Duration of indication for new item</title>
|
||||
<description xml:lang="ko">새로 등록된 게시물의 new 표시시간을 정할 수 있습니다. </description>
|
||||
<description xml:lang="zh-CN">可以设置最新更新主题的new图标显示时间。</description>
|
||||
<description xml:lang="en">You may set the duration of indication for fresh item. </description>
|
||||
<default>24</default>
|
||||
</var>
|
||||
</extra_vars>
|
||||
</colorset>
|
||||
<extra_vars>
|
||||
<var name="order_target" type="select">
|
||||
<title xml:lang="ko">정렬 대상</title>
|
||||
<title xml:lang="jp">ソート対象</title>
|
||||
<title xml:lang="zh-CN">排序对象</title>
|
||||
<title xml:lang="en">Align Target</title>
|
||||
<type>select</type>
|
||||
<description xml:lang="ko">등록된 순서 또는 변경된 순서로 정렬을 할 수 있습니다.</description>
|
||||
<description xml:lang="jp">登録された順、変更された順でソートできます。</description>
|
||||
<description xml:lang="zh-CN">可对主题按发表顺或最后更新顺进行排序。</description>
|
||||
<description xml:lang="en">It can align articles as registered order or modified order.</description>
|
||||
<default>newest</default>
|
||||
<default>updated</default>
|
||||
</var>
|
||||
<var name="title" type="text">
|
||||
<title xml:lang="ko">게시판 제목</title>
|
||||
<title xml:lang="jp">掲示板タイトル</title>
|
||||
<title xml:lang="zh-CN">版面标题</title>
|
||||
<title xml:lang="en">Title of Board</title>
|
||||
<description xml:lang="ko">게시판의 제목을 적어주세요.</description>
|
||||
<description xml:lang="jp">掲示板タイトルを入力してください。</description>
|
||||
<description xml:lang="zh-CN">请输入版面标题。(留空为不显示)</description>
|
||||
<description xml:lang="en">Please input the title of board.</description>
|
||||
</var>
|
||||
<var name="sub_title" type="text">
|
||||
<title xml:lang="ko">게시판 부제목</title>
|
||||
<title xml:lang="jp">掲示板サブタイトル</title>
|
||||
<title xml:lang="zh-CN">版面副标题</title>
|
||||
<title xml:lang="en">Subtitle of Board</title>
|
||||
<description lang="ko">게시판 제목 옆에 나타날 부제목을 적어주세요.</description>
|
||||
<description lang="jp">掲示板タイトルの横表示されるサブタイトルを入力してください。</description>
|
||||
<description lang="zh-CN">请输入显示在版面标题旁的副标题。(留空为不显示)</description>
|
||||
<description lang="en">Please input the subtitle of board which will be displayed beside of board title.</description>
|
||||
</var>
|
||||
<var name="comment" type="textarea">
|
||||
<title xml:lang="ko">게시판 상세 설명</title>
|
||||
<title xml:lang="jp">掲示板の説明</title>
|
||||
<title xml:lang="zh-CN">版面详细说明</title>
|
||||
<title xml:lang="en">Description of Board</title>
|
||||
<description lang="ko">게시판 제목 아래 표시될 설명을 입력하실 수 있습니다.</description>
|
||||
<description lang="jp">掲示板タイトルの下に表示される説明文入力してください。</description>
|
||||
<description lang="zh-CN">请输入显示在版面标题下的说明。(留空为不显示)</description>
|
||||
<description lang="en">You may input description which will be displayed under the board title.</description>
|
||||
</var>
|
||||
<var name="duration_new" type="text">
|
||||
<title xml:lang="ko">new표시 시간 (hours)</title>
|
||||
<title xml:lang="zh-CN">new图标显示时间(hours)</title>
|
||||
<title xml:lang="en">Duration of indication for new item</title>
|
||||
<description xml:lang="ko">새로 등록된 게시물의 new 표시시간을 정할 수 있습니다. </description>
|
||||
<description xml:lang="zh-CN">可以设置最新更新主题的new图标显示时间。</description>
|
||||
<description xml:lang="en">You may set the duration of indication for fresh item. </description>
|
||||
<default>24</default>
|
||||
</var>
|
||||
<var name="thumbnail_type" type="select">
|
||||
<title xml:lang="ko">썸네일 생성 방법</title>
|
||||
<description xml:lang="ko">썸네일 생성 방법을 선택할 수 있습니다. (crop : 꽉 채우기, ratio : 비율 맞추기)</description>
|
||||
<default>crop</default>
|
||||
<default>ratio</default>
|
||||
</var>
|
||||
<var name="thumbnail_width" type="text">
|
||||
<title xml:lang="ko">썸네일 가로크기</title>
|
||||
<description xml:lang="ko">썸네일의 가로 크기를 지정할 수 있습니다. (기본 100px)</description>
|
||||
<default>100</default>
|
||||
</var>
|
||||
<var name="thumbnail_height" type="text">
|
||||
<title xml:lang="ko">썸네일 세로크기</title>
|
||||
<description xml:lang="ko">썸네일의 세로 크기를 지정할 수 있습니다. (기본 100px)</description>
|
||||
<default>100</default>
|
||||
</var>
|
||||
</extra_vars>
|
||||
</skin>
|
||||
|
|
|
|||
|
|
@ -86,7 +86,7 @@ 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; 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;}
|
||||
|
|
|
|||
|
|
@ -20,6 +20,11 @@
|
|||
{@ $module_info->duration_new = 12 }
|
||||
<!--@end-->
|
||||
|
||||
<!-- 스킨 설정중 썸네일 관련 항목을 지정 -->
|
||||
<!--@if(!$module_info->thumbnail_type)-->{@ $module_info->thumbnail_type = 'crop'; }<!--@end-->
|
||||
<!--@if(!$module_info->thumbnail_width)-->{@ $module_info->thumbnail_width = 100; }<!--@end-->
|
||||
<!--@if(!$module_info->thumbnail_height)-->{@ $module_info->thumbnail_height = 100; }<!--@end-->
|
||||
|
||||
<!-- 상단 텍스트 출력 -->
|
||||
{$module_info->header_text}
|
||||
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@
|
|||
<!-- 목록 출력 -->
|
||||
<table cellspacing="0" summary="" class="boardList">
|
||||
<col width="50" />
|
||||
<col width="120" />
|
||||
<col width="{$module_info->thumbnail_width+20}" />
|
||||
<col />
|
||||
<col width="120" />
|
||||
<col width="60" />
|
||||
|
|
@ -101,8 +101,8 @@
|
|||
<tr class="bg{($no+1)%2+1}">
|
||||
|
||||
<td rowspan="2" class="num"><!--@if($document_srl == $document->document_srl)--><img src="./images/common/iconArrowD8.gif" alt="" border="0" /><!--@else-->{$no}<!--@end--></td>
|
||||
<!--@if($document->thumbnailExists(100))-->
|
||||
<td rowspan="2" class="thumb"><a href="{getUrl('','document_srl',$document->document_srl)}" class="thumbnailMedium"><img src="{$document->getThumbnail(100)}" border="0" alt="" /></a></td>
|
||||
<!--@if($document->thumbnailExists($module_info->thumbnail_width, $module_info->thumbnail_height, $module_info->thumbnail_type))-->
|
||||
<td rowspan="2" class="thumb"><a href="{getUrl('','document_srl',$document->document_srl)}" class="thumbnailMedium"><img src="{$document->getThumbnail($module_info->thumbnail_width, $module_info->thumbnail_height, $module_info->thumbnail_type)}" border="0" alt="" /></a></td>
|
||||
<td class="title">
|
||||
<!--@else-->
|
||||
<td class="title" colspan="2">
|
||||
|
|
|
|||
|
|
@ -1,129 +1,144 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<skin>
|
||||
<title xml:lang="ko">제로보드XE 게시판 기본 스킨(웹진형)</title>
|
||||
<title xml:lang="jp">ゼロボードXE掲示板のデフォルトスキン(ウェブジンスタイル)</title>
|
||||
<title xml:lang="zh-CN">Zeroboard XE Board 基本皮肤(网络杂志型)</title>
|
||||
<title xml:lang="en">ZeroboardXE Basic Board Skin (Webzine Style)</title>
|
||||
<maker email_address="zero@zeroboard.com" link="http://www.zeroboard.com" date="2007. 2. 28">
|
||||
<name xml:lang="ko">(주)NHN</name>
|
||||
<name xml:lang="jp">(株)NHN</name>
|
||||
<name xml:lang="zh-CN">(株)NHN</name>
|
||||
<name xml:lang="en">NHN Corp</name>
|
||||
<description xml:lang="ko">
|
||||
제로보드XE 게시판의 웹진형태 기본 스킨입니다.
|
||||
디자인 : 서기정 (http://blog.naver.com/addcozy)
|
||||
HTML/CSS : 정찬명 (http://naradesign.net)
|
||||
</description>
|
||||
<description xml:lang="jp">
|
||||
ゼロボードXE掲示板のウェブジンスタイルのデフォルトスキンです。
|
||||
デザイン:ソギジョン (http://blog.naver.com/addcozy)
|
||||
HTML/CSS:ジョンチャンミョン (http://naradesign.net)
|
||||
</description>
|
||||
<description xml:lang="zh-CN">
|
||||
zeroboard XE Board 网络杂志型基本皮肤。
|
||||
设计 : Ki-Jeong Seo (http://blog.naver.com/addcozy)
|
||||
HTML/CSS : Chan-Myung Jeong (http://naradesign.net)
|
||||
</description>
|
||||
<description xml:lang="en">
|
||||
This is the basic webzine style board skin of Zeroboard XE.
|
||||
Design : Ki-Jeong Seo (http://blog.naver.com/addcozy)
|
||||
HTML/CSS : Chan-Myung Jeong (http://naradesign.net)
|
||||
</description>
|
||||
</maker>
|
||||
<colorset>
|
||||
<color name="white" src="screenshot/white.gif">
|
||||
<title xml:lang="ko">하얀색(기본)</title>
|
||||
<title xml:lang="jp">白(デフォルト)</title>
|
||||
<title xml:lang="zh-CN">白色(基本)</title>
|
||||
<title xml:lang="en">White (default)</title>
|
||||
</color>
|
||||
<color name="cyan" src="screenshot/cyan.gif">
|
||||
<title xml:lang="ko">청록색</title>
|
||||
<title xml:lang="jp">青緑</title>
|
||||
<title xml:lang="zh-CN">青绿色</title>
|
||||
<title xml:lang="en">Cyan</title>
|
||||
</color>
|
||||
<color name="green" src="screenshot/green.gif">
|
||||
<title xml:lang="ko">초록색</title>
|
||||
<title xml:lang="jp">緑</title>
|
||||
<title xml:lang="zh-CN">绿色</title>
|
||||
<title xml:lang="en">Green</title>
|
||||
</color>
|
||||
<color name="red" src="screenshot/red.gif">
|
||||
<title xml:lang="ko">빨간색</title>
|
||||
<title xml:lang="jp">赤</title>
|
||||
<title xml:lang="zh-CN">红色</title>
|
||||
<title xml:lang="en">Red</title>
|
||||
</color>
|
||||
<color name="purple" src="screenshot/purple.gif">
|
||||
<title xml:lang="ko">보라색</title>
|
||||
<title xml:lang="jp">紫</title>
|
||||
<title xml:lang="zh-CN">紫色</title>
|
||||
<title xml:lang="en">Purple</title>
|
||||
</color>
|
||||
</colorset>
|
||||
<extra_vars>
|
||||
<var name="order_target" type="select">
|
||||
<title xml:lang="ko">정렬 대상</title>
|
||||
<title xml:lang="jp">ソート対象</title>
|
||||
<title xml:lang="zh-CN">排序对象</title>
|
||||
<title xml:lang="en">Align Target</title>
|
||||
<type>select</type>
|
||||
<description xml:lang="ko">등록된 순서 또는 변경된 순서로 정렬을 할 수 있습니다.</description>
|
||||
<description xml:lang="jp">登録された順、変更された順でソートできます。</description>
|
||||
<description xml:lang="zh-CN">可对主题按发表顺或最后更新顺进行排序。</description>
|
||||
<description xml:lang="en">It can align articles as registered order or modified order.</description>
|
||||
<default>newest</default>
|
||||
<default>updated</default>
|
||||
</var>
|
||||
<var name="title" type="text">
|
||||
<title xml:lang="ko">게시판 제목</title>
|
||||
<title xml:lang="jp">掲示板タイトル</title>
|
||||
<title xml:lang="zh-CN">版面标题</title>
|
||||
<title xml:lang="en">Title of Board</title>
|
||||
<description xml:lang="ko">게시판의 제목을 적어주세요.</description>
|
||||
<description xml:lang="jp">掲示板タイトルを入力してください。</description>
|
||||
<description xml:lang="zh-CN">请输入版面标题。(留空为不显示)</description>
|
||||
<description xml:lang="en">Please input the title of board.</description>
|
||||
</var>
|
||||
<var name="sub_title" type="text">
|
||||
<title xml:lang="ko">게시판 부제목</title>
|
||||
<title xml:lang="jp">掲示板サブタイトル</title>
|
||||
<title xml:lang="zh-CN">版面副标题</title>
|
||||
<title xml:lang="en">Subtitle of Board</title>
|
||||
<description lang="ko">게시판 제목 옆에 나타날 부제목을 적어주세요.</description>
|
||||
<description lang="jp">掲示板タイトルの横表示されるサブタイトルを入力してください。</description>
|
||||
<description lang="zh-CN">请输入显示在版面标题旁的副标题。(留空为不显示)</description>
|
||||
<description lang="en">Please input the subtitle of board which will be displayed beside of board title.</description>
|
||||
</var>
|
||||
<var name="comment" type="textarea">
|
||||
<title xml:lang="ko">게시판 상세 설명</title>
|
||||
<title xml:lang="jp">掲示板の説明</title>
|
||||
<title xml:lang="zh-CN">版面详细说明</title>
|
||||
<title xml:lang="en">Description of Board</title>
|
||||
<description lang="ko">게시판 제목 아래 표시될 설명을 입력하실 수 있습니다.</description>
|
||||
<description lang="jp">掲示板タイトルの下に表示される説明文入力してください。</description>
|
||||
<description lang="zh-CN">请输入显示在版面标题下的说明。(留空为不显示)</description>
|
||||
<description lang="en">You may input description which will be displayed under the board title.</description>
|
||||
</var>
|
||||
<var name="subject_cut_size" type="text">
|
||||
<title xml:lang="ko">제목 글자수</title>
|
||||
<title xml:lang="jp">タイトルの文字数</title>
|
||||
<title xml:lang="zh-CN">标题字数</title>
|
||||
<title xml:lang="en">Length of Subject</title>
|
||||
<description lang="ko">제목 글자수를 지정할 수 있습니다. (0또는 비워주시면 자르지 않습니다)</description>
|
||||
<description lang="jp">タイトルの文字数が指定できます(「0」または空欄の場合は、文字数を制限しません)。</description>
|
||||
<description lang="zh-CN">可以指定标题字数。(0或留空为不限)</description>
|
||||
<description lang="en">You may set length of title. (0 or blank value will not restrict the length)</description>
|
||||
</var>
|
||||
<var name="duration_new" type="text">
|
||||
<title xml:lang="ko">new표시 시간 (hours)</title>
|
||||
<title xml:lang="zh-CN">new图标显示时间(hours)</title>
|
||||
<title xml:lang="en">Duration of indication for new item</title>
|
||||
<description xml:lang="ko">새로 등록된 게시물의 new 표시시간을 정할 수 있습니다. </description>
|
||||
<description xml:lang="zh-CN">可以设置最新更新主题的new图标显示时间。</description>
|
||||
<description xml:lang="en">You may set the duration of indication for fresh item. </description>
|
||||
<default>24</default>
|
||||
</var>
|
||||
</extra_vars>
|
||||
<title xml:lang="ko">제로보드XE 게시판 기본 스킨(웹진형)</title>
|
||||
<title xml:lang="jp">ゼロボードXE掲示板のデフォルトスキン(ウェブジンスタイル)</title>
|
||||
<title xml:lang="zh-CN">Zeroboard XE Board 基本皮肤(网络杂志型)</title>
|
||||
<title xml:lang="en">ZeroboardXE Basic Board Skin (Webzine Style)</title>
|
||||
<maker email_address="zero@zeroboard.com" link="http://www.zeroboard.com" date="2007. 2. 28">
|
||||
<name xml:lang="ko">(주)NHN</name>
|
||||
<name xml:lang="jp">(株)NHN</name>
|
||||
<name xml:lang="zh-CN">(株)NHN</name>
|
||||
<name xml:lang="en">NHN Corp</name>
|
||||
<description xml:lang="ko">
|
||||
제로보드XE 게시판의 웹진형태 기본 스킨입니다.
|
||||
디자인 : 서기정 (http://blog.naver.com/addcozy)
|
||||
HTML/CSS : 정찬명 (http://naradesign.net)
|
||||
</description>
|
||||
<description xml:lang="jp">
|
||||
ゼロボードXE掲示板のウェブジンスタイルのデフォルトスキンです。
|
||||
デザイン:ソギジョン (http://blog.naver.com/addcozy)
|
||||
HTML/CSS:ジョンチャンミョン (http://naradesign.net)
|
||||
</description>
|
||||
<description xml:lang="zh-CN">
|
||||
zeroboard XE Board 网络杂志型基本皮肤。
|
||||
设计 : Ki-Jeong Seo (http://blog.naver.com/addcozy)
|
||||
HTML/CSS : Chan-Myung Jeong (http://naradesign.net)
|
||||
</description>
|
||||
<description xml:lang="en">
|
||||
This is the basic webzine style board skin of Zeroboard XE.
|
||||
Design : Ki-Jeong Seo (http://blog.naver.com/addcozy)
|
||||
HTML/CSS : Chan-Myung Jeong (http://naradesign.net)
|
||||
</description>
|
||||
</maker>
|
||||
<colorset>
|
||||
<color name="white" src="screenshot/white.gif">
|
||||
<title xml:lang="ko">하얀색(기본)</title>
|
||||
<title xml:lang="jp">白(デフォルト)</title>
|
||||
<title xml:lang="zh-CN">白色(基本)</title>
|
||||
<title xml:lang="en">White (default)</title>
|
||||
</color>
|
||||
<color name="cyan" src="screenshot/cyan.gif">
|
||||
<title xml:lang="ko">청록색</title>
|
||||
<title xml:lang="jp">青緑</title>
|
||||
<title xml:lang="zh-CN">青绿色</title>
|
||||
<title xml:lang="en">Cyan</title>
|
||||
</color>
|
||||
<color name="green" src="screenshot/green.gif">
|
||||
<title xml:lang="ko">초록색</title>
|
||||
<title xml:lang="jp">緑</title>
|
||||
<title xml:lang="zh-CN">绿色</title>
|
||||
<title xml:lang="en">Green</title>
|
||||
</color>
|
||||
<color name="red" src="screenshot/red.gif">
|
||||
<title xml:lang="ko">빨간색</title>
|
||||
<title xml:lang="jp">赤</title>
|
||||
<title xml:lang="zh-CN">红色</title>
|
||||
<title xml:lang="en">Red</title>
|
||||
</color>
|
||||
<color name="purple" src="screenshot/purple.gif">
|
||||
<title xml:lang="ko">보라색</title>
|
||||
<title xml:lang="jp">紫</title>
|
||||
<title xml:lang="zh-CN">紫色</title>
|
||||
<title xml:lang="en">Purple</title>
|
||||
</color>
|
||||
</colorset>
|
||||
<extra_vars>
|
||||
<var name="order_target" type="select">
|
||||
<title xml:lang="ko">정렬 대상</title>
|
||||
<title xml:lang="jp">ソート対象</title>
|
||||
<title xml:lang="zh-CN">排序对象</title>
|
||||
<title xml:lang="en">Align Target</title>
|
||||
<description xml:lang="ko">등록된 순서 또는 변경된 순서로 정렬을 할 수 있습니다.</description>
|
||||
<description xml:lang="jp">登録された順、変更された順でソートできます。</description>
|
||||
<description xml:lang="zh-CN">可对主题按发表顺或最后更新顺进行排序。</description>
|
||||
<description xml:lang="en">It can align articles as registered order or modified order.</description>
|
||||
<default>newest</default>
|
||||
<default>updated</default>
|
||||
</var>
|
||||
<var name="title" type="text">
|
||||
<title xml:lang="ko">게시판 제목</title>
|
||||
<title xml:lang="jp">掲示板タイトル</title>
|
||||
<title xml:lang="zh-CN">版面标题</title>
|
||||
<title xml:lang="en">Title of Board</title>
|
||||
<description xml:lang="ko">게시판의 제목을 적어주세요.</description>
|
||||
<description xml:lang="jp">掲示板タイトルを入力してください。</description>
|
||||
<description xml:lang="zh-CN">请输入版面标题。(留空为不显示)</description>
|
||||
<description xml:lang="en">Please input the title of board.</description>
|
||||
</var>
|
||||
<var name="sub_title" type="text">
|
||||
<title xml:lang="ko">게시판 부제목</title>
|
||||
<title xml:lang="jp">掲示板サブタイトル</title>
|
||||
<title xml:lang="zh-CN">版面副标题</title>
|
||||
<title xml:lang="en">Subtitle of Board</title>
|
||||
<description lang="ko">게시판 제목 옆에 나타날 부제목을 적어주세요.</description>
|
||||
<description lang="jp">掲示板タイトルの横表示されるサブタイトルを入力してください。</description>
|
||||
<description lang="zh-CN">请输入显示在版面标题旁的副标题。(留空为不显示)</description>
|
||||
<description lang="en">Please input the subtitle of board which will be displayed beside of board title.</description>
|
||||
</var>
|
||||
<var name="comment" type="textarea">
|
||||
<title xml:lang="ko">게시판 상세 설명</title>
|
||||
<title xml:lang="jp">掲示板の説明</title>
|
||||
<title xml:lang="zh-CN">版面详细说明</title>
|
||||
<title xml:lang="en">Description of Board</title>
|
||||
<description lang="ko">게시판 제목 아래 표시될 설명을 입력하실 수 있습니다.</description>
|
||||
<description lang="jp">掲示板タイトルの下に表示される説明文入力してください。</description>
|
||||
<description lang="zh-CN">请输入显示在版面标题下的说明。(留空为不显示)</description>
|
||||
<description lang="en">You may input description which will be displayed under the board title.</description>
|
||||
</var>
|
||||
<var name="subject_cut_size" type="text">
|
||||
<title xml:lang="ko">제목 글자수</title>
|
||||
<title xml:lang="jp">タイトルの文字数</title>
|
||||
<title xml:lang="zh-CN">标题字数</title>
|
||||
<title xml:lang="en">Length of Subject</title>
|
||||
<description lang="ko">제목 글자수를 지정할 수 있습니다. (0또는 비워주시면 자르지 않습니다)</description>
|
||||
<description lang="jp">タイトルの文字数が指定できます(「0」または空欄の場合は、文字数を制限しません)。</description>
|
||||
<description lang="zh-CN">可以指定标题字数。(0或留空为不限)</description>
|
||||
<description lang="en">You may set length of title. (0 or blank value will not restrict the length)</description>
|
||||
</var>
|
||||
<var name="duration_new" type="text">
|
||||
<title xml:lang="ko">new표시 시간 (hours)</title>
|
||||
<title xml:lang="zh-CN">new图标显示时间(hours)</title>
|
||||
<title xml:lang="en">Duration of indication for new item</title>
|
||||
<description xml:lang="ko">새로 등록된 게시물의 new 표시시간을 정할 수 있습니다. </description>
|
||||
<description xml:lang="zh-CN">可以设置最新更新主题的new图标显示时间。</description>
|
||||
<description xml:lang="en">You may set the duration of indication for fresh item. </description>
|
||||
<default>24</default>
|
||||
</var>
|
||||
<var name="thumbnail_type" type="select">
|
||||
<title xml:lang="ko">썸네일 생성 방법</title>
|
||||
<description xml:lang="ko">썸네일 생성 방법을 선택할 수 있습니다. (crop : 꽉 채우기, ratio : 비율 맞추기)</description>
|
||||
<default>crop</default>
|
||||
<default>ratio</default>
|
||||
</var>
|
||||
<var name="thumbnail_width" type="text">
|
||||
<title xml:lang="ko">썸네일 가로크기</title>
|
||||
<description xml:lang="ko">썸네일의 가로 크기를 지정할 수 있습니다. (기본 100px)</description>
|
||||
<default>100</default>
|
||||
</var>
|
||||
<var name="thumbnail_height" type="text">
|
||||
<title xml:lang="ko">썸네일 세로크기</title>
|
||||
<description xml:lang="ko">썸네일의 세로 크기를 지정할 수 있습니다. (기본 100px)</description>
|
||||
<default>100</default>
|
||||
</var>
|
||||
</extra_vars>
|
||||
</skin>
|
||||
|
|
|
|||
|
|
@ -6,7 +6,10 @@
|
|||
<action name="dispDocumentPreview" type="view" standalone="true" />
|
||||
|
||||
<action name="dispDocumentAdminList" type="view" admin_index="true" standalone="true" />
|
||||
<action name="dispDocumentAdminConfig" type="view" standalone="true" />
|
||||
|
||||
<action name="procDocumentAdminDeleteChecked" type="controller" standalone="true" />
|
||||
<action name="procDocumentAdminInsertConfig" type="controller" standalone="true" />
|
||||
<action name="procDocumentAdminDeleteAllThumbnail" type="controller" standalone="true" />
|
||||
</actions>
|
||||
</module>
|
||||
|
|
|
|||
|
|
@ -253,5 +253,44 @@
|
|||
|
||||
return new Object();
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief 문서 모듈의 기본설정 저장
|
||||
**/
|
||||
function procDocumentAdminInsertConfig() {
|
||||
// 기본 정보를 받음
|
||||
$args = Context::gets('thumbnail_type');
|
||||
|
||||
// module Controller 객체 생성하여 입력
|
||||
$oModuleController = &getController('module');
|
||||
$output = $oModuleController->insertModuleConfig('document',$args);
|
||||
return $output;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief 모든 생성된 썸네일 삭제
|
||||
**/
|
||||
function procDocumentAdminDeleteAllThumbnail() {
|
||||
|
||||
// files/attaches/images/ 디렉토리를 순환하면서 thumbnail_*.jpg 파일을 모두 삭제
|
||||
$this->deleteThumbnailFile('./files/attach/images');
|
||||
|
||||
$this->setMessage('success_deleted');
|
||||
}
|
||||
|
||||
function deleteThumbnailFile($path) {
|
||||
$directory = dir($path);
|
||||
while($entry = $directory->read()) {
|
||||
if ($entry != "." && $entry != "..") {
|
||||
if (is_dir($path."/".$entry)) {
|
||||
$this->deleteThumbnailFile($path."/".$entry);
|
||||
} else {
|
||||
if(!eregi('^thumbnail_([^\.]*)\.jpg$',$entry)) continue;
|
||||
@unlink($path.'/'.$entry);
|
||||
}
|
||||
}
|
||||
}
|
||||
$directory->close();
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -77,5 +77,18 @@
|
|||
$this->setTemplateFile('document_list');
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief 문서 모듈 설정
|
||||
**/
|
||||
function dispDocumentAdminConfig() {
|
||||
$oDocumentModel = &getModel('document');
|
||||
$config = $oDocumentModel->getDocumentConfig();
|
||||
Context::set('config',$config);
|
||||
|
||||
// 템플릿 파일 지정
|
||||
$this->setTemplatePath($this->module_path.'tpl');
|
||||
$this->setTemplateFile('document_config');
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -23,6 +23,7 @@
|
|||
$oModuleController = &getController('module');
|
||||
$oModuleController->insertActionForward('document', 'view', 'dispDocumentAdminList');
|
||||
$oModuleController->insertActionForward('document', 'view', 'dispDocumentPrint');
|
||||
$oModuleController->insertActionForward('document', 'view', 'dispDocumentAdminConfig');
|
||||
|
||||
$oDB = &DB::getInstance();
|
||||
$oDB->addIndex("documents","idx_module_list_order", array("module_srl","list_order"));
|
||||
|
|
@ -38,6 +39,7 @@
|
|||
**/
|
||||
function checkUpdate() {
|
||||
$oDB = &DB::getInstance();
|
||||
$oModuleModel = &getModel('module');
|
||||
|
||||
/**
|
||||
* 2007. 7. 23 : 확장변수(extra_vars1~20까지 추가)
|
||||
|
|
@ -57,6 +59,11 @@
|
|||
if(!$oDB->isIndexExists("documents","idx_module_readed_count")) return true;
|
||||
if(!$oDB->isIndexExists("documents","idx_module_voted_count")) return true;
|
||||
|
||||
/**
|
||||
* 2007. 10. 11 : 관리자 페이지의 기본 설정 Action 추가
|
||||
**/
|
||||
if(!$oModuleModel->getActionForward('dispDocumentAdminConfig')) return true;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
@ -65,6 +72,8 @@
|
|||
**/
|
||||
function moduleUpdate() {
|
||||
$oDB = &DB::getInstance();
|
||||
$oModuleModel = &getModel('module');
|
||||
$oModuleController = &getController('module');
|
||||
|
||||
/**
|
||||
* 2007. 7. 23 : 확장변수(extra_vars1~20까지 추가)
|
||||
|
|
@ -102,6 +111,12 @@
|
|||
$oDB->addIndex("documents","idx_module_voted_count", array("module_srl","voted_count"));
|
||||
}
|
||||
|
||||
/**
|
||||
* 2007. 10. 11 : 관리자 페이지의 기본 설정 Action 추가
|
||||
**/
|
||||
if(!$oModuleModel->getActionForward('dispDocumentAdminConfig'))
|
||||
$oModuleController->insertActionForward('document', 'view', 'dispDocumentAdminConfig');
|
||||
|
||||
return new Object(0,'success_updated');
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -288,12 +288,12 @@
|
|||
return $oTrackbackModel->getTrackbackList($this->document_srl, $is_admin);
|
||||
}
|
||||
|
||||
function thumbnailExists($width = 80, $height = 0) {
|
||||
if(!$this->getThumbnail($width, $height)) return false;
|
||||
function thumbnailExists($width = 80, $height = 0, $type = '') {
|
||||
if(!$this->getThumbnail($width, $height, $type)) return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
function getThumbnail($width = 80, $height = 0) {
|
||||
function getThumbnail($width = 80, $height = 0, $thumbnail_type = '') {
|
||||
if(!$height) $height = $width;
|
||||
|
||||
// 문서의 이미지 첨부파일 위치를 구함
|
||||
|
|
@ -315,6 +315,13 @@
|
|||
|
||||
// 썸네일 파일이 있으면 url return
|
||||
if(file_exists($thumbnail_file)) return Context::getRequestUri().$thumbnail_file;
|
||||
|
||||
// 문서 모듈의 기본 설정에서 Thumbnail의 생성 방법을 구함
|
||||
if(!in_array($thumbnail_type, array('crop','ratio'))) {
|
||||
$oDocumentModel = &getModel('document');
|
||||
$config = $oDocumentModel->getDocumentConfig();
|
||||
$thumbnail_type = $config->thumbnail_type;
|
||||
}
|
||||
|
||||
// 생성 시작
|
||||
FileHandler::writeFile($thumbnail_file, '', 'w');
|
||||
|
|
@ -330,7 +337,7 @@
|
|||
$filename = $file->uploaded_filename;
|
||||
if(!file_exists($filename)) continue;
|
||||
|
||||
FileHandler::createImageFile($filename, $thumbnail_file, $width, $height, 'jpg');
|
||||
FileHandler::createImageFile($filename, $thumbnail_file, $width, $height, 'jpg', $thumbnail_type);
|
||||
if(file_exists($thumbnail_file)) return Context::getRequestUri().$thumbnail_file;
|
||||
}
|
||||
}
|
||||
|
|
@ -353,7 +360,7 @@
|
|||
return;
|
||||
}
|
||||
|
||||
FileHandler::createImageFile($tmp_file, $thumbnail_file, $width, $height, 'jpg');
|
||||
FileHandler::createImageFile($tmp_file, $thumbnail_file, $width, $height, 'jpg', $config->thumbnail_type);
|
||||
@unlink($tmp_file);
|
||||
|
||||
return Context::getRequestUri().$thumbnail_file;
|
||||
|
|
|
|||
|
|
@ -312,5 +312,20 @@
|
|||
|
||||
return $output;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief 문서 설정 정보를 구함
|
||||
**/
|
||||
function getDocumentConfig() {
|
||||
if(!$GLOBLAS['__document_config__']) {
|
||||
$oModuleModel = &getModel('module');
|
||||
$config = $oModuleModel->getModuleConfig('document');
|
||||
|
||||
if(!$config->thumbnail_type) $config->thumbnail_type = 'crop';
|
||||
$GLOBLAS['__document_config__'] = $config;
|
||||
}
|
||||
|
||||
return $GLOBLAS['__document_config__'];
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -5,6 +5,12 @@
|
|||
* @brief Document module's basic language pack
|
||||
**/
|
||||
|
||||
$lang->document_list = 'Document list';
|
||||
$lang->thumbnail_type = 'Thumbnail Type';
|
||||
$lang->thumbnail_crop = 'Crop';
|
||||
$lang->thumbnail_ratio = 'Ratio';
|
||||
$lang->cmd_delete_all_thumbnail = 'Delete all thumbnails';
|
||||
|
||||
$lang->cmd_toggle_checked_document = '선택항목 반전';
|
||||
$lang->cmd_delete_checked_document = 'Delete selected';
|
||||
|
||||
|
|
|
|||
|
|
@ -5,6 +5,12 @@
|
|||
* @sumario Paquete del idioma español para el módulo de documentos.
|
||||
**/
|
||||
|
||||
$lang->document_list = 'Document list';
|
||||
$lang->thumbnail_type = 'Thumbnail Type';
|
||||
$lang->thumbnail_crop = 'Crop';
|
||||
$lang->thumbnail_ratio = 'Ratio';
|
||||
$lang->cmd_delete_all_thumbnail = 'Delete all thumbnails';
|
||||
|
||||
$lang->cmd_toggle_checked_document = '선택항목 반전';
|
||||
$lang->cmd_delete_checked_document = 'Eliminar lo seleccionado';
|
||||
|
||||
|
|
|
|||
|
|
@ -5,6 +5,12 @@
|
|||
* @brief ドキュメント(document)モジュルの基本言語パッケージ
|
||||
**/
|
||||
|
||||
$lang->document_list = 'Document list';
|
||||
$lang->thumbnail_type = 'Thumbnail Type';
|
||||
$lang->thumbnail_crop = 'Crop';
|
||||
$lang->thumbnail_ratio = 'Ratio';
|
||||
$lang->cmd_delete_all_thumbnail = 'Delete all thumbnails';
|
||||
|
||||
$lang->cmd_toggle_checked_document = '선택항목 반전';
|
||||
$lang->cmd_delete_checked_document = '選択項目削除';
|
||||
|
||||
|
|
|
|||
|
|
@ -5,6 +5,12 @@
|
|||
* @brief 문서(document) 모듈의 기본 언어팩
|
||||
**/
|
||||
|
||||
$lang->document_list = '문서 목록';
|
||||
$lang->thumbnail_type = '썸네일 생성 방법';
|
||||
$lang->thumbnail_crop = '잘라내기 (정해진 크기에 꽉 찬 모습의 썸네일을 만듭니다)';
|
||||
$lang->thumbnail_ratio = '비율 맞추기 (원본 이미지의 비율에 맞춥니다. 다만 정해진 크기에 여백이 생깁니다)';
|
||||
$lang->cmd_delete_all_thumbnail = '썸네일 모두 삭제';
|
||||
|
||||
$lang->cmd_toggle_checked_document = '선택항목 반전';
|
||||
$lang->cmd_delete_checked_document = '선택항목 삭제';
|
||||
|
||||
|
|
|
|||
|
|
@ -5,6 +5,12 @@
|
|||
* @brief 文章(document)模块语言包
|
||||
**/
|
||||
|
||||
$lang->document_list = 'Document list';
|
||||
$lang->thumbnail_type = 'Thumbnail Type';
|
||||
$lang->thumbnail_crop = 'Crop';
|
||||
$lang->thumbnail_ratio = 'Ratio';
|
||||
$lang->cmd_delete_all_thumbnail = 'Delete all thumbnails';
|
||||
|
||||
$lang->cmd_toggle_checked_document = '反选';
|
||||
$lang->cmd_delete_checked_document = '删除所选';
|
||||
|
||||
|
|
|
|||
24
modules/document/tpl/document_config.html
Normal file
24
modules/document/tpl/document_config.html
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
<!--#include("header.html")-->
|
||||
<!--%import("filter/insert_config.xml")-->
|
||||
|
||||
<form action="./" method="get" onsubmit="return procFilter(this, insert_config)">
|
||||
<table cellspacing="0" class="tableType2 gap1">
|
||||
<col width="200" />
|
||||
<col />
|
||||
<tr>
|
||||
<th scope="col">{$lang->thumbnail_type}</th>
|
||||
<td>
|
||||
<input type="radio" name="thumbnail_type" value="crop" <!--@if($config->thumbnail_type != 'ratio')-->checked="checked"<!--@end-->/> {$lang->thumbnail_crop} <br />
|
||||
<input type="radio" name="thumbnail_type" value="ratio" <!--@if($config->thumbnail_type == 'ratio')-->checked="checked"<!--@end-->/> {$lang->thumbnail_ratio}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<!-- 버튼 -->
|
||||
<div class="fl gap1">
|
||||
<span class="button"><input type="button" value="{$lang->cmd_delete_all_thumbnail}" onclick="doDeleteAllThumbnail(); return false;"/></span>
|
||||
</div>
|
||||
<div class="fr gap1">
|
||||
<span class="button"><input type="submit" value="{$lang->cmd_registration}" accesskey="s" /></span>
|
||||
</div>
|
||||
</form>
|
||||
|
|
@ -1,7 +1,6 @@
|
|||
<!--%import("filter/delete_checked.xml")-->
|
||||
<!--%import("js/document_admin.js")-->
|
||||
<!--#include("header.html")-->
|
||||
|
||||
<h3>{$lang->document} <span class="gray">{$lang->cmd_management}</span></h3>
|
||||
|
||||
<!-- 정보 -->
|
||||
<div class="tableSummaryType1">
|
||||
|
|
|
|||
7
modules/document/tpl/filter/insert_config.xml
Normal file
7
modules/document/tpl/filter/insert_config.xml
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
<filter name="insert_config" module="document" act="procDocumentAdminInsertConfig" confirm_msg_code="confirm_submit">
|
||||
<form />
|
||||
<response>
|
||||
<tag name="error" />
|
||||
<tag name="message" />
|
||||
</response>
|
||||
</filter>
|
||||
10
modules/document/tpl/header.html
Normal file
10
modules/document/tpl/header.html
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
<!--%import("js/document_admin.js")-->
|
||||
|
||||
<h3>{$lang->document} <span class="gray">{$lang->cmd_management}</span></h3>
|
||||
|
||||
<div class="header4">
|
||||
<ul class="localNavigation">
|
||||
<li <!--@if($act=='dispDocumentAdminList')-->class="on"<!--@end-->><a href="{getUrl('act','dispDocumentAdminList')}">{$lang->document_list}</a></li>
|
||||
<li <!--@if($act=='dispDocumentAdminConfig')-->class="on"<!--@end-->><a href="{getUrl('act','dispDocumentAdminConfig')}">{$lang->cmd_module_config}</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
|
@ -6,4 +6,16 @@ function doCheckAll(bToggle) {
|
|||
if( !fo_obj[i].checked || !bToggle) fo_obj[i].checked = true; else fo_obj[i].checked = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief 모든 생성된 썸네일 삭제하는 액션 호출
|
||||
**/
|
||||
function doDeleteAllThumbnail() {
|
||||
exec_xml('document','procDocumentAdminDeleteAllThumbnail',new Array(), completeDeleteAllThumbnail);
|
||||
}
|
||||
|
||||
function completeDeleteAllThumbnail(ret_obj) {
|
||||
alert(ret_obj['message']);
|
||||
location.reload();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -57,6 +57,19 @@
|
|||
<description xml:lang="en">It cuts the length of subject and displays (10 letters as default).</description>
|
||||
<description xml:lang="es">Muestra el título con el número de letras asignadas (predefinio: 10).</description>
|
||||
</var>
|
||||
<var id="thumbnail_type">
|
||||
<name xml:lang="ko">썸네일 생성 방법</name>
|
||||
<description xml:lang="ko">썸네일 생성 방법을 선택할 수 있습니다. (crop : 꽉 채우기, ratio : 비율 맞추기)</description>
|
||||
<type>select</type>
|
||||
<options>
|
||||
<name xml:lang="ko">Crop (채우기)</name>
|
||||
<value>crop</value>
|
||||
</options>
|
||||
<options>
|
||||
<name xml:lang="ko">Ratio (비율 맞추기)</name>
|
||||
<value>ratio</value>
|
||||
</options>
|
||||
</var>
|
||||
<var id="thumbnail_width">
|
||||
<name xml:lang="ko">이미지 가로크기</name>
|
||||
<name xml:lang="jp">イメージ横幅</name>
|
||||
|
|
@ -70,6 +83,11 @@
|
|||
<description xml:lang="en">You can set the width of image. (100 as default)</description>
|
||||
<description xml:lang="es">Usted puede definir el ancho de la imagen. (predefinido:100)</description>
|
||||
</var>
|
||||
<var id="thumbnail_height">
|
||||
<name xml:lang="ko">이미지 세로크기</name>
|
||||
<description xml:lang="ko">이미지의 세로 크기를 지정할 수 있습니다. (기본 100px)</description>
|
||||
<type>text</type>
|
||||
</var>
|
||||
<var id="cols_list_count">
|
||||
<name xml:lang="ko">가로 이미지 수</name>
|
||||
<name xml:lang="jp">イメージ数</name>
|
||||
|
|
@ -181,12 +199,12 @@
|
|||
<value>Y</value>
|
||||
</options>
|
||||
<options>
|
||||
<name xml:lang="ko">표시하지 않음</name>
|
||||
<name xml:lang="zh-CN">不显示</name>
|
||||
<name xml:lang="en">Hide</name>
|
||||
<name xml:lang="es">Ocultar</name>
|
||||
<name xml:lang="ko">표시하지 않음</name>
|
||||
<name xml:lang="zh-CN">不显示</name>
|
||||
<name xml:lang="en">Hide</name>
|
||||
<name xml:lang="es">Ocultar</name>
|
||||
<value>N</value>
|
||||
</options>
|
||||
</var>
|
||||
</options>
|
||||
</var>
|
||||
</extra_vars>
|
||||
</widget>
|
||||
|
|
|
|||
|
|
@ -19,10 +19,18 @@
|
|||
$widget_info->title_length = (int)$args->title_length;
|
||||
if(!$widget_info->title_length) $widget_info->title_length = 10;
|
||||
|
||||
// 썸네일 생성 방법
|
||||
$widget_info->thumbnail_type = $args->thumbnail_type;
|
||||
if(!$widget_info->thumbnail_type) $widget_info->thumbnail_type = 'crop';
|
||||
|
||||
// 썸네일 가로 크기
|
||||
$widget_info->thumbnail_width = (int)$args->thumbnail_width;
|
||||
if(!$widget_info->thumbnail_width) $widget_info->thumbnail_width = 100;
|
||||
|
||||
// 썸네일 세로 크기
|
||||
$widget_info->thumbnail_height = (int)$args->thumbnail_height;
|
||||
if(!$widget_info->thumbnail_height) $widget_info->thumbnail_height = 100;
|
||||
|
||||
// 세로 이미지 수
|
||||
$widget_info->rows_list_count = (int)$args->rows_list_count;
|
||||
if(!$widget_info->rows_list_count) $widget_info->rows_list_count = 1;
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@
|
|||
{@ $oDocument = $widget_info->document_list[$i*$widget_info->cols_list_count + $j]}
|
||||
<td <!--@if($widget_info->rows_list_count>1)-->class="bottomBorder"<!--@end-->>
|
||||
<!--@if($oDocument->document_srl)-->
|
||||
<div class="thumbnail"><a href="{getUrl('','document_srl',$oDocument->document_srl)}"><img src="{$oDocument->getThumbnail($widget_info->thumbnail_width)}" width="{$widget_info->thumbnail_width}" height="{$widget_info->thumbnail_width}" border="0" alt="" class="thumbnail" /></a></div>
|
||||
<div class="thumbnail"><a href="{getUrl('','document_srl',$oDocument->document_srl)}"><img src="{$oDocument->getThumbnail($widget_info->thumbnail_width,$widget_info->thumbnail_height,$widget_info->thumbnail_type)}" width="{$widget_info->thumbnail_width}" height="{$widget_info->thumbnail_height}" border="0" alt="" class="thumbnail" /></a></div>
|
||||
|
||||
<div>
|
||||
<a href="{$oDocument->getPermanentUrl()}#{$oDocument->getCommentCount()}">{$oDocument->getTitleText($widget_info->title_length)}</a>
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@
|
|||
{@ $oDocument = $widget_info->document_list[$i*$widget_info->cols_list_count + $j]}
|
||||
<td <!--@if($widget_info->rows_list_count>1)-->class="bottomBorder"<!--@end-->>
|
||||
<!--@if($oDocument->document_srl)-->
|
||||
<div class="thumbnail"><a href="{getUrl('','document_srl',$oDocument->document_srl)}"><img src="{$oDocument->getThumbnail($widget_info->thumbnail_width)}" width="{$widget_info->thumbnail_width}" height="{$widget_info->thumbnail_width}" border="0" alt="" class="thumbnail" /></a></div>
|
||||
<div class="thumbnail"><a href="{getUrl('','document_srl',$oDocument->document_srl)}"><img src="{$oDocument->getThumbnail($widget_info->thumbnail_width,$widget_info->thumbnail_height,$widget_info->thumbnail_type)}" width="{$widget_info->thumbnail_width}" height="{$widget_info->thumbnail_height}" border="0" alt="" class="thumbnail" /></a></div>
|
||||
|
||||
<div>
|
||||
<a href="{$oDocument->getPermanentUrl()}#{$oDocument->getCommentCount()}">{$oDocument->getTitleText($widget_info->title_length)}</a>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue