if (count($arr_life) > 0) { ?>
라이프
$i = 1;
foreach ($arr_life 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');
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'];
$life_class = '';
if ($i == count($arr_life)) {
$life_class = ' bb pdb20';
}
?>
= $content_txt ?>
if ($i == count($arr_life)) { ?>
} ?>
$i++;
}
?>
} ?>
if (count($arr_news) > 0) { ?>
$i = 1;
foreach ($arr_news as $key => $val) {
$news_class = '';
if ($i == count($arr_news)) {
$news_class = 'bb pdb20';
}
$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');
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);
$press_txt = $val['press_name'];
if ($val['press_homepage'] != '') {
$press_txt = '
' . $val['press_name'] . '';
}
$display_date_txt = gf_article_date_text($val['display_date']);
?>
= $press_txt ?>
= $display_date_txt ?>
크로스맵뉴스
= $content_txt ?>
if (count($arr_news_relation_article[$val['idx']]) > 0) {
?>
foreach ($arr_news_relation_article[$val['idx']] as $key1 => $val1) {
$relation_title_txt = mb_strimwidth($val1['title'], '0', '55', '..', '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 ($key1 == 1)
break;
}
?>
} ?>
if ($i == count($arr_news)) { ?>
} ?>
$i++;
}
?>
} ?>
이미지
foreach ($arr_img as $key => $val) {
$title_text = $val['title'];
if ($val['category_name'] != '')
$title_text .= ' - ' . $val['category_name'];
switch ($val['content_type']) {
case '1':
$img_view_url = '/web/news/news_view/' . $val['idx'];
break;
case '2':
$img_view_url = '/web/news/column_view/' . $val['idx'];
break;
case '3':
$img_view_url = '/web/life/life_view/' . $val['idx'];
break;
}
?>
if ($key == 4)
break;
}
?>
if (count($arr_video) > 0) { ?>
동영상
foreach ($arr_video as $key => $val) {
$title_txt = mb_strimwidth($val['title'], '0', '35', '..', 'utf-8');
switch ($val['content_type']) {
case '1':
$video_view_url = '/web/news/news_view/' . $val['idx'];
$video_category_url = '/web/news/category/' . $val['category_code'];
break;
case '2':
$video_view_url = '/web/news/column_view/' . $val['idx'];
$video_category_url = '/web/news/columnist/' . $val['partner_idx'];
break;
case '3':
$video_view_url = '/web/life/life_view/' . $val['idx'];
$video_category_url = '/web/life/category/' . $val['category_idx'];
break;
}
$display_date_txt = gf_article_date_text($val['display_date']);
?>
} ?>
} ?>
if (count($arr_column) > 0) { ?>
칼럼
$i = 1;
foreach ($arr_column as $val) {
$column_class = '';
if ($i == count($arr_column)) {
$column_class = ' bb pdb20';
}
$title = '[' . $val['column_name'] . '] ' . $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');
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'];
?>
= $content_txt ?>
if ($i == count($arr_column)) { ?>
} ?>
$i++;
}
?>
} ?>
require_once(APPPATH . "views/web/search/search_footer_inc.php"); ?>