99 lines
4.5 KiB
PHP
99 lines
4.5 KiB
PHP
<?php
|
|
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
|
include_once(G5_LIB_PATH.'/thumbnail.lib.php');
|
|
|
|
$thumb_width = 400;
|
|
$thumb_height = 333;
|
|
$list_count = (is_array($list) && $list) ? count($list) : 0;
|
|
|
|
?>
|
|
|
|
<br><br>
|
|
<link rel="stylesheet" href="<?php echo $latest_skin_url ?>/style.css?ver=<?php echo G5_TIME_YMDHIS ?>">
|
|
|
|
|
|
|
|
<div class="">
|
|
|
|
<!-- { -->
|
|
<ul class="bbs_main_wrap_thumb_top_con">
|
|
|
|
<div class="rb_swiper"
|
|
id="rb_swiper_garden"
|
|
data-pc-w="3"
|
|
data-pc-h="1"
|
|
data-mo-w="2"
|
|
data-mo-h="1"
|
|
data-pc-gap="20"
|
|
data-mo-gap="20"
|
|
data-autoplay="0"
|
|
data-autoplay-time="0"
|
|
data-pc-swap="1"
|
|
data-mo-swap="1"
|
|
>
|
|
|
|
<div class="rb_swiper_inner" style="padding:0px;">
|
|
<div class="rb-swiper-wrapper swiper-wrapper">
|
|
|
|
<?php
|
|
for ($i=0; $i<$list_count; $i++) {
|
|
|
|
//썸네일
|
|
$thumb = get_list_thumbnail($bo_table, $list[$i]['wr_id'], $thumb_width, $thumb_height, false, true);
|
|
|
|
//썸네일여부 확인
|
|
if($thumb['src']) {
|
|
if (strstr($list[$i]['wr_option'], 'secret')) {
|
|
$img = G5_THEME_URL.'/rb.img/sec_image.png';
|
|
} else {
|
|
$img = $thumb['src'];
|
|
}
|
|
} else {
|
|
$img = G5_THEME_URL.'/rb.img/no_image.png';
|
|
$thumb['alt'] = '이미지가 없습니다.';
|
|
}
|
|
|
|
//썸네일 출력 class="skin_list_image" 필수 (높이값 설정용)
|
|
$img_content = '<img src="'.$img.'" alt="'.$thumb['alt'].'" class="skin_list_image">';
|
|
|
|
//게시물 링크
|
|
$wr_href = get_pretty_url($bo_table, $list[$i]['wr_id']);
|
|
|
|
$sec_txt = '<span style="opacity:0.6">작성자 및 관리자 외 열람할 수 없습니다.<br>비밀글 기능으로 보호된 글입니다.</span>';
|
|
|
|
//본문출력 (class="cut" : 한줄자르기 / class="cut2" : 두줄자르기)
|
|
//$wr_content = preg_replace("/<(.*?)\>/","",$list[$i]['wr_content']);
|
|
//$wr_content = preg_replace("/ /","",$wr_content);
|
|
//$wr_content = preg_replace("/>/","",$wr_content);
|
|
$wr_content = strip_tags($list[$i]['wr_content']);
|
|
?>
|
|
|
|
<div class="rb_swiper_list">
|
|
|
|
<!-- for { -->
|
|
|
|
<div>
|
|
|
|
|
|
<ul class="bbs_main_wrap_con_ul1">
|
|
<?php echo run_replace('thumb_image_tag', $img_content, $thumb); ?>
|
|
</ul>
|
|
|
|
<div class="cb"></div>
|
|
</div>
|
|
</div>
|
|
<!-- } -->
|
|
|
|
<?php } ?>
|
|
<?php if ($list_count == 0) { //게시물이 없을 때 ?>
|
|
<div class="no_data" style="width:100% !important;">데이터가 없습니다.</div>
|
|
<?php } ?>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</ul>
|
|
|
|
</div>
|
|
|