style="margin-right:10px;width: 61px;float: left;">최신순
style="float: left;width: 61px;">인기순
foreach ($list as $val) {
$comment_count = $val['comment_count'];
$comment_count_txt = $comment_count;
if ($comment_count > 9) {
$calc_count = str_pad(1, strlen($comment_count), "0", STR_PAD_RIGHT);
$comment_count_txt = (floor($comment_count / $calc_count)) * $calc_count;
$comment_count_txt = $comment_count_txt . '+';
}
$display_date = $val['display_date'];
$display_date_txt = substr($display_date, 0, 10);
$display_date_txt = str_replace('-', '.', $display_date_txt);
$title_len = 50;
if ($arr_news_setting['etc_char1'] == 'Y') {
$title_len = '40';
}
$title_txt = mb_strimwidth($val['title'], '0', $title_len, '..', 'utf-8');
$content = preg_replace("(\<(/?[^\>]+)\>)", "", $val['content']);
$content = strip_tags($content);
$content_txt = mb_strimwidth($content, '0', '250', '..', 'utf-8');
?>
} ?>
= $pagination ?>
include_once('news_main_content_inc.php'); ?>
include_once('news_right_inc.php'); ?>