현재 latest 파일에서 이용하고있는 소스입니다.
어디서 문제인건지 썸네일만 불러오지를 못하네요ㅠㅠ
확인한번 부탁드립니다.
<?php
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
include_once(G5_LIB_PATH.'/thumbnail.lib.php');
$sql = " select * from {$g5['board_table']} where bo_table = '{$bo_table}' ";
$board = sql_fetch($sql);
if ($options) list($width, $height, $wrap_width, $content_length) = explode(',', $options);
if (!$width) $width = 158;
if (!$height) $height = 99;
if (!$content_length) $content_length = 66;
add_stylesheet('<link rel="stylesheet" href="'.$latest_skin_url.'/style.css">', 0);
?>
<ul class="latest-zinex"<?php if ($wrap_width) { echo ' style="width:'.$wrap_width.'px;"'; } ?>>
<?php for ($i=0; $i<count($list); $i++) {
$thumb = get_list_thumbnail($board['bo_table'], $list[$i]['wr_id'], $width, $height);
if($thumb['src']) {
$img_content = '<img src="'.$thumb['src'].'" alt="'.$thumb['alt'].'" class="img">';
} else {
$img_content = '<span class="img" style="width:'.$width.'px; height:'.$height.'px;"><img src="/images/main/noimage.gif" alt=""></span>';
}
?>
<li>
<a href="<?php echo $list[$i]['href']; ?>">
<?php echo $img_content; ?>
<h4><?php echo $list[$i]['subject']; ?></h4>
<p><?php echo cut_str(preg_replace("/ /", "", strip_tags($list[$i]['wr_content'])), $content_length); ?></p>
</a>
</li>
<?php
}
if (count($list) == 0) { //게시물이 없을 때 ?>
<li class="nodata">게시물이 없습니다.</li>
<?php } ?>
</ul>