latest 첨부파일 2개 출력하는 방법
본문
안녕하세요, 현재 그누보드 공부를 하고 있는 학생입니다.
latest skin에 첨부한 파일 이미지 2개를 출력하고 싶은데
기본 스킨에는 1개만 출력되도록 돼 있더라고요.
혹시 2개 출력하는 방법이 있을까요?
현재는
<?php
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
include_once(G5_LIB_PATH.'/thumbnail.lib.php');
$thumb_width = ($options['thumb_width'])?$options['thumb_width']:1920;
$thumb_height = ($options['thumb_height'])?$options['thumb_height']:680;
$list_count = (is_array($list) && $list) ? count($list) : 0;
?>
<div class="main_latest_slider swiper-wrapper">
<?php
for ($i=0; $i<count($list); $i++) {
$thumb = get_list_thumbnail($bo_table, $list[$i]['wr_id'], $thumb_width, $thumb_height, false, true);
if($thumb['src']) {
$img = $thumb['ori'];
} else {
$img = $latest_skin_url.'/img/no_img.png';
}
$txt_big = $list[$i]['wr_subject'];
$txt_small = $list[$i]['wr_content'];
$list[$i]['href'] = ($list[$i]['wr_link1'])?$list[$i]['wr_link1']:$list[$i]['href'];
?>
<div class="slide swiper-slide swiperea<?php echo $i; ?>">
<div class="img_box">
<img src="<?php echo $img;?>" alt="">
</div>
<div class="wrap d-flex justify-content-end">
<div class="txt_box col-12 col-md-4">
<strong class="txt_big d-none"><?php echo $txt_big;?></strong>
<span class="txt_small"><?php echo $txt_small;?></span>
</div>
<a href="<?php echo $list[$i]['href'] ?>" class="ico_more d-none">더보기</a>
</div>
</div>
<?php } ?>
<?php
if (count($list) == 0) { //게시물이 없을 때
?>
<?php
} //if
?>
</div>
위 코드를 넣었습니다.
도움 주시면 감사하겠습니다!