$i=1;
foreach ($list as $key=>$val) {
$title = $val['title'];
$content = strip_tags($val['content']);
$title_txt = mb_strimwidth($title, '0', '60', '..', 'utf-8');
$content_txt = mb_strimwidth($content, '0', '180', '..', 'utf-8');
$display_date_txt = gf_article_date_text($val['display_date']);
foreach($arr_search_keyword as $val3) {
$title_txt = str_replace($val3, '
'.$val3.'', $title_txt);
$content_txt = str_replace($val3, '
'.$val3.'', $content_txt);
}
$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'];
$press_txt = $val['press_name'];
if($val['press_homepage']!='') {
$press_txt = '
'.$val['press_name'].'';
}
$view_url = '/web/news/news_view/'.$val['idx'];
$share_id_name ="news_".$val['idx'];
?>
=$press_txt?>
|
=$display_date_txt?>
|
크로스맵뉴스
=$content_txt?>
if(isset($arr_news_relation_article[$val['idx']])==true) {
if(count($arr_news_relation_article[$val['idx']]) > 0 ) {?>
$i=1;
foreach ($arr_news_relation_article[$val['idx']] as $key1=>$val1) {
$relation_title_txt = mb_strimwidth($val1['title'], '0', '53', '..', 'utf-8');
$press_txt = $val1['press_name'];
if($val1['press_homepage']!='') {
$press_txt = '
'.$val1['press_name'].'';
}
$display_date_txt = gf_article_date_text($val1['display_date']);
?>
if($i==4) break;
$i++;
}
?>
}
}
?>
}?>