얼렁뚱땅코드/그누보드

갤러리에서 공지 설정시 이미지 안나오는 경우

얼렁뚱땅 디자이너 2021. 11. 11. 11:37
list.php

<?php
                        if ($list[$i]['is_notice']) { // 공지사항  ?>
                            <span class="is_notice">공지</span>
                        <?php } else {
                            $thumb = get_list_thumbnail($board['bo_table'], $list[$i]['wr_id'], $board['bo_gallery_width'], $board['bo_gallery_height'], ture, ture);

if($thumb['src']) {
	$img_content = '<img src="'.$thumb['src'].'" alt="'.$thumb['alt'].'" >';
	} else {
		$img_content = '<span class="no_image">no image</span>';
	}

	echo $img_content;
	}
 ?>

노란 부분 삭제



<?php
$thumb = get_list_thumbnail($board['bo_table'], $list[$i]['wr_id'], $board['bo_gallery_width'], $board['bo_gallery_height'], ture, ture);

if($thumb['src']) {
	$img_content = '<img src="'.$thumb['src'].'" alt="'.$thumb['alt'].'" >';
	} else {
		$img_content = '<span class="no_image">no image</span>';
	}

	echo $img_content;
 ?>