게시판설정 아이콘 출력 0입력시 새글 인기글 아이콘 출력되지 않도록 수정

This commit is contained in:
chicpro
2014-02-03 11:18:32 +09:00
parent 26d41b11f3
commit b6f76f8885
2 changed files with 4 additions and 4 deletions

View File

@ -1066,7 +1066,7 @@ $frm_submit .= '</div>';
<tr>
<th scope="row"><label for="bo_new">새글 아이콘<strong class="sound_only">필수</strong></label></th>
<td>
<?php echo help('글 입력후 new 이미지를 출력하는 시간') ?>
<?php echo help('글 입력후 new 이미지를 출력하는 시간. 0을 입력하시면 아이콘을 출력하지 않습니다.') ?>
<input type="text" name="bo_new" value="<?php echo $board['bo_new'] ?>" id="bo_new" required class="required numeric frm_input" size="4">
</td>
<td class="td_grpset">
@ -1079,7 +1079,7 @@ $frm_submit .= '</div>';
<tr>
<th scope="row"><label for="bo_hot">인기글 아이콘<strong class="sound_only">필수</strong></label></th>
<td>
<?php echo help('조회수가 설정값 이상이면 hot 이미지 출력') ?>
<?php echo help('조회수가 설정값 이상이면 hot 이미지 출력. 0을 입력하시면 아이콘을 출력하지 않습니다.') ?>
<input type="text" name="bo_hot" value="<?php echo $board['bo_hot'] ?>" id="bo_hot" required class="required numeric frm_input" size="4">
</td>
<td class="td_grpset">

View File

@ -386,11 +386,11 @@ function get_list($write_row, $board, $skin_url, $subject_len=40)
$list['comment_href'] = $list['href'];
$list['icon_new'] = '';
if ($list['wr_datetime'] >= date("Y-m-d H:i:s", G5_SERVER_TIME - ($board['bo_new'] * 3600)))
if ($board['bo_new'] && $list['wr_datetime'] >= date("Y-m-d H:i:s", G5_SERVER_TIME - ($board['bo_new'] * 3600)))
$list['icon_new'] = '<img src="'.$skin_url.'/img/icon_new.gif" alt="새글">';
$list['icon_hot'] = '';
if ($list['wr_hit'] >= $board['bo_hot'])
if ($board['bo_hot'] && $list['wr_hit'] >= $board['bo_hot'])
$list['icon_hot'] = '<img src="'.$skin_url.'/img/icon_hot.gif" alt="인기글">';
$list['icon_secret'] = '';