mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-05 19:42:12 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@3051 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
a2116f3701
commit
cb152ca648
1 changed files with 13 additions and 1 deletions
|
|
@ -15,17 +15,29 @@
|
|||
* 결과를 만든후 print가 아니라 return 해주어야 한다
|
||||
**/
|
||||
function proc($args) {
|
||||
// 위젯 자체적으로 설정한 변수들을 체크
|
||||
// 제목
|
||||
$title = $args->title;
|
||||
|
||||
// 정렬 대상
|
||||
$order_target = $args->order_target;
|
||||
if(!in_array($order_target, array('list_order','update_order'))) $order_target = 'list_order';
|
||||
|
||||
// 정렬 순서
|
||||
$order_type = $args->order_type;
|
||||
if(!in_array($order_type, array('asc','desc'))) $order_type = 'asc';
|
||||
|
||||
// 출력된 목록 수
|
||||
$list_count = (int)$args->list_count;
|
||||
if(!$list_count) $list_count = 5;
|
||||
|
||||
// 대상 모듈
|
||||
$mid_list = explode(",",$args->mid_list);
|
||||
|
||||
// 제목 길이 자르기
|
||||
$subject_cut_size = $args->subject_cut_size;
|
||||
if(!$subject_cut_size) $subject_cut_size = 0;
|
||||
|
||||
// 최근 글 표시 시간
|
||||
$duration_new = $args->duration_new;
|
||||
if(!$duration_new) $duration_new = 12;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue