mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-02 16:52:16 +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
|
|
@ -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