list 갤러리에서 lightbox 적용 image 불러오기 문제 채택완료
말 그대로 list_skin.php 에서 write.skin에서 편집해 올린 image를 lightbox에서 창띄어 자기 자신
image출력할려고 하는데 image를 못 찾네요
=$list[$i]['href']?> 이부분이 문제 인것 같은데 뭘 써야 image를 불러오는지 모르겠네요
고수님들 조언 부탁 드립니다.
아래 코드 상태임
-
'; } else { $img_content = '
http://placehold.it/">http://placehold.it/'.$board['bo_gallery_width'].'X'.$board['bo_gallery_height'].'/ffffff/?text=no+image" class="img-responsive">'; } echo $img_content; } ?>
답변 4개
이렇게 변경 하시면 되실듯 합니다
$img_content=$pop_image = "";
if ($list[$i]['is_notice']) { // 공지사항
$pop_image = $board['bo_gallery_width'].'X'.$board['bo_gallery_height'].'/ffffff/?text=공지';
$img_content = '
';
} else {
$thumb = get_list_thumbnail($board['bo_table'], $list[$i]['wr_id'], $board['bo_gallery_width'], $board['bo_gallery_height'], true, false, ''); // false, true 이미지 확장
if($thumb['src']) {
$pop_image = $thumb['src'];
$img_content = '
';
} else {
$pop_image ='http://placehold.it/">http://placehold.it/'.$board['bo_gallery_width'].'X'.$board['bo_gallery_height'].'/ffffff/?text=no+image';
$img_content = '
';
}
}
?>
댓글을 작성하려면 로그인이 필요합니다.
댓글을 작성하려면 로그인이 필요합니다.
댓글을 작성하려면 로그인이 필요합니다.
댓글을 작성하려면 로그인이 필요합니다.
답변을 작성하려면 로그인이 필요합니다.
로그인