콘텐츠 위젯에 비밀글 출력 설정 추기

This commit is contained in:
conory 2016-02-16 21:13:17 +09:00
parent 78c0417065
commit 833436465b
2 changed files with 36 additions and 1 deletions

View file

@ -249,8 +249,17 @@ class content extends WidgetHandler
{
$obj->order_type = $args->order_type=="desc"?"desc":"asc";
}
if($args->show_secret == 'Y')
{
$obj->statusList = array('PUBLIC', 'SECRET');
}
else
{
$obj->statusList = array('PUBLIC');
}
$obj->list_count = $args->list_count * $args->page_count;
$obj->statusList = array('PUBLIC');
$output = executeQueryArray('widgets.content.getNewestDocuments', $obj);
if(!$output->toBool() || !$output->data) return;
// If the result exists, make each document as an object