if(count($list)==0){
echo '
등록된 북마크가 없습니다.
';
} else {
foreach ($list as $val) {
switch ($val['content_type']) {
case '1': $view_url = '/web/news/news_view/'.$val['idx']; $share_id_name = "news_".$val['idx'];
break;
case '2': $view_url = '/web/news/column_view/'.$val['idx']; $share_id_name = "column_".$val['idx'];
break;
case '3': $view_url = '/web/life/life_view/'.$val['idx']; $share_id_name = "life_".$val['idx'];
break;
}
$title = $val['title'];
$bookmark_date = $val['bookmark_date'];
$bookmark_date_txt = substr($bookmark_date, 0, 10);
$bookmark_date_txt = str_replace('-', '.', $bookmark_date_txt);
$title_txt = mb_strimwidth($title, '0', '80', '..', 'utf-8');
$content = strip_tags($val['content']);
$content_txt = mb_strimwidth($content, '0', '200', '..', 'utf-8');
$share_title = str_replace("'", "\\'", $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'];
?>
}
}
?>