최근게시물문의드립니다,
본문
최근리스트에서 한개의 테이블만 나오는데 두개의 게시판이 나오게 가능할까요?
<?php echo latest("theme/slide_gallery", "gallery", 4, 30); ?>
========================= latest.skin.php
<?php
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
include_once(G5_LIB_PATH.'/thumbnail.lib.php');
$imgwidth = "379"; //표시할 이미지의 가로사이즈
$imgheight = "200"; //표시할 이미지의 세로사이즈
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
add_stylesheet('<link rel="stylesheet" href="'.$latest_skin_url.'/assets/owl.theme.default.min.css">',0);
add_stylesheet('<link rel="stylesheet" href="'.$latest_skin_url.'/style.css">', 1);
?>
<!-- <?php echo $bo_subject; ?> 최신글 시작 { -->
<div class="lat">
<h2 class="lat_title"><a href="<?php echo G5_BBS_URL ?>/board.php?bo_table=<?php echo $bo_table ?>"><?php echo $bo_subject ?></a></h2>
</div>
<div class="lt">
<strong class="lt_title"><a href="<?php echo G5_BBS_URL ?>/board.php?bo_table=<?php echo $bo_table ?>"><?php echo $bo_subject; ?></a></strong>
<div class="owl-carousel owl-theme latest-carousel">
<?php for ($i=0; $i<count($list); $i++) { ?>
<div class="a-item">
<?php
$thumb = get_list_thumbnail($bo_table, $list[$i]['wr_id'], $imgwidth, $imgheight, false, true);
$img_content = 'NO IMAGE';
//if($thumb['src']) {
// $img_content = '<img src="'.$thumb['src'].'" alt="'.$list[$i]['subject'].'">';
//}
echo '<div class="img-box" style="background-image:url('.$thumb['src'].');" title="'.get_text($list[$i]['subjecty']).'">';
//echo $img_content;
echo '</div>';
?>
<div class="txt_box clearfix" style="border-left:1px solid #ddd; border-right:1px solid #ddd; border-bottom:1px solid #ddd; padding:30px; height:100px">
<a href="<?=$list[$i]['href']?>" class="info">
<div class="subject">
<?php //제목
if ($list[$i]['is_notice'])
echo "<strong>".$list[$i]['subject']."</strong>";
else
echo $list[$i]['subject'];
?>
</div>
</a>
</div>
<?php
// echo $list[$i]['icon_reply']." ";
// if ($list[$i]['link']['count']) { echo "[{$list[$i]['link']['count']}]"; }
// if ($list[$i]['file']['count']) { echo "<{$list[$i]['file']['count']}>"; }
//if (isset($list[$i]['icon_new'])) echo " " . $list[$i]['icon_new'];
//if (isset($list[$i]['icon_hot'])) echo " " . $list[$i]['icon_hot'];
//if (isset($list[$i]['icon_file'])) echo " " . $list[$i]['icon_file'];
//if (isset($list[$i]['icon_link'])) echo " " . $list[$i]['icon_link'];
//if (isset($list[$i]['icon_secret'])) echo " " . $list[$i]['icon_secret'];
?>
</div>
<?php } ?>
<?php if (count($list) == 0) { //게시물이 없을 때 ?>
<div>게시물이 없습니다.</div>
<?php } ?>
</div>
<div class="lt_more"><a href="<?php echo G5_BBS_URL ?>/board.php?bo_table=<?php echo $bo_table ?>"><span class="sound_only"><?php echo $bo_subject ?></span>더보기</a></div>
</div>
<script>
$('.latest-carousel').owlCarousel({
loop:true,
margin:20,
nav:true,
dots:true,
autoplay: true,
autoplayTimeout: 5000,
navText:['<i class="xi-angle-left"></i> ', '<i class="xi-angle-right"></i> '],
responsive:{
0:{
items:1
},
640:{
items:2
},
1000:{
items:2
},
1200:{
items:2
}
}
})
</script>
<!-- } <?php echo $bo_subject; ?> 최신글 끝 -->