mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-01 16:22:41 +09:00
게시판 모듈에서 기존의 스킨에서 임시 처리하던 정렬 옵션을 게시판 모듈 자체 설정으로 변경. 기본/수정/등록일/추천/조회/댓글수/제목순 정렬 기능 추가
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@4070 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
29f9b4ce49
commit
95a74eaade
15 changed files with 321 additions and 272 deletions
|
|
@ -164,12 +164,13 @@
|
|||
$args->search_target = Context::get('search_target'); ///< 검색 대상 (title, contents...)
|
||||
$args->search_keyword = Context::get('search_keyword'); ///< 검색어
|
||||
if($this->module_info->use_category=='Y') $args->category_srl = Context::get('category'); ///< 카테고리 사용시 선택된 카테고리
|
||||
|
||||
$args->sort_index = Context::get('sort_index');
|
||||
$args->order_type = Context::get('order_type');
|
||||
|
||||
// 지정된 정렬값이 없다면 스킨에서 설정한 정렬 값을 이용함
|
||||
if(!$args->sort_index) $args->sort_index = $this->module_info->order_target?$this->module_info->order_target:'list_order';
|
||||
if(!$args->order_type) $args->order_type = $this->module_info->order_type?$this->module_info->order_type:'asc';
|
||||
if(!in_array($args->sort_index, $this->order_target)) $args->sort_index = $this->module_info->order_target?$this->module_info->order_target:'list_order';
|
||||
if(!in_array($args->order_type, array('asc','desc'))) $args->order_type = $this->module_info->order_type?$this->module_info->order_type:'asc';
|
||||
|
||||
// 특정 문서의 permalink로 직접 접속할 경우 page값을 직접 구함
|
||||
if(count($_GET)==1 && isset($_GET['document_srl']) && $oDocument->isExists() && !$oDocument->isNotice()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue