$val['idx'], 'main_img' => $val['main_img'], 'sub_title'=> $val['sub_title'], 'title'=> $val['title'], 'hit_count'=> $val['hit_count'], 'comment_count'=> $val['comment_count']);
if($i%3 == 2) $list2[] = array('idx'=> $val['idx'], 'main_img' => $val['main_img'], 'sub_title'=> $val['sub_title'], 'title'=> $val['title'], 'hit_count'=> $val['hit_count'], 'comment_count'=> $val['comment_count']);
if($i%3 == 0) $list3[] = array('idx'=> $val['idx'], 'main_img' => $val['main_img'], 'sub_title'=> $val['sub_title'], 'title'=> $val['title'], 'hit_count'=> $val['hit_count'], 'comment_count'=> $val['comment_count']);
$i++;
}
?>
if(count($list) == 0) {
echo '
등록된 글이 없습니다.
';
} else {
?>
if(count($list1) > 0) {
$i = 1;
foreach($list1 as $val) {
$style = '';
if($i > 3) {
$style = 'style="display:none;"';
}
?>
- >
=$val['sub_title']?>
=$val['title']?>
조회 =number_format($val['hit_count'])?> 댓글수 =number_format($val['comment_count'])?>
$i++;
}
}
?>
if(count($list2) > 0) {
$i = 1;
foreach($list2 as $val) {
$style = '';
if($i > 4) {
$style = 'style="display:none;"';
}
?>
- >
=$val['sub_title']?>
=$val['title']?>
조회 =number_format($val['hit_count'])?> 댓글수 =number_format($val['comment_count'])?>
$i++;
}
}
?>
if(count($list3) > 0) {
$i = 1;
foreach($list3 as $val) {
$style = '';
if($i > 3) {
$style = 'style="display:none;"';
}
?>
- >
=$val['sub_title']?>
=$val['title']?>
조회 =number_format($val['hit_count'])?> 댓글수 =number_format($val['comment_count'])?>
$i++;
}
}
?>
더보기
}?>
foreach ($arr_popular as $val) {
if($search_popular == 1) {
$list_idx = $val['idx'];
$list_icon = $val['channel_icon'];
$list_title = $val['channel_name'];
$list_intro = $val['channel_intro'];
$view_url = '/web/life/channel/'.$list_idx;
} else {
$list_idx = $val['idx'];
$list_icon = $val['partner_img'];
$list_title = $val['partner_name'];
$list_intro = $val['partner_intro'];
$view_url = '/web/life/editor/'.$list_idx;
}
?>
-
=$list_title?>
=$list_intro?>
}?>
=$pagination?>