mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-24 13:49:56 +09:00
모듈 선택기능 추가 (위젯의 단일/다수 위젯 선택, 첵크된 게시글 이동/복사시) 사용되며 virtualSite외의 사이트들도 검색후 선택이 가능하도록 개선
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@5298 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
3345d21c4e
commit
906bb46d19
83 changed files with 970 additions and 543 deletions
|
|
@ -398,8 +398,8 @@
|
|||
<name xml:lang="zh-TW">隱藏</name>
|
||||
</options>
|
||||
</var>
|
||||
<var id="mid_list">
|
||||
<type>mid_list</type>
|
||||
<var id="module_srls">
|
||||
<type>module_srl_list</type>
|
||||
<name xml:lang="ko">대상 모듈</name>
|
||||
<name xml:lang="zh-CN">模块对象</name>
|
||||
<name xml:lang="jp">モジュール</name>
|
||||
|
|
|
|||
Binary file not shown.
|
Before Width: | Height: | Size: 43 B |
Binary file not shown.
|
Before Width: | Height: | Size: 44 B |
|
Before Width: | Height: | Size: 139 B After Width: | Height: | Size: 139 B |
|
|
@ -1,7 +1,7 @@
|
|||
<!--// 설정된 컬러셋의 종류에 따라서 css파일을 import 합니다 -->
|
||||
|
||||
<!--@if($colorset=="normal"||!$colorset)-->
|
||||
<!--%import("css/normal.css")-->
|
||||
<!--%import("normal.css")-->
|
||||
<!--@end-->
|
||||
|
||||
<div class="nw_box">
|
||||
|
|
@ -33,7 +33,7 @@
|
|||
|
||||
<span class="title">
|
||||
<a href="{$oDocument->getPermanentUrl()}#{$oDocument->getCommentCount()}">{$oDocument->getTitle($widget_info->subject_cut_size)}</a>
|
||||
<!--@if($oDocument->getCommentCount())--><strong>[{$oDocument->getCommentCount()}]</strong><!--@end-->
|
||||
<!--@if($oDocument->getCommentCount())--> <a href="{$oDocument->getPermanentUrl()}#comment"><strong>[{$oDocument->getCommentCount()}]</strong></a><!--@end-->
|
||||
</span>
|
||||
|
||||
<!--@if($widget_info->display_regdate == 'Y')-->
|
||||
|
|
|
|||
|
|
@ -1,12 +1,12 @@
|
|||
.nw_box { padding-bottom:5px; overflow:hidden; }
|
||||
.nw_box h2 { margin:0; font-size:1em; display:block; height:21px; padding:9px 0 0 9px; margin-bottom:5px; color:#000000; background:url(../images/normal/lineNotice.gif) no-repeat left bottom;}
|
||||
.nw_box h2 { margin:0; font-size:1em; display:block; height:21px; padding:9px 0 0 9px; margin-bottom:5px; color:#000000; background:url(./lineNotice.gif) no-repeat left bottom;}
|
||||
|
||||
.nw_box a.more { text-decoration:none;}
|
||||
.nw_box a.more:hover { text-decoration:underline;}
|
||||
|
||||
.nw_box .listTable { width:100%; table-layout:fixed; border:none;}
|
||||
|
||||
.nw_box .listTable tr td { border-bottom:1px dotted #DEDEDE; padding:0;margin:0; vertical-align:top; overflow:hidden; }
|
||||
.nw_box .listTable tr td { padding:0;margin:0; vertical-align:top; overflow:hidden; }
|
||||
|
||||
.nw_box .thumbnailBox { width:100%; margin:0;padding:0;border:none; table-layout:fixed; }
|
||||
.nw_box .thumbnailBox tr td { border-bottom:none; padding:none; margin:none; }
|
||||
|
|
@ -65,17 +65,25 @@
|
|||
// 제목
|
||||
$widget_info->title = $args->title;
|
||||
|
||||
// 대상 모듈 정리
|
||||
$mid_list = explode(",",$args->mid_list);
|
||||
// 대상 모듈 (mid_list는 기존 위젯의 호환을 위해서 처리하는 루틴을 유지. module_srl로 위젯에서 변경)
|
||||
if($args->mid_list) {
|
||||
$mid_list = explode(",",$args->mid_list);
|
||||
$oModuleModel = &getModel('module');
|
||||
if(count($mid_list)) {
|
||||
$module_srl = $oModuleModel->getModuleSrlByMid($mid_list);
|
||||
} else {
|
||||
$site_module_info = Context::get('site_module_info');
|
||||
if($site_module_info) {
|
||||
$margs->site_srl = $site_module_info->site_srl;
|
||||
$oModuleModel = &getModel('module');
|
||||
$output = $oModuleModel->getMidList($margs);
|
||||
if(count($output)) $mid_list = array_keys($output);
|
||||
$module_srl = $oModuleModel->getModuleSrlByMid($mid_list);
|
||||
}
|
||||
}
|
||||
} else $module_srl = explode(',',$args->module_srls);
|
||||
|
||||
// 템플릿 파일에서 사용할 변수들을 세팅
|
||||
if(count($mid_list)==1) $widget_info->module_name = $mid_list[0];
|
||||
|
||||
// mid에 해당하는 module_srl을 구함
|
||||
$oModuleModel = &getModel('module');
|
||||
$module_srl_list = $oModuleModel->getModuleSrlByMid($mid_list);
|
||||
if(is_array($module_srl_list)) $obj->module_srl = implode(",",$module_srl_list);
|
||||
else $obj->module_srl = $module_srl_list;
|
||||
$obj->module_srl = implode(",",$module_srl);
|
||||
$obj->sort_index = $widget_info->order_target;
|
||||
$obj->order_type = $widget_info->order_type=="desc"?"asc":"desc";
|
||||
$obj->list_count = $widget_info->rows_list_count * $widget_info->cols_list_count;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue