웹진 위젯의 가로/세로 이미지수 잘못된 부분 수정

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@3421 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
zero 2007-12-27 03:03:35 +00:00
parent 8b3ec4c20d
commit e94547969a
2 changed files with 10 additions and 9 deletions

View file

@ -209,12 +209,12 @@
<name xml:lang="es">Número de imágenes</name>
<name xml:lang="ru">Число изображений (колонка)</name>
<type>text</type>
<description xml:lang="ko">출력될 가로 이미지의 수를 정하실 수 있습니다. (기본 5개)</description>
<description xml:lang="jp">表示されるイメージの横並びの数を指定します(デフォルト5個)。</description>
<description xml:lang="zh-CN">可以指定要显示的横向图片个数。(默认为5个)</description>
<description xml:lang="en">You can set the number of images to display. (5 as default)</description>
<description xml:lang="es">Usted puede definir el múmero de imágenes a mostrar. (predefinido: 5)</description>
<description xml:lang="ru">Вы можете установить число изображений для показа. (стандарт: 5)</description>
<description xml:lang="ko">출력될 가로 이미지의 수를 정하실 수 있습니다. (기본 1개)</description>
<description xml:lang="jp">表示されるイメージの横並びの数を指定します(デフォルト1個)。</description>
<description xml:lang="zh-CN">可以指定要显示的横向图片个数。(默认为1个)</description>
<description xml:lang="en">You can set the number of images to display. (1 as default)</description>
<description xml:lang="es">Usted puede definir el múmero de imágenes a mostrar. (predefinido: 1)</description>
<description xml:lang="ru">Вы можете установить число изображений для показа. (стандарт: 1)</description>
</var>
<var id="rows_list_count">
<name xml:lang="ko">세로 이미지 수</name>
@ -224,7 +224,7 @@
<name xml:lang="es">Número de imágenes</name>
<name xml:lang="ru">Число изображений (ряд)</name>
<type>text</type>
<description xml:lang="ko">출력될 세로 이미지의 수를 정하실 수 있습니다. (기본 1개)</description>
<description xml:lang="ko">출력될 세로 이미지의 수를 정하실 수 있습니다. (기본 5개)</description>
<description xml:lang="jp">表示されるイメージの縦並びの数を指定することができますデフォルト5個</description>
<description xml:lang="zh-CN">可以指定要显示的纵向图片个数。(默认为1个)</description>
<description xml:lang="en">You can set the number of images to display. (5 as default)</description>

View file

@ -37,11 +37,11 @@
// 세로 이미지 수
$widget_info->rows_list_count = (int)$args->rows_list_count;
if(!$widget_info->rows_list_count) $widget_info->rows_list_count = 3;
if(!$widget_info->rows_list_count) $widget_info->rows_list_count = 5;
// 가로 이미지 수
$widget_info->cols_list_count = (int)$args->cols_list_count;
if(!$widget_info->cols_list_count) $widget_info->cols_list_count = 2;
if(!$widget_info->cols_list_count) $widget_info->cols_list_count = 1;
// 정렬 대상
$widget_info->order_target = $args->order_target;
@ -108,6 +108,7 @@
$document_count = count($document_list);
$total_count = $widget_info->rows_list_count * $widget_info->cols_list_count;
for($i=$document_count;$i<$total_count;$i++) $document_list[] = new DocumentItem();
$widget_info->document_list = $document_list;
Context::set('widget_info', $widget_info);