
현재 썸네일 없는건 노이미지 라고뜨는 웹진형 게시판을 사용중인데요
위 사진처럼 노이미지 출력을 안뜨게 하고 싶습니다
제 코드가
if($thumb['src']) {
$img_content = '<img src="'.$thumb['src'].'" alt="'.$thumb['alt'].'">';
} else {
$img_content = '<i class="fa fa-picture-o"></i>';
}
요걸로 인해서
이미지가 없는건 fa fa-picture-o 이 폰트어썸 그림이 뜨는 상태입니다
<ul class="fz_gallery_list">
<?php
for ($i=0; $i<count($list); $i++) {
$thumb = get_list_thumbnail($board['bo_table'], $list[$i]['wr_id'], $board['bo_mobile_gallery_width'], $board['bo_mobile_gallery_height']);
~생략
if($thumb['src']) {
$img_content = '<img src="'.$thumb['src'].'" alt="'.$thumb['alt'].'">';
} else {
$img_content = '<i class="fa fa-picture-o"></i>';
}
?>
<span class="fz_gallery_thumb"><?php echo $img_content;?></span>
이게 제 썸네일 부분만 올려놓은 코드인데요

위드스 100px 부분이 썸네일 가로 부분인데요

다른 웹진 게시판 에서도 공지 출력시에는
<div class="sb_content"<?php if(!$list[$i]['is_notice']) { ?> style="margin-left:<?php echo $board['bo_gallery_width']+12; ?>px;height:<?php echo $board['bo_gallery_height'] ?>px"<?php } ?>>
이런식으로 되어있던데
저도 저렇게 하려면 어떻게 해야될까여?
도움좀 부탁드립니다~~
답변 1개 / 댓글 1개
if($thumb['src']) { $img_content = '<span class="fz_gallery_thumb"><img src="'.$thumb['src'].'" alt="'.$thumb['alt'].'"></span>';} else { $img_content = '';}<?php echo $img_content; ?>
이런식으로 변경하시고 스타일 조정좀 하시면 될 듯 합니다.
답변에 대한 댓글 1개
답변을 작성하려면 로그인이 필요합니다.