mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-10 04:24:14 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@1291 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
5cd542b8da
commit
9fac285610
2 changed files with 9 additions and 2 deletions
|
|
@ -115,7 +115,7 @@
|
||||||
$unicode_str = iconv("UTF-8","UCS-2",$string);
|
$unicode_str = iconv("UTF-8","UCS-2",$string);
|
||||||
if(strlen($unicode_str) < $cut_size*2) return $string;
|
if(strlen($unicode_str) < $cut_size*2) return $string;
|
||||||
|
|
||||||
$output = substr($unicode_str, 0, $cut_size*2);
|
$output_str = substr($unicode_str, 0, $cut_size*2);
|
||||||
return iconv("UCS-2","UTF-8",$output_str).$tail;
|
return iconv("UCS-2","UTF-8",$output_str).$tail;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -68,7 +68,14 @@
|
||||||
|
|
||||||
$item->author = $item->user_name;
|
$item->author = $item->user_name;
|
||||||
$item->link = sprintf("%s?document_srl=%d", Context::getRequestUri(), $item->document_srl);
|
$item->link = sprintf("%s?document_srl=%d", Context::getRequestUri(), $item->document_srl);
|
||||||
$item->description = $item->content;
|
|
||||||
|
// 전문 공개일 경우
|
||||||
|
if($module_info->open_rss=='Y') {
|
||||||
|
$item->description = $item->content;
|
||||||
|
// 요약 공개일 경우
|
||||||
|
} else {
|
||||||
|
$item->description = cut_str(strip_tags($item->content),100,'...');
|
||||||
|
}
|
||||||
$item->date = gmdate("D, d M Y H:i:s", $time);
|
$item->date = gmdate("D, d M Y H:i:s", $time);
|
||||||
$content[$idx++] = $item;
|
$content[$idx++] = $item;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue