foreach ($list as $val) {
$title = $val['title'];
$content = strip_tags($val['content']);
$title_txt = mb_strimwidth($title, '0', '60', '..', 'utf-8');
$content_txt = mb_strimwidth($content, '0', '140', '..', 'utf-8');
foreach($arr_search_keyword as $val3) {
$title_txt = str_replace($val3, '
'.$val3.'', $title_txt);
$content_txt = str_replace($val3, '
'.$val3.'', $content_txt);
}
$display_date_txt = gf_article_date_text($val['display_date']);
$share_title = str_replace("'", "\\'", $val['title']);
$share_title = str_replace('"', '\\"', $share_title);
$share_content = mb_strimwidth($content, '0', '250', '..', 'utf-8');
$share_content = htmlspecialchars($share_content);
$share_content = str_replace("'", "\\'", $share_content);
$share_content = str_replace('”', '"', $share_content);
$main_img = $val['main_img'];
switch ($val['content_type']) {
case '1': $view_url = '/web/news/news_view/'.$val['idx']; $share_key = 'news_'.$val['idx']; $add_title = $val['category_name']; $writer_name = $val['reporter_name']; break;
case '2': $view_url = '/web/news/column_view/'.$val['idx']; $share_key = 'column_'.$val['idx']; $add_title = $val['column_name']; $writer_name = $val['column_name']; break;
case '3': $view_url = '/web/life/life_view/'.$val['idx']; $share_key = 'life_'.$val['idx']; $add_title = $val['channel_name']; $writer_name = $val['channel_name']; break;
}
?>
=$val['video_playtime']?>
=$display_date_txt?> - 업로더: =$writer_name?>
=$content_txt?>
}?>