썸네일 없으면 저장된 이미지 추출...ㅠ 채택완료
ksoon
3년 전
조회 1,464
</strong></p>
<p> <?php
for ($i=0; $i<$list_count; $i++) {
$thumb = get_list_thumbnail($bo_table, $list[$i]['wr_id'], $thumb_width, $thumb_height, false, true);
$img = $thumb['src'] ? $thumb['src'] : '';
$img_content = $img ? '<img src="'.$img.'" alt="'.$thumb['alt'].'" >' : '';
$echo_ul = ( $i && (($i % $divisor_count) === 0) ) ? '</ul><ul class="item">'.PHP_EOL : '';</p>
<p> echo $echo_ul;
?></p>
<p><strong>
latest에서 썸네일 이미지가 없을 때
/latest/img 안에있는 no-image.png파일을 출력하고 싶습니다.
여기서 어떤 부분을 수정해야 할까요?
댓글을 작성하려면 로그인이 필요합니다.
답변 2개
답변을 작성하려면 로그인이 필요합니다.
로그인