if(count($list)==0){
echo '
등록된 북마크가 없습니다.
';
} else {
foreach ($list as $val) {
switch ($val['content_type']) {
case '1': $view_url = '/m/news/news_view/'.$val['idx']; $share_id_name = "news_".$val['idx'];
break;
case '2': $view_url = '/m/news/column_view/'.$val['idx']; $share_id_name = "column_".$val['idx'];
break;
case '3': $view_url = '/m/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', '50', '..', 'utf-8');
$content = $val['content'];
$content_txt = mb_strimwidth($content, '0', '200', '..', 'utf-8');
preg_match_all("/(\
![]()
]*)(\>)/Uis", $content, $matches);
$_img = $matches[0];
$_content_len = $_img?100:110;
$_content = mb_substr(strip_tags($val['content']), 0, $_content_len, 'utf-8');
$_content = str_replace(' ', '', $_content);
$_content = $_content.'…';
$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'];
switch($val['content_name']){
case "라이프":
$view1 = $val['channel_name'];
$view2 = $val['editor_name'];
break;
case "뉴스":
$view1 = $val['category_name'];
$view2 = $val['press_name'];
break;
case "칼럼":
// var_dump($val);
$view1 = $val['column_name'];
$view2 = '';
break;
default:
$view1 = '';
$view2 = '';
break;
}
?>
=($_content);?>
}
}
?>
=$pagination?>