리빌더 부분 추가

This commit is contained in:
2025-07-02 14:13:16 +09:00
parent b491c16b5e
commit 68797db562
1200 changed files with 264947 additions and 0 deletions

View File

@ -0,0 +1,303 @@
<?php
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
include_once(G5_LIB_PATH.'/thumbnail.lib.php');
global $row_mod, $rb_module_table, $rb_core;
$rb_skin = sql_fetch (" select * from {$rb_module_table} where md_id = '{$options}' "); //최신글 환경설정 테이블 조회 (삭제금지)
$thumb_width = 290;
$thumb_height = 290;
$list_count = (is_array($list) && $list) ? count($list) : 0;
//모듈 타이틀이 설정되지 않은 경우 게시판 제목을 보여줍니다.
if($rb_skin['md_title']) {
$bo_subject = $rb_skin['md_title'];
} else {
$bo_subject = $rb_skin['md_title'];
}
//카테고리 출력옵션을 사용한 경우 카테고리 링크로 이동합니다.
if($rb_skin['md_sca']) {
$links_url = get_pretty_url($bo_table,'','sca='.urlencode($rb_skin['md_sca']));
} else {
$links_url = get_pretty_url($bo_table);
}
/*
모듈설정 연동 변수
$rb_skin['md_id'] 설정ID
$rb_skin['md_layout'] 레이아웃 섹션ID
$rb_skin['md_layout_name'] 레이아웃 스킨명
$rb_skin['md_theme'] 테마명
$rb_skin['md_title'] 타이틀(제목)
$rb_skin['md_bo_table'] 게시판ID
$rb_skin['md_skin'] 스킨명
$rb_skin['md_cnt'] 출력갯수
$rb_skin['md_col'] 행갯수
$rb_skin['md_row'] 열갯수
$rb_skin['md_col_mo'] 행갯수(모바일)
$rb_skin['md_row_mo'] 열갯수(모바일)
$rb_skin['md_gap'] 게시물 간격(여백)
$rb_skin['md_gap_mo'] 모바일 게시물 간격(여백)
$rb_skin['md_width'] 가로사이즈
$rb_skin['md_height'] 세로사이즈
$rb_skin['md_auto_time'] 자동롤링 시간
$rb_skin['md_thumb_is'] 썸네일 출력여부(1,0)
$rb_skin['md_nick_is'] 닉네임 출력여부(1,0)
$rb_skin['md_date_is'] 작성일 출력여부(1,0)
$rb_skin['md_content_is'] 본문내용 출력여부(1,0)
$rb_skin['md_icon_is'] 아이콘 출력여부(1,0)
$rb_skin['md_comment_is'] 댓글수 출력여부(1,0)
$rb_skin['md_swiper_is'] 스와이프 여부(1,0)
$rb_skin['md_auto_is'] 자동롤링 여부(1,0)
*/
?>
<link rel="stylesheet" href="<?php echo $latest_skin_url ?>/style.css?ver=<?php echo G5_TIME_YMDHIS ?>">
<div class="bbs_main rb_latest_event rb_latest_event_<?php echo $row_mod['md_id'] ?>" style="padding-bottom:40px;">
<div class="rb_latest_event_inner" style="width:<?php echo $rb_core['main_width'] ?>px;">
<!-- { -->
<ul class="bbs_main_wrap_tit">
<li class="bbs_main_wrap_tit_l">
<!-- 타이틀 { -->
<a href="<?php echo $links_url; ?>"><h2 class="font-B"><?php echo $bo_subject ?></h2></a>
<!-- } -->
</li>
<li class="bbs_main_wrap_tit_l bbs_main_wrap_sub">
퍼스트가든 이벤트!<br>
아이들의 천국 퍼스트가든에 어서 오세요!
</li>
<li class="bbs_main_wrap_tit_r">
<button type="button" class="more_btn" onclick="location.href='<?php echo $links_url ?>';">더보기</button>
</li>
<div class="cb"></div>
</ul>
<!-- } -->
<!-- { -->
<ul class="bbs_main_wrap_thumb_top_con">
<div class="rb_swiper"
id="rb_swiper_<?php echo $rb_skin['md_id'] ?>"
data-pc-w="<?php echo $rb_skin['md_col'] ?>"
data-pc-h="<?php echo $rb_skin['md_row'] ?>"
data-mo-w="<?php echo $rb_skin['md_col_mo'] ?>"
data-mo-h="<?php echo $rb_skin['md_row_mo'] ?>"
data-pc-gap="<?php echo $rb_skin['md_gap'] ?>"
data-mo-gap="<?php echo $rb_skin['md_gap_mo'] ?>"
data-autoplay="<?php echo $rb_skin['md_auto_is'] ?>"
data-autoplay-time="<?php echo $rb_skin['md_auto_time'] ?>"
data-pc-swap="<?php echo $rb_skin['md_swiper_is'] ?>"
data-mo-swap="<?php echo $rb_skin['md_swiper_is'] ?>"
>
<div class="rb_swiper_inner">
<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>';
$wr_content = strip_tags($list[$i]['wr_content']);
//이벤트
$todays = date('Y-m-d'); // 오늘 날짜
$start_date = isset($list[$i]['wr_1']) ? $list[$i]['wr_1'] : '';
$end_date = isset($list[$i]['wr_2']) ? $list[$i]['wr_2'] : '';
$rb_ev_ico = '';
if($start_date && $end_date) {
if ($todays < $start_date) {
// 진행 전
$rb_ev_ico = '<span class="rb_latest_event_label ev_label1 font-R" style="opacity:0.5;">예정</span>';
} elseif ($todays > $end_date) {
// 종료
$rb_ev_ico = '<span class="rb_latest_event_label ev_label2 font-R">종료</span>';
} else {
// 진행 중
$rb_ev_ico = '<span class="rb_latest_event_label main_rb_bg color-fff font-R">진행</span>';
}
}
?>
<div class="rb_swiper_list">
<!-- for { -->
<div>
<?php if($rb_skin['md_thumb_is'] == 1) { //모듈설정:썸네일 출력여부(1,0)?>
<ul class="bbs_main_wrap_con_ul1">
<a href="<?php echo $wr_href ?>"><?php echo run_replace('thumb_image_tag', $img_content, $thumb); ?></a>
<?php if($rb_skin['md_icon_is'] == 1) { //모듈설정:아이콘 출력여부(1,0)?>
<div class="icon_abs">
<?php if ($list[$i]['icon_new']) echo "<span class=\"bbs_list_label label3\">새글</span>"; ?>
<?php if ($list[$i]['icon_hot']) echo "<span class=\"bbs_list_label label1\">인기</span>"; ?>
</div>
<?php } ?>
</ul>
<?php } ?>
<ul class="bbs_main_wrap_con_ul2" <?php if($rb_skin['md_thumb_is'] != 1) { //모듈설정:썸네일 출력하지 않는경우 ?>style="width:100%"<?php } ?>>
<?php if($rb_skin['md_subject_is'] == 1) { //모듈설정:제목 출력여부(1,0) ?>
<li class="bbs_main_wrap_con_subj cut"><a href="<?php echo $wr_href ?>" class="font-B"><?php echo $list[$i]['subject'] ?></a></li>
<?php } ?>
<?php if($rb_skin['md_content_is'] == 1) { //모듈설정:본문 출력여부(1,0)?>
<?php if (strstr($list[$i]['wr_option'], 'secret')) { ?>
<li class="bbs_main_wrap_con_cont">
<?php echo $sec_txt; ?>
</li>
<?php } else { ?>
<li class="bbs_main_wrap_con_cont cut2">
<a href="<?php echo $wr_href ?>"><?php echo $wr_content; ?></a>
</li>
<?php } ?>
<?php } ?>
<?php if($rb_skin['md_nick_is'] == 1 || $rb_skin['md_date_is'] == 1 || $rb_skin['md_ca_is'] == 1 || $rb_skin['md_comment_is'] == 1) {?>
<li class="bbs_main_wrap_con_info">
<?php if($rb_skin['md_nick_is'] == 1) { //모듈설정:작성자 출력여부(1,0)?>
<span class="font-B"><?php echo $list[$i]['wr_name'] ?></span> 
<?php } ?>
<?php if($rb_skin['md_date_is'] == 1) { //모듈설정:작성일 출력여부(1,0)?>
<?php echo passing_time($list[$i]['wr_datetime']) ?> 
<?php } ?>
<?php if($rb_skin['md_ca_is'] == 1 && $list[$i]['ca_name']) { //모듈설정:카테고리 출력여부(1,0) || 카테고리 있을때만?>
<?php echo $list[$i]['ca_name'] ?> 
<?php } ?>
<?php if($rb_skin['md_comment_is'] == 1) { //모듈설정:댓글 출력여부(1,0 || 댓글이 0개 이상인 경우)?>
<?php if($list[$i]['comment_cnt']) { ?>
댓글 <?php echo number_format($list[$i]['wr_comment']); ?> 
<?php } ?>
조회 <?php echo number_format($list[$i]['wr_hit']); ?> 
<?php } ?>
</li>
<?php } ?>
</ul>
<?php if (isset($list[$i]['wr_1']) && $list[$i]['wr_1'] && isset($list[$i]['wr_2']) && $list[$i]['wr_2']) { ?>
<ul class="rb_latest_event_item_date mt-10 font-16 font-B main_color">
<li class="rb_latest_event_item_date_1"><?php echo get_text($list[$i]['wr_1']); ?> ~ <?php echo get_text($list[$i]['wr_2']); ?></li>
<li class="rb_latest_event_item_date_2"><?php echo $rb_ev_ico ?></li>
</ul>
<?php } ?>
<div class="cb"></div>
</div>
</div>
<!-- } -->
<?php } ?>
<?php if ($list_count == 0) { //게시물이 없을 때 ?>
<div class="no_data" style="width:100% !important;">데이터가 없습니다.</div>
<?php } ?>
</div>
</div>
<?php if($rb_skin['md_swiper_is'] == 1) { //모듈설정:스와이프 사용여부(1,0)?>
<div class="rb_swiper_paging_btn">
<!-- 좌우 페이징 { -->
<button type="button" class="swiper-button-prev rb-swiper-prev">
<img src="<?php echo G5_THEME_URL ?>/rb.img/icon/arr_prev.svg">
</button>
<button type="button" class="swiper-button-next rb-swiper-next">
<img src="<?php echo G5_THEME_URL ?>/rb.img/icon/arr_next.svg">
</button>
<!-- } -->
</div>
<?php } ?>
</div>
</ul>
</div>
</div>
<script>
//부모 width를 무시하고 div 를 100%로 만들고, 모듈설정 버튼의 100% 처리를 위해 스크립트를 사용 합니다.
//복제 사용을 위해 $row_mod['md_id'](모듈ID) 를 활용 합니다.
function adjustDivWidth_<?php echo $row_mod['md_id'] ?>() {
const content_w = $('.rb_latest_event_<?php echo $row_mod['md_id'] ?>');
const firstAdminOv_w = content_w.nextUntil('.admin_ov').next('.admin_ov');
if ($(window).width() > <?php echo $rb_core['main_width'] ?>) {
content_w.css({
'width': '100vw',
'position': 'relative',
'left': '50%',
'transform': 'translateX(-50%)'
});
firstAdminOv_w.css({
'width': '100vw',
'left': '50%',
'transform': 'translateX(-50%)'
});
} else {
content_w.css({
'width': '100%',
'position': 'static',
'left': '0',
'transform': 'none'
});
firstAdminOv_w.css({
'width': '100%',
'left': '0',
'transform': 'none'
});
}
}
$(document).ready(adjustDivWidth_<?php echo $row_mod['md_id'] ?>);
$(window).resize(adjustDivWidth_<?php echo $row_mod['md_id'] ?>);
</script>

View File

@ -0,0 +1,57 @@
@charset "utf-8";
.rb_latest_event {box-sizing: border-box; width: 100%; background-color: #F3F3F3; padding-top: 50px; padding-bottom: 50px;}
.rb_latest_event .rb_latest_event_inner {position: relative; margin: 0 auto;}
.rb_latest_event dd {position: relative;}
.rb_latest_event dd:last-child {margin-bottom: 0px;}
.rb_latest_event .bbs_main_wrap_con_ul1 {width: 100%; box-sizing: border-box; position: relative; margin-bottom: 20px;}
.rb_latest_event .bbs_main_wrap_con_ul1 img {width: 100%; height:auto; border-radius: 10px;}
.rb_latest_event .bbs_main_wrap_con_ul2 {width: 100%;}
.rb_latest_event .bbs_main_wrap_con_subj {font-size: 18px;}
.rb_latest_event .bbs_main_wrap_con_cont {font-size: 14px; color:#666; word-break: keep-all; margin-top: 5px;}
.rb_latest_event .bbs_main_wrap_con_cont a {color:#666;}
.rb_latest_event .bbs_main_wrap_con_info {font-size: 12px; color:#999; margin-top: 10px;}
.rb_latest_event .bbs_main_wrap_con_writer {margin-top: 20px;}
.rb_latest_event .bbs_main_wrap_con_writer span {display: inline-block;}
.rb_latest_event .prof_tiny_image img {width: 30px; height:auto; border-radius: 50%; margin-right: 5px;}
.rb_latest_event .prof_tiny_name {font-size: 12px; color:#999; line-height: 30px; margin-right: 10px;}
.rb_latest_event .bbs_list_label {font-size: 11px; border-radius: 4px; padding-left: 5px; padding-right: 5px; padding-top: 3px; padding-bottom: 2px;}
.rb_latest_event .bbs_main_wrap_tit_l a {font-size: 50px; color:#483729; letter-spacing: -2px;}
.rb_latest_event .icon_abs {position: absolute; right:10px; top:10px;}
.rb_latest_event .bbs_list_label.label1 {background-color: #FFC700; color:#fff;}
.rb_latest_event .bbs_list_label.label2 {background-color: #00A3FF; color:#fff;}
.rb_latest_event .bbs_list_label.label3 {background-color: #8ED100; color:#fff;}
.rb_latest_event .bbs_list_label.label4 {background-color: #AA20FF; color:#fff;}
.rb_latest_event .bbs_list_label.label5 {background-color: #25282B; color:#fff;}
.rb_latest_event .bbs_list_label.label6 {background-color: #D6DCE0; color:#000;}
.rb_latest_event .rb_latest_event_item_date {display: flex; align-items: center; line-height: 24px; border-top:1px solid #ddd; padding-top: 15px; margin-top: 17px !important;}
.rb_latest_event .rb_latest_event_item_date_1 {}
.rb_latest_event .rb_latest_event_item_date_2 {margin-left: auto;}
.rb_latest_event .rb_latest_event_label {padding: 5px 10px; border-radius: 20px; font-size: 12px;}
.rb_latest_event .rb_latest_event_label.ev_label1 {background-color: #25282B; color:#fff;}
.rb_latest_event .rb_latest_event_label.ev_label2 {background-color: #fff}
.rb_latest_event .bbs_main_wrap_sub {margin-left: 30px; margin-top: 8px; font-size: 18px; color:#483729;}
.rb_latest_event_inner_btm {margin-top: 60px !important;}
.theme_btns {width:100%; height:120px; border-radius: 10px; border:0px; background-repeat: no-repeat; background-size: cover; background-position: 0px 0px; display: flex; align-items: center; color:#fff; font-size: 20px; padding-left: 40px; padding-right: 40px; text-align: left;}
.theme_btns img {border:0px !important;}
.theme_btns span:nth-child(2) {margin-left: auto; height:20px;}
@media all and (max-width:1024px) {
.rb_latest_event .rb_latest_event_inner {width: 100% !important;}
.rb_latest_event .rb_swiper_paging_btn {top:14px;}
.rb_latest_event .bbs_main_wrap_tit_l a {font-size: 34px;}
.rb_latest_event .bbs_main_wrap_sub {float:none; margin-left: 0px; font-size: 16px}
.rb_latest_event .bbs_main_wrap_tit_l {float:none;}
.rb_latest_event .rb-swiper-slide {width: 100%;}
.rb_latest_event .bbs_main_wrap_tit_r {margin-top: -86px;}
.rb_latest_event_inner_btm {margin-top: 30px !important;}
.rb_latest_event .rb-swiper-slide {width: 100% !important;}
.rb_latest_event bbs_main_wrap_thumb_top_con {width: 100% !important;}
}
@media all and (max-width:768px) {
.rb_latest_event .rb_latest_event_item_date {display:block;}
.rb_latest_event .rb_latest_event_item_date_1 {font-size: 12px;}
.rb_latest_event .rb_latest_event_inner {width: 100% !important;}
}

View File

@ -0,0 +1,349 @@
<?php
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
include_once(G5_LIB_PATH.'/thumbnail.lib.php');
global $row_mod, $rb_module_table, $rb_core;
$rb_skin = sql_fetch (" select * from {$rb_module_table} where md_id = '{$options}' "); //최신글 환경설정 테이블 조회 (삭제금지)
$thumb_width = 290;
$thumb_height = 290;
$list_count = (is_array($list) && $list) ? count($list) : 0;
//모듈 타이틀이 설정되지 않은 경우 게시판 제목을 보여줍니다.
if($rb_skin['md_title']) {
$bo_subject = $rb_skin['md_title'];
} else {
$bo_subject = $rb_skin['md_title'];
}
//카테고리 출력옵션을 사용한 경우 카테고리 링크로 이동합니다.
if($rb_skin['md_sca']) {
$links_url = get_pretty_url($bo_table,'','sca='.urlencode($rb_skin['md_sca']));
} else {
$links_url = get_pretty_url($bo_table);
}
/*
모듈설정 연동 변수
$rb_skin['md_id'] 설정ID
$rb_skin['md_layout'] 레이아웃 섹션ID
$rb_skin['md_layout_name'] 레이아웃 스킨명
$rb_skin['md_theme'] 테마명
$rb_skin['md_title'] 타이틀(제목)
$rb_skin['md_bo_table'] 게시판ID
$rb_skin['md_skin'] 스킨명
$rb_skin['md_cnt'] 출력갯수
$rb_skin['md_col'] 행갯수
$rb_skin['md_row'] 열갯수
$rb_skin['md_col_mo'] 행갯수(모바일)
$rb_skin['md_row_mo'] 열갯수(모바일)
$rb_skin['md_gap'] 게시물 간격(여백)
$rb_skin['md_gap_mo'] 모바일 게시물 간격(여백)
$rb_skin['md_width'] 가로사이즈
$rb_skin['md_height'] 세로사이즈
$rb_skin['md_auto_time'] 자동롤링 시간
$rb_skin['md_thumb_is'] 썸네일 출력여부(1,0)
$rb_skin['md_nick_is'] 닉네임 출력여부(1,0)
$rb_skin['md_date_is'] 작성일 출력여부(1,0)
$rb_skin['md_content_is'] 본문내용 출력여부(1,0)
$rb_skin['md_icon_is'] 아이콘 출력여부(1,0)
$rb_skin['md_comment_is'] 댓글수 출력여부(1,0)
$rb_skin['md_swiper_is'] 스와이프 여부(1,0)
$rb_skin['md_auto_is'] 자동롤링 여부(1,0)
*/
?>
<link rel="stylesheet" href="<?php echo $latest_skin_url ?>/style.css?ver=<?php echo G5_TIME_YMDHIS ?>">
<div class="bbs_main rb_latest_event rb_latest_event_<?php echo $row_mod['md_id'] ?>" style="padding-top:0px !important;">
<div class="rb_latest_event_inner" style="width:<?php echo $rb_core['main_width'] ?>px;">
<!-- { -->
<ul class="bbs_main_wrap_tit">
<li class="bbs_main_wrap_tit_l">
<!-- 타이틀 { -->
<a href="<?php echo $links_url; ?>"><h2 class="font-B"><?php echo $bo_subject ?></h2></a>
<!-- } -->
</li>
<li class="bbs_main_wrap_tit_l bbs_main_wrap_sub">
퍼스트가든 프로모션!<br>
진행중인 다양한 프로모션을 만나보세요.
</li>
<li class="bbs_main_wrap_tit_r">
<button type="button" class="more_btn" onclick="location.href='<?php echo $links_url ?>';">더보기</button>
</li>
<div class="cb"></div>
</ul>
<!-- } -->
<!-- { -->
<ul class="bbs_main_wrap_thumb_top_con">
<div class="rb_swiper"
id="rb_swiper_<?php echo $rb_skin['md_id'] ?>"
data-pc-w="<?php echo $rb_skin['md_col'] ?>"
data-pc-h="<?php echo $rb_skin['md_row'] ?>"
data-mo-w="<?php echo $rb_skin['md_col_mo'] ?>"
data-mo-h="<?php echo $rb_skin['md_row_mo'] ?>"
data-pc-gap="<?php echo $rb_skin['md_gap'] ?>"
data-mo-gap="<?php echo $rb_skin['md_gap_mo'] ?>"
data-autoplay="<?php echo $rb_skin['md_auto_is'] ?>"
data-autoplay-time="<?php echo $rb_skin['md_auto_time'] ?>"
data-pc-swap="<?php echo $rb_skin['md_swiper_is'] ?>"
data-mo-swap="<?php echo $rb_skin['md_swiper_is'] ?>"
>
<div class="rb_swiper_inner">
<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>';
$wr_content = strip_tags($list[$i]['wr_content']);
//이벤트
$todays = date('Y-m-d'); // 오늘 날짜
$start_date = isset($list[$i]['wr_1']) ? $list[$i]['wr_1'] : '';
$end_date = isset($list[$i]['wr_2']) ? $list[$i]['wr_2'] : '';
$rb_ev_ico = '';
if($start_date && $end_date) {
if ($todays < $start_date) {
// 진행 전
$rb_ev_ico = '<span class="rb_latest_event_label ev_label1 font-R" style="opacity:0.5;">예정</span>';
} elseif ($todays > $end_date) {
// 종료
$rb_ev_ico = '<span class="rb_latest_event_label ev_label2 font-R">종료</span>';
} else {
// 진행 중
$rb_ev_ico = '<span class="rb_latest_event_label main_rb_bg color-fff font-R">진행</span>';
}
}
?>
<div class="rb_swiper_list">
<!-- for { -->
<div>
<?php if($rb_skin['md_thumb_is'] == 1) { //모듈설정:썸네일 출력여부(1,0)?>
<ul class="bbs_main_wrap_con_ul1">
<a href="<?php echo $wr_href ?>"><?php echo run_replace('thumb_image_tag', $img_content, $thumb); ?></a>
<?php if($rb_skin['md_icon_is'] == 1) { //모듈설정:아이콘 출력여부(1,0)?>
<div class="icon_abs">
<?php if ($list[$i]['icon_new']) echo "<span class=\"bbs_list_label label3\">새글</span>"; ?>
<?php if ($list[$i]['icon_hot']) echo "<span class=\"bbs_list_label label1\">인기</span>"; ?>
</div>
<?php } ?>
</ul>
<?php } ?>
<ul class="bbs_main_wrap_con_ul2" <?php if($rb_skin['md_thumb_is'] != 1) { //모듈설정:썸네일 출력하지 않는경우 ?>style="width:100%"<?php } ?>>
<?php if($rb_skin['md_subject_is'] == 1) { //모듈설정:제목 출력여부(1,0) ?>
<li class="bbs_main_wrap_con_subj cut"><a href="<?php echo $wr_href ?>" class="font-B"><?php echo $list[$i]['subject'] ?></a></li>
<?php } ?>
<?php if($rb_skin['md_content_is'] == 1) { //모듈설정:본문 출력여부(1,0)?>
<?php if (strstr($list[$i]['wr_option'], 'secret')) { ?>
<li class="bbs_main_wrap_con_cont">
<?php echo $sec_txt; ?>
</li>
<?php } else { ?>
<li class="bbs_main_wrap_con_cont cut2">
<a href="<?php echo $wr_href ?>"><?php echo $wr_content; ?></a>
</li>
<?php } ?>
<?php } ?>
<?php if($rb_skin['md_nick_is'] == 1 || $rb_skin['md_date_is'] == 1 || $rb_skin['md_ca_is'] == 1 || $rb_skin['md_comment_is'] == 1) {?>
<li class="bbs_main_wrap_con_info">
<?php if($rb_skin['md_nick_is'] == 1) { //모듈설정:작성자 출력여부(1,0)?>
<span class="font-B"><?php echo $list[$i]['wr_name'] ?></span> 
<?php } ?>
<?php if($rb_skin['md_date_is'] == 1) { //모듈설정:작성일 출력여부(1,0)?>
<?php echo passing_time($list[$i]['wr_datetime']) ?> 
<?php } ?>
<?php if($rb_skin['md_ca_is'] == 1 && $list[$i]['ca_name']) { //모듈설정:카테고리 출력여부(1,0) || 카테고리 있을때만?>
<?php echo $list[$i]['ca_name'] ?> 
<?php } ?>
<?php if($rb_skin['md_comment_is'] == 1) { //모듈설정:댓글 출력여부(1,0 || 댓글이 0개 이상인 경우)?>
<?php if($list[$i]['comment_cnt']) { ?>
댓글 <?php echo number_format($list[$i]['wr_comment']); ?> 
<?php } ?>
조회 <?php echo number_format($list[$i]['wr_hit']); ?> 
<?php } ?>
</li>
<?php } ?>
</ul>
<?php if (isset($list[$i]['wr_1']) && $list[$i]['wr_1'] && isset($list[$i]['wr_2']) && $list[$i]['wr_2']) { ?>
<ul class="rb_latest_event_item_date mt-10 font-14 font-B main_color">
<li class="rb_latest_event_item_date_1"><?php echo get_text($list[$i]['wr_1']); ?> ~ <?php echo get_text($list[$i]['wr_2']); ?></li>
<li class="rb_latest_event_item_date_2"><?php echo $rb_ev_ico ?></li>
</ul>
<?php } ?>
<div class="cb"></div>
</div>
</div>
<!-- } -->
<?php } ?>
<?php if ($list_count == 0) { //게시물이 없을 때 ?>
<div class="no_data" style="width:100% !important;">데이터가 없습니다.</div>
<?php } ?>
</div>
</div>
<?php if($rb_skin['md_swiper_is'] == 1) { //모듈설정:스와이프 사용여부(1,0)?>
<div class="rb_swiper_paging_btn">
<!-- 좌우 페이징 { -->
<button type="button" class="swiper-button-prev rb-swiper-prev">
<img src="<?php echo G5_THEME_URL ?>/rb.img/icon/arr_prev.svg">
</button>
<button type="button" class="swiper-button-next rb-swiper-next">
<img src="<?php echo G5_THEME_URL ?>/rb.img/icon/arr_next.svg">
</button>
<!-- } -->
</div>
<?php } ?>
</div>
</ul>
</div>
<div class="rb_latest_event_inner rb_latest_event_inner_btm" style="width:<?php echo $rb_core['main_width'] ?>px;">
<div class="rb_swiper" id="rb_swiper_<?php echo $rb_skin['md_id'] ?>_btm" data-pc-w="3" data-pc-h="2" data-mo-w="1" data-mo-h="1" data-pc-gap="30" data-mo-gap="20" data-autoplay="1" data-autoplay-time="4000" data-pc-swap="0" data-mo-swap="1">
<div class="rb_swiper_inner">
<div class="rb-swiper-wrapper swiper-wrapper">
<div class="rb_swiper_list">
<button type="button" class="theme_btns" style="background-image:url('<?php echo G5_THEME_URL ?>/rb.img/theme1_bg.png');" onclick="window.open('/VR/2019(day).html');">
<span>23가지 테마가 있는<br>퍼스트가든</span>
<span><img src="<?php echo G5_THEME_URL ?>/rb.img/vr_ico.svg"></span>
</button>
</div>
<div class="rb_swiper_list">
<button type="button" class="theme_btns" style="background-image:url('<?php echo G5_THEME_URL ?>/rb.img/theme2_bg.png');" onclick="window.open('/VR/2019(night).html');">
<span>별빛이 흐르는<br>퍼스트가든</span>
<span><img src="<?php echo G5_THEME_URL ?>/rb.img/vr_ico.svg"></span>
</button>
</div>
<div class="rb_swiper_list">
<button type="button" class="theme_btns" style="background-image:url('<?php echo G5_THEME_URL ?>/rb.img/theme3_bg.png');" onclick="location.href='<?php echo G5_URL ?>/content/edu1';">
<span>교육과 체험이 있는<br>퍼스트가든</span>
<span><img src="<?php echo G5_THEME_URL ?>/rb.img/right_ico.svg"></span>
</button>
</div>
<div class="rb_swiper_list">
<button type="button" class="theme_btns" style="background-image:url('<?php echo G5_THEME_URL ?>/rb.img/theme4_bg.png');" onclick="location.href='<?php echo G5_URL ?>/facilities';">
<span>볼거리와 즐길거리가 있는<br>퍼스트가든</span>
<span><img src="<?php echo G5_THEME_URL ?>/rb.img/right_ico.svg"></span>
</button>
</div>
<div class="rb_swiper_list">
<button type="button" class="theme_btns" style="background-image:url('<?php echo G5_THEME_URL ?>/rb.img/theme5_bg.png');" onclick="location.href='<?php echo G5_URL ?>/dining';">
<span>맛있는 먹을거리가 있는<br>퍼스트가든</span>
<span><img src="<?php echo G5_THEME_URL ?>/rb.img/right_ico.svg"></span>
</button>
</div>
<div class="rb_swiper_list">
<button type="button" class="theme_btns" style="background-image:url('<?php echo G5_THEME_URL ?>/rb.img/theme6_bg.png');" onclick="location.href='<?php echo G5_URL ?>/news';">
<span>365일 쉬지 않는<br>퍼스트가든</span>
<span><img src="<?php echo G5_THEME_URL ?>/rb.img/right_ico.svg"></span>
</button>
</div>
</div>
</div>
</div>
</div>
</div>
<script>
//부모 width를 무시하고 div 를 100%로 만들고, 모듈설정 버튼의 100% 처리를 위해 스크립트를 사용 합니다.
//복제 사용을 위해 $row_mod['md_id'](모듈ID) 를 활용 합니다.
function adjustDivWidth_<?php echo $row_mod['md_id'] ?>() {
const content_w = $('.rb_latest_event_<?php echo $row_mod['md_id'] ?>');
const firstAdminOv_w = content_w.nextUntil('.admin_ov').next('.admin_ov');
if ($(window).width() > <?php echo $rb_core['main_width'] ?>) {
content_w.css({
'width': '100vw',
'position': 'relative',
'left': '50%',
'transform': 'translateX(-50%)'
});
firstAdminOv_w.css({
'width': '100vw',
'left': '50%',
'transform': 'translateX(-50%)'
});
} else {
content_w.css({
'width': '100%',
'position': 'static',
'left': '0',
'transform': 'none'
});
firstAdminOv_w.css({
'width': '100%',
'left': '0',
'transform': 'none'
});
}
}
$(document).ready(adjustDivWidth_<?php echo $row_mod['md_id'] ?>);
$(window).resize(adjustDivWidth_<?php echo $row_mod['md_id'] ?>);
</script>

View File

@ -0,0 +1,57 @@
@charset "utf-8";
.rb_latest_event {box-sizing: border-box; width: 100%; background-color: #F3F3F3; padding-top: 50px; padding-bottom: 50px;}
.rb_latest_event .rb_latest_event_inner {position: relative; margin: 0 auto;}
.rb_latest_event dd {position: relative;}
.rb_latest_event dd:last-child {margin-bottom: 0px;}
.rb_latest_event .bbs_main_wrap_con_ul1 {width: 100%; box-sizing: border-box; position: relative; margin-bottom: 20px;}
.rb_latest_event .bbs_main_wrap_con_ul1 img {width: 100%; height:auto; border-radius: 10px;}
.rb_latest_event .bbs_main_wrap_con_ul2 {width: 100%;}
.rb_latest_event .bbs_main_wrap_con_subj {font-size: 18px;}
.rb_latest_event .bbs_main_wrap_con_cont {font-size: 14px; color:#666; word-break: keep-all; margin-top: 5px;}
.rb_latest_event .bbs_main_wrap_con_cont a {color:#666;}
.rb_latest_event .bbs_main_wrap_con_info {font-size: 12px; color:#999; margin-top: 10px;}
.rb_latest_event .bbs_main_wrap_con_writer {margin-top: 20px;}
.rb_latest_event .bbs_main_wrap_con_writer span {display: inline-block;}
.rb_latest_event .prof_tiny_image img {width: 30px; height:auto; border-radius: 50%; margin-right: 5px;}
.rb_latest_event .prof_tiny_name {font-size: 12px; color:#999; line-height: 30px; margin-right: 10px;}
.rb_latest_event .bbs_list_label {font-size: 11px; border-radius: 4px; padding-left: 5px; padding-right: 5px; padding-top: 3px; padding-bottom: 2px;}
.rb_latest_event .bbs_main_wrap_tit_l a {font-size: 50px; color:#483729; letter-spacing: -2px;}
.rb_latest_event .icon_abs {position: absolute; right:10px; top:10px;}
.rb_latest_event .bbs_list_label.label1 {background-color: #FFC700; color:#fff;}
.rb_latest_event .bbs_list_label.label2 {background-color: #00A3FF; color:#fff;}
.rb_latest_event .bbs_list_label.label3 {background-color: #8ED100; color:#fff;}
.rb_latest_event .bbs_list_label.label4 {background-color: #AA20FF; color:#fff;}
.rb_latest_event .bbs_list_label.label5 {background-color: #25282B; color:#fff;}
.rb_latest_event .bbs_list_label.label6 {background-color: #D6DCE0; color:#000;}
.rb_latest_event .rb_latest_event_item_date {display: flex; align-items: center; line-height: 24px; border-top:1px solid #ddd; padding-top: 15px; margin-top: 17px !important;}
.rb_latest_event .rb_latest_event_item_date_1 {}
.rb_latest_event .rb_latest_event_item_date_2 {margin-left: auto;}
.rb_latest_event .rb_latest_event_label {padding: 5px 10px; border-radius: 20px; font-size: 12px;}
.rb_latest_event .rb_latest_event_label.ev_label1 {background-color: #25282B; color:#fff;}
.rb_latest_event .rb_latest_event_label.ev_label2 {background-color: #fff}
.rb_latest_event .bbs_main_wrap_sub {margin-left: 30px; margin-top: 8px; font-size: 18px; color:#483729;}
.rb_latest_event_inner_btm {margin-top: 60px !important;}
.theme_btns {width:100%; height:120px; border-radius: 10px; border:0px; background-repeat: no-repeat; background-size: cover; background-position: 0px 0px; display: flex; align-items: center; color:#fff; font-size: 20px; padding-left: 40px; padding-right: 40px; text-align: left;}
.theme_btns img {border:0px !important;}
.theme_btns span:nth-child(2) {margin-left: auto; height:20px;}
@media all and (max-width:1024px) {
.rb_latest_event .rb_latest_event_inner {width: 100% !important;}
.rb_latest_event .rb_swiper_paging_btn {top:14px;}
.rb_latest_event .bbs_main_wrap_tit_l a {font-size: 34px;}
.rb_latest_event .bbs_main_wrap_sub {float:none; margin-left: 0px; font-size: 16px}
.rb_latest_event .bbs_main_wrap_tit_l {float:none;}
.rb_latest_event .rb-swiper-slide {width: 100%;}
.rb_latest_event .bbs_main_wrap_tit_r {margin-top: -86px;}
.rb_latest_event_inner_btm {margin-top: 30px !important;}
.rb_latest_event .rb-swiper-slide {width: 100% !important;}
.rb_latest_event bbs_main_wrap_thumb_top_con {width: 100% !important;}
}
@media all and (max-width:768px) {
.rb_latest_event .rb_latest_event_item_date {display:block;}
.rb_latest_event .rb_latest_event_item_date_1 {font-size: 12px;}
.rb_latest_event .rb_latest_event_inner {width: 100% !important;}
}

View File

@ -0,0 +1,99 @@
<?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("/&nbsp;/","",$wr_content);
//$wr_content = preg_replace("/&gt;/","",$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>

View File

@ -0,0 +1,27 @@
@charset "utf-8";
.bbs_main_wrap_thumb_top_con {box-sizing: border-box; width: 100%}
.bbs_main_wrap_thumb_top_con dd {position: relative;}
.bbs_main_wrap_thumb_top_con dd:last-child {margin-bottom: 0px;}
.bbs_main_wrap_thumb_top_con .bbs_main_wrap_con_ul1 {width: 100%; box-sizing: border-box; position: relative; margin-bottom: 20px;}
.bbs_main_wrap_thumb_top_con .bbs_main_wrap_con_ul1 img {width: 100%; height:auto; border-radius: 0px;}
.bbs_main_wrap_thumb_top_con .bbs_main_wrap_con_ul2 {width: 100%;}
.bbs_main_wrap_thumb_top_con .bbs_main_wrap_con_subj {font-size: 16px;}
.bbs_main_wrap_thumb_top_con .bbs_main_wrap_con_cont {font-size: 14px; color:#666; word-break: keep-all; margin-top: 15px;}
.bbs_main_wrap_thumb_top_con .bbs_main_wrap_con_cont a {color:#666;}
.bbs_main_wrap_thumb_top_con .bbs_main_wrap_con_info {font-size: 12px; color:#999; margin-top: 10px;}
.bbs_main_wrap_thumb_top_con .bbs_main_wrap_con_writer {margin-top: 20px;}
.bbs_main_wrap_thumb_top_con .bbs_main_wrap_con_writer span {display: inline-block;}
.bbs_main_wrap_thumb_top_con .prof_tiny_image img {width: 30px; height:auto; border-radius: 50%; margin-right: 5px;}
.bbs_main_wrap_thumb_top_con .prof_tiny_name {font-size: 12px; color:#999; line-height: 30px; margin-right: 10px;}
.bbs_main_wrap_thumb_top_con .bbs_list_label {font-size: 11px; border-radius: 4px; padding-left: 5px; padding-right: 5px; padding-top: 3px; padding-bottom: 2px;}
.bbs_main_wrap_thumb_top_con .icon_abs {position: absolute; right:10px; top:10px;}
.bbs_main_wrap_thumb_top_con .bbs_list_label.label1 {background-color: #FFC700; color:#fff;}
.bbs_main_wrap_thumb_top_con .bbs_list_label.label2 {background-color: #00A3FF; color:#fff;}
.bbs_main_wrap_thumb_top_con .bbs_list_label.label3 {background-color: #8ED100; color:#fff;}
.bbs_main_wrap_thumb_top_con .bbs_list_label.label4 {background-color: #AA20FF; color:#fff;}
.bbs_main_wrap_thumb_top_con .bbs_list_label.label5 {background-color: #25282B; color:#fff;}
.bbs_main_wrap_thumb_top_con .bbs_list_label.label6 {background-color: #D6DCE0; color:#000;}
.rb_swiper .rb_swiper_list img {border:0px;}

View File

@ -0,0 +1,291 @@
<?php
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
include_once(G5_LIB_PATH.'/thumbnail.lib.php');
global $row_mod, $rb_module_table, $rb_core;
$rb_skin = sql_fetch (" select * from {$rb_module_table} where md_id = '{$options}' "); //최신글 환경설정 테이블 조회 (삭제금지)
$thumb_width = 400;
$thumb_height = 200;
$list_count = (is_array($list) && $list) ? count($list) : 0;
//모듈 타이틀이 설정되지 않은 경우 게시판 제목을 보여줍니다.
if($rb_skin['md_title']) {
$bo_subject = $rb_skin['md_title'];
} else {
$bo_subject = $rb_skin['md_title'];
}
//카테고리 출력옵션을 사용한 경우 카테고리 링크로 이동합니다.
if($rb_skin['md_sca']) {
$links_url = get_pretty_url($bo_table,'','sca='.urlencode($rb_skin['md_sca']));
} else {
$links_url = get_pretty_url($bo_table);
}
/*
모듈설정 연동 변수
$rb_skin['md_id'] 설정ID
$rb_skin['md_layout'] 레이아웃 섹션ID
$rb_skin['md_layout_name'] 레이아웃 스킨명
$rb_skin['md_theme'] 테마명
$rb_skin['md_title'] 타이틀(제목)
$rb_skin['md_bo_table'] 게시판ID
$rb_skin['md_skin'] 스킨명
$rb_skin['md_cnt'] 출력갯수
$rb_skin['md_col'] 행갯수
$rb_skin['md_row'] 열갯수
$rb_skin['md_col_mo'] 행갯수(모바일)
$rb_skin['md_row_mo'] 열갯수(모바일)
$rb_skin['md_gap'] 게시물 간격(여백)
$rb_skin['md_gap_mo'] 모바일 게시물 간격(여백)
$rb_skin['md_width'] 가로사이즈
$rb_skin['md_height'] 세로사이즈
$rb_skin['md_auto_time'] 자동롤링 시간
$rb_skin['md_thumb_is'] 썸네일 출력여부(1,0)
$rb_skin['md_nick_is'] 닉네임 출력여부(1,0)
$rb_skin['md_date_is'] 작성일 출력여부(1,0)
$rb_skin['md_content_is'] 본문내용 출력여부(1,0)
$rb_skin['md_icon_is'] 아이콘 출력여부(1,0)
$rb_skin['md_comment_is'] 댓글수 출력여부(1,0)
$rb_skin['md_swiper_is'] 스와이프 여부(1,0)
$rb_skin['md_auto_is'] 자동롤링 여부(1,0)
*/
?>
<link rel="stylesheet" href="<?php echo $latest_skin_url ?>/style.css?ver=<?php echo G5_TIME_YMDHIS ?>">
<div class="bbs_main rb_latest_event rb_latest_event_<?php echo $row_mod['md_id'] ?>">
<div class="rb_latest_event_inner" style="width:<?php echo $rb_core['main_width'] ?>px;">
<!-- { -->
<ul class="bbs_main_wrap_tit">
<li class="bbs_main_wrap_tit_l">
<!-- 타이틀 { -->
<a href="<?php echo $links_url; ?>"><h2 class="font-B"><?php echo $bo_subject ?></h2></a>
<!-- } -->
</li>
<li class="bbs_main_wrap_tit_l bbs_main_wrap_sub">
영상으로 보는<br>
퍼스트가든
</li>
<li class="bbs_main_wrap_tit_r">
<button type="button" class="more_btn" onclick="location.href='<?php echo $links_url ?>';">더보기</button>
</li>
<div class="cb"></div>
</ul>
<!-- } -->
<!-- { -->
<ul class="bbs_main_wrap_thumb_top_con">
<div class="rb_swiper"
id="rb_swiper_<?php echo $rb_skin['md_id'] ?>"
data-pc-w="<?php echo $rb_skin['md_col'] ?>"
data-pc-h="<?php echo $rb_skin['md_row'] ?>"
data-mo-w="<?php echo $rb_skin['md_col_mo'] ?>"
data-mo-h="<?php echo $rb_skin['md_row_mo'] ?>"
data-pc-gap="<?php echo $rb_skin['md_gap'] ?>"
data-mo-gap="<?php echo $rb_skin['md_gap_mo'] ?>"
data-autoplay="<?php echo $rb_skin['md_auto_is'] ?>"
data-autoplay-time="<?php echo $rb_skin['md_auto_time'] ?>"
data-pc-swap="<?php echo $rb_skin['md_swiper_is'] ?>"
data-mo-swap="<?php echo $rb_skin['md_swiper_is'] ?>"
>
<div class="rb_swiper_inner">
<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 (isset($list[$i]['wr_1']) && $list[$i]['wr_1']) {
$input = $list[$i]['wr_1']; // 동영상 ID 자체 혹은 URL
$videoId = getYouTubeVideoId($input);
$img = "https://i.ytimg.com/vi/".$videoId."/mqdefault.jpg";
} else 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_3']);
$wr_content = preg_replace("/&nbsp;/","",$wr_content);
$wr_content = preg_replace("/&gt;/","",$wr_content);
$wr_content = get_text($wr_content);
?>
<div class="rb_swiper_list">
<!-- for { -->
<div>
<?php if($rb_skin['md_thumb_is'] == 1) { //모듈설정:썸네일 출력여부(1,0)?>
<ul class="bbs_main_wrap_con_ul1">
<a href="<?php echo $wr_href ?>"><?php echo run_replace('thumb_image_tag', $img_content, $thumb); ?></a>
<?php if($rb_skin['md_icon_is'] == 1) { //모듈설정:아이콘 출력여부(1,0)?>
<div class="icon_abs">
<?php if ($list[$i]['icon_new']) echo "<span class=\"bbs_list_label label3\">새글</span>"; ?>
<?php if ($list[$i]['icon_hot']) echo "<span class=\"bbs_list_label label1\">인기</span>"; ?>
</div>
<?php } ?>
</ul>
<?php } ?>
<ul class="bbs_main_wrap_con_ul2" <?php if($rb_skin['md_thumb_is'] != 1) { //모듈설정:썸네일 출력하지 않는경우 ?>style="width:100%"<?php } ?>>
<?php if($rb_skin['md_subject_is'] == 1) { //모듈설정:제목 출력여부(1,0) ?>
<li class="bbs_main_wrap_con_subj cut" style="text-align:center"><a href="<?php echo $wr_href ?>" class="font-B"><?php echo $list[$i]['subject'] ?></a></li>
<?php } ?>
<?php if($rb_skin['md_content_is'] == 1) { //모듈설정:본문 출력여부(1,0)?>
<?php if (strstr($list[$i]['wr_option'], 'secret')) { ?>
<li class="bbs_main_wrap_con_cont" style="text-align:center">
<?php echo $sec_txt; ?>
</li>
<?php } else { ?>
<li class="bbs_main_wrap_con_cont cut2" style="text-align:center">
<a href="<?php echo $wr_href ?>"><?php echo $wr_content; ?></a>
</li>
<?php } ?>
<?php } ?>
<?php if($rb_skin['md_nick_is'] == 1 || $rb_skin['md_date_is'] == 1 || $rb_skin['md_ca_is'] == 1 || $rb_skin['md_comment_is'] == 1) {?>
<li class="bbs_main_wrap_con_info" style="text-align:center">
<?php if($rb_skin['md_nick_is'] == 1) { //모듈설정:작성자 출력여부(1,0)?>
<span class="font-B"><?php echo $list[$i]['wr_name'] ?></span> 
<?php } ?>
<?php if($rb_skin['md_date_is'] == 1) { //모듈설정:작성일 출력여부(1,0)?>
<?php echo passing_time($list[$i]['wr_datetime']) ?> 
<?php } ?>
<?php if($rb_skin['md_ca_is'] == 1 && $list[$i]['ca_name']) { //모듈설정:카테고리 출력여부(1,0) || 카테고리 있을때만?>
<?php echo $list[$i]['ca_name'] ?> 
<?php } ?>
<?php if($rb_skin['md_comment_is'] == 1) { //모듈설정:댓글 출력여부(1,0 || 댓글이 0개 이상인 경우)?>
<?php if($list[$i]['comment_cnt']) { ?>
댓글 <?php echo number_format($list[$i]['wr_comment']); ?> 
<?php } ?>
조회 <?php echo number_format($list[$i]['wr_hit']); ?> 
<?php } ?>
</li>
<?php } ?>
</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>
<?php if($rb_skin['md_swiper_is'] == 1) { //모듈설정:스와이프 사용여부(1,0)?>
<div class="rb_swiper_paging_btn">
<!-- 좌우 페이징 { -->
<button type="button" class="swiper-button-prev rb-swiper-prev">
<img src="<?php echo G5_THEME_URL ?>/rb.img/icon/arr_prev.svg">
</button>
<button type="button" class="swiper-button-next rb-swiper-next">
<img src="<?php echo G5_THEME_URL ?>/rb.img/icon/arr_next.svg">
</button>
<!-- } -->
</div>
<?php } ?>
</div>
</ul>
</div>
</div>
<script>
//부모 width를 무시하고 div 를 100%로 만들고, 모듈설정 버튼의 100% 처리를 위해 스크립트를 사용 합니다.
//복제 사용을 위해 $row_mod['md_id'](모듈ID) 를 활용 합니다.
function adjustDivWidth_<?php echo $row_mod['md_id'] ?>() {
const content_w = $('.rb_latest_event_<?php echo $row_mod['md_id'] ?>');
const firstAdminOv_w = content_w.nextUntil('.admin_ov').next('.admin_ov');
if ($(window).width() > <?php echo $rb_core['main_width'] ?>) {
content_w.css({
'width': '100vw',
'position': 'relative',
'left': '50%',
'transform': 'translateX(-50%)'
});
firstAdminOv_w.css({
'width': '100vw',
'left': '50%',
'transform': 'translateX(-50%)'
});
} else {
content_w.css({
'width': '100%',
'position': 'static',
'left': '0',
'transform': 'none'
});
firstAdminOv_w.css({
'width': '100%',
'left': '0',
'transform': 'none'
});
}
}
$(document).ready(adjustDivWidth_<?php echo $row_mod['md_id'] ?>);
$(window).resize(adjustDivWidth_<?php echo $row_mod['md_id'] ?>);
</script>

View File

@ -0,0 +1,58 @@
@charset "utf-8";
.rb_latest_event {box-sizing: border-box; width: 100%; background-color: #F3F3F3; padding-top:80px; padding-bottom: 100px;}
.rb_latest_event .rb_latest_event_inner {position: relative; margin: 0 auto;}
.rb_latest_event dd {position: relative;}
.rb_latest_event dd:last-child {margin-bottom: 0px;}
.rb_latest_event .bbs_main_wrap_con_ul1 {width: 100%; box-sizing: border-box; position: relative; margin-bottom: 20px;}
.rb_latest_event .bbs_main_wrap_con_ul1 img {width: 100%; height:auto; border-radius: 10px;}
.rb_latest_event .bbs_main_wrap_con_ul2 {width: 100%;}
.rb_latest_event .bbs_main_wrap_con_subj {font-size: 18px;}
.rb_latest_event .bbs_main_wrap_con_cont {font-size: 14px; color:#666; word-break: keep-all; margin-top: 5px;}
.rb_latest_event .bbs_main_wrap_con_cont a {color:#666;}
.rb_latest_event .bbs_main_wrap_con_info {font-size: 12px; color:#999; margin-top: 10px;}
.rb_latest_event .bbs_main_wrap_con_writer {margin-top: 20px;}
.rb_latest_event .bbs_main_wrap_con_writer span {display: inline-block;}
.rb_latest_event .prof_tiny_image img {width: 30px; height:auto; border-radius: 50%; margin-right: 5px;}
.rb_latest_event .prof_tiny_name {font-size: 12px; color:#999; line-height: 30px; margin-right: 10px;}
.rb_latest_event .bbs_list_label {font-size: 11px; border-radius: 4px; padding-left: 5px; padding-right: 5px; padding-top: 3px; padding-bottom: 2px;}
.rb_latest_event .bbs_main_wrap_tit_l a {font-size: 50px; color:#483729; letter-spacing: -2px;}
.rb_latest_event .icon_abs {position: absolute; right:10px; top:10px;}
.rb_latest_event .bbs_list_label.label1 {background-color: #FFC700; color:#fff;}
.rb_latest_event .bbs_list_label.label2 {background-color: #00A3FF; color:#fff;}
.rb_latest_event .bbs_list_label.label3 {background-color: #8ED100; color:#fff;}
.rb_latest_event .bbs_list_label.label4 {background-color: #AA20FF; color:#fff;}
.rb_latest_event .bbs_list_label.label5 {background-color: #25282B; color:#fff;}
.rb_latest_event .bbs_list_label.label6 {background-color: #D6DCE0; color:#000;}
.rb_latest_event .rb_latest_event_item_date {display: flex; align-items: center; line-height: 24px; border-top:1px solid #ddd; padding-top: 15px; margin-top: 17px !important;}
.rb_latest_event .rb_latest_event_item_date_1 {}
.rb_latest_event .rb_latest_event_item_date_2 {margin-left: auto;}
.rb_latest_event .rb_latest_event_label {padding: 5px 10px; border-radius: 20px; font-size: 12px;}
.rb_latest_event .rb_latest_event_label.ev_label1 {background-color: #25282B; color:#fff;}
.rb_latest_event .rb_latest_event_label.ev_label2 {background-color: #fff}
.rb_latest_event .bbs_main_wrap_sub {margin-left: 30px; margin-top: 8px; font-size: 18px; color:#483729;}
.rb_latest_event_inner_btm {margin-top: 60px !important;}
.theme_btns {width:100%; height:120px; border-radius: 10px; border:0px; background-repeat: no-repeat; background-size: cover; background-position: 0px 0px; display: flex; align-items: center; color:#fff; font-size: 20px; padding-left: 40px; padding-right: 40px; text-align: left;}
.theme_btns img {border:0px !important;}
.theme_btns span:nth-child(2) {margin-left: auto; height:20px;}
@media all and (max-width:1024px) {
.rb_latest_event .rb_latest_event_inner {width: 100% !important;}
.rb_latest_event .rb_swiper_paging_btn {top:14px;}
.rb_latest_event .bbs_main_wrap_tit_l a {font-size: 34px;}
.rb_latest_event .bbs_main_wrap_sub {float:none; margin-left: 0px; font-size: 16px}
.rb_latest_event .bbs_main_wrap_tit_l {float:none;}
.rb_latest_event .rb-swiper-slide {width: 100%;}
.rb_latest_event .bbs_main_wrap_tit_r {margin-top: -86px;}
.rb_latest_event_inner_btm {margin-top: 30px !important;}
.rb_latest_event .rb-swiper-slide {width: 100% !important;}
.rb_latest_event bbs_main_wrap_thumb_top_con {width: 100% !important;}
}
@media all and (max-width:768px) {
.rb_latest_event .rb_latest_event_item_date {display:block;}
.rb_latest_event .rb_latest_event_item_date_1 {font-size: 12px;}
.rb_latest_event .rb_latest_event_inner {width: 100% !important;}
.rb_latest_event {padding-top: 40px; padding-bottom: 50px;}
}

View File

@ -0,0 +1,221 @@
<?php
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
include_once(G5_LIB_PATH.'/thumbnail.lib.php');
$rb_skin = sql_fetch (" select * from {$rb_module_table} where md_id = '{$options}' "); //최신글 환경설정 테이블 조회 (삭제금지)
$thumb_width = 32;
$thumb_height = 32;
$list_count = (is_array($list) && $list) ? count($list) : 0;
//모듈 타이틀이 설정되지 않은 경우 게시판 제목을 보여줍니다.
if(isset($rb_skin['md_title']) && $rb_skin['md_title']) {
$bo_subject = $rb_skin['md_title'];
} else {
$bo_subject = $rb_skin['md_title'];
}
// 카테고리 출력옵션을 사용한 경우 카테고리 링크로 이동합니다.
if (isset($rb_skin['md_sca']) && $rb_skin['md_sca']) {
$links_url = get_pretty_url($bo_table, '', 'sca=' . urlencode($rb_skin['md_sca']));
} else {
$links_url = get_pretty_url($bo_table);
}
/*
모듈설정 연동 변수
$rb_skin['md_id'] 설정ID
$rb_skin['md_layout'] 레이아웃 섹션ID
$rb_skin['md_layout_name'] 레이아웃 스킨명
$rb_skin['md_theme'] 테마명
$rb_skin['md_title'] 타이틀(제목)
$rb_skin['md_bo_table'] 게시판ID
$rb_skin['md_skin'] 스킨명
$rb_skin['md_cnt'] 출력갯수
$rb_skin['md_col'] 행갯수
$rb_skin['md_row'] 열갯수
$rb_skin['md_col_mo'] 행갯수(모바일)
$rb_skin['md_row_mo'] 열갯수(모바일)
$rb_skin['md_gap'] 게시물 간격(여백)
$rb_skin['md_gap_mo'] 모바일 게시물 간격(여백)
$rb_skin['md_width'] 가로사이즈
$rb_skin['md_height'] 세로사이즈
$rb_skin['md_auto_time'] 자동롤링 시간
$rb_skin['md_thumb_is'] 썸네일 출력여부(1,0)
$rb_skin['md_nick_is'] 닉네임 출력여부(1,0)
$rb_skin['md_date_is'] 작성일 출력여부(1,0)
$rb_skin['md_content_is'] 본문내용 출력여부(1,0)
$rb_skin['md_icon_is'] 아이콘 출력여부(1,0)
$rb_skin['md_comment_is'] 댓글수 출력여부(1,0)
$rb_skin['md_swiper_is'] 스와이프 여부(1,0)
$rb_skin['md_auto_is'] 자동롤링 여부(1,0)
*/
?>
<link rel="stylesheet" href="<?php echo $latest_skin_url ?>/style.css?ver=<?php echo G5_SERVER_TIME ?>">
<div class="bbs_main latest_notice">
<!-- { -->
<ul class="bbs_main_wrap_tit" style="display:<?php echo (isset($rb_skin['md_title_hide']) && $rb_skin['md_title_hide'] == '1') ? 'none' : 'block'; ?>">
<li class="bbs_main_wrap_tit_l">
<!-- 타이틀 { -->
<a href="<?php echo $links_url; ?>">
<h2 class="<?php echo isset($rb_skin['md_title_font']) ? $rb_skin['md_title_font'] : 'font-B'; ?>" style="color:<?php echo isset($rb_skin['md_title_color']) ? $rb_skin['md_title_color'] : '#25282b'; ?>; font-size:<?php echo isset($rb_skin['md_title_size']) ? $rb_skin['md_title_size'] : '20'; ?>px; "><?php echo $bo_subject ?></h2>
</a>
<!-- } -->
</li>
<li class="bbs_main_wrap_tit_r">
<button type="button" class="more_btn" onclick="location.href='<?php echo $links_url; ?>';">더보기</button>
</li>
<div class="cb"></div>
</ul>
<!-- } -->
<!-- { -->
<ul class="bbs_main_wrap_basic_main">
<div class="rb_swiper"
id="rb_swiper_<?php echo $rb_skin['md_id'] ?>"
data-pc-w="<?php echo $rb_skin['md_col'] ?>"
data-pc-h="<?php echo $rb_skin['md_row'] ?>"
data-mo-w="<?php echo $rb_skin['md_col_mo'] ?>"
data-mo-h="<?php echo $rb_skin['md_row_mo'] ?>"
data-pc-gap="<?php echo $rb_skin['md_gap'] ?>"
data-mo-gap="<?php echo $rb_skin['md_gap_mo'] ?>"
data-autoplay="<?php echo $rb_skin['md_auto_is'] ?>"
data-autoplay-time="<?php echo $rb_skin['md_auto_time'] ?>"
data-pc-swap="<?php echo $rb_skin['md_swiper_is'] ?>"
data-mo-swap="<?php echo $rb_skin['md_swiper_is'] ?>"
>
<div class="rb_swiper_inner">
<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']) {
$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>';
$wr_content = strip_tags($list[$i]['wr_content']);
?>
<!-- for { -->
<!-- swiper-slide-모듈아이디 -->
<div class="rb_swiper_list">
<div>
<ul class="rb_latest_basic_ul" onclick="location.href='<?php echo $wr_href ?>';">
<?php if($rb_skin['md_ca_is'] == 1 && $list[$i]['ca_name']) { //모듈설정:카테고리 출력여부(1,0) || 카테고리 있을때만?>
<li class="cate_bg_ico"><a href="javascript:void(0);" class="rb_latest_basic_li_ca1"><?php echo $list[$i]['ca_name'] ?></a></li>
<?php } ?>
<?php if($rb_skin['md_thumb_is'] == 1 && $thumb['src'] ) { //모듈설정:썸네일 출력여부(1,0)?>
<li class="rb_latest_thumb_basic_wrap">
<a href="<?php echo $wr_href ?>"><?php echo run_replace('thumb_image_tag', $img_content, $thumb); ?></a>
</li>
<?php } ?>
<li class="subj_li" <?php if($rb_skin['md_ca_is'] != 1 || !$list[$i]['ca_name']) { ?>style="padding-left:0px;"<?php } ?>>
<?php if($rb_skin['md_subject_is'] == 1) { //모듈설정:제목 출력여부(1,0) ?>
<a href="javascript:void(0);" class="subj_cut font-B"><?php echo $list[$i]['subject'] ?></a>
<?php } ?>
<?php if($rb_skin['md_comment_is'] == 1) { //모듈설정:댓글 출력여부(1,0 || 댓글이 0개 이상인 경우)?>
<?php if($list[$i]['comment_cnt']) { ?>
<span class="comments_span font-B main_color">+<?php echo number_format($list[$i]['wr_comment']); ?></span>
<?php } ?>
<?php } ?>
<?php if($rb_skin['md_icon_is'] == 1) { //모듈설정:댓글 출력여부(1,0 || 댓글이 0개 이상인 경우)?>
<?php if ($list[$i]['icon_new']) echo "<span class=\"lb_ico_new\">N</span>"; ?>
<?php if ($list[$i]['icon_hot']) echo "<span class=\"lb_ico_hot\">H</span>"; ?>
<?php } ?>
<div class="cb"></div>
</li>
<?php if($rb_skin['md_date_is'] == 1) { //모듈설정:작성일 출력여부(1,0)?>
<li class="rb_latest_basic_ul_li_last"><?php echo passing_time3($list[$i]['wr_datetime']) ?> </li>
<?php } ?>
<?php if($rb_skin['md_nick_is'] == 1) { //모듈설정:작성자 출력여부(1,0)?>
<li class="rb_latest_basic_ul_li_last"><?php echo get_text($list[$i]['wr_name']); ?></li>
<?php } ?>
</ul>
<?php if($rb_skin['md_content_is'] == 1) { //모듈설정:본문 출력여부(1,0)?>
<ul>
<?php if (strstr($list[$i]['wr_option'], 'secret')) { ?>
<li class="bbs_main_wrap_con_cont">
<?php echo $sec_txt; ?>
</li>
<?php } else { ?>
<li class="bbs_main_wrap_con_cont cut2">
<a href="<?php echo $wr_href ?>"><?php echo $wr_content; ?></a>
</li>
<?php } ?>
</ul>
<?php } ?>
<div class="cb"></div>
</div>
</div>
<!-- } -->
<?php } ?>
<?php if ($list_count == 0) { //게시물이 없을 때 ?>
<div class="no_data" style="width:100% !important;">데이터가 없습니다.</div>
<?php } ?>
</div>
</div>
<?php if($rb_skin['md_swiper_is'] == 1) { //모듈설정:스와이프 사용여부(1,0)?>
<div class="rb_swiper_paging_btn" style="display:<?php echo (isset($rb_skin['md_title_hide']) && $rb_skin['md_title_hide'] == '1') ? 'none' : 'block'; ?>">
<!-- 좌우 페이징 { -->
<button type="button" class="swiper-button-prev rb-swiper-prev">
<img src="<?php echo G5_THEME_URL ?>/rb.img/icon/arr_prev.svg">
</button>
<button type="button" class="swiper-button-next rb-swiper-next">
<img src="<?php echo G5_THEME_URL ?>/rb.img/icon/arr_next.svg">
</button>
<!-- } -->
</div>
<?php } ?>
</div>
</ul>
</div>

View File

@ -0,0 +1,53 @@
@charset "utf-8";
.latest_notice {margin: 20px 0; }
.latest_notice .bbs_main_wrap_tit {margin-bottom: 10px;}
.bbs_main_wrap_basic_main {box-sizing: border-box; width: 100%;}
.bbs_main_wrap_basic_main dd {position: relative; position: relative;}
.bbs_main_wrap_basic_main dd:last-child {margin-bottom: 0px;}
.bbs_main_wrap_basic_main .bbs_main_wrap_con_ul1 {width: 70px; height:70px; position: absolute; top:0px; right:0px;}
.bbs_main_wrap_basic_main .bbs_main_wrap_con_ul1 img {width: 100%; height:100%; border-radius: 10px; object-fit: cover;}
.bbs_main_wrap_basic_main .bbs_main_wrap_con_ul2 {width: 100%; padding-right: 100px; min-height: 75px;}
.bbs_main_wrap_basic_main .bbs_main_wrap_con_subj {font-size: 18px;}
.bbs_main_wrap_basic_main .bbs_main_wrap_con_subj span {font-size: 14px; display: block; color:#999; margin-bottom: 5px;}
.bbs_main_wrap_basic_main .bbs_main_wrap_con_cont {word-break: keep-all; margin-top: 10px;}
.bbs_main_wrap_basic_main .bbs_main_wrap_con_cont a {color:#999; font-size: 13px;}
.bbs_main_wrap_basic_main .bbs_main_wrap_con_info {font-size: 12px; color:#999; margin-top: 5px;}
.bbs_main_wrap_basic_main .bbs_main_wrap_con_writer {margin-top: 10px;}
.bbs_main_wrap_basic_main .bbs_main_wrap_con_writer span {display: inline-block;}
.bbs_main_wrap_basic_main .prof_tiny_image img {width: 30px; height:auto; border-radius: 50%; margin-right: 5px;}
.bbs_main_wrap_basic_main .prof_tiny_name {font-size: 12px; color:#999; line-height: 20px; margin-right: 10px;}
.bbs_main_wrap_basic_main .bbs_list_label {line-height: 17px; font-size: 11px; border-radius: 4px; padding-left: 5px; padding-right: 5px;}
.bbs_main_wrap_basic_main .bbs_list_label.label1 {background-color: #FFC700; color:#fff;}
.bbs_main_wrap_basic_main .bbs_list_label.label2 {background-color: #00A3FF; color:#fff;}
.bbs_main_wrap_basic_main .bbs_list_label.label3 {background-color: #8ED100; color:#fff;}
.bbs_main_wrap_basic_main .bbs_list_label.label4 {background-color: #AA20FF; color:#fff;}
.bbs_main_wrap_basic_main .bbs_list_label.label5 {background-color: #25282B; color:#fff;}
.bbs_main_wrap_basic_main .bbs_list_label.label6 {background-color: #D6DCE0; color:#000;}
.bbs_main_wrap_basic_main .rb_latest_basic_ul {display: flex;gap: 5px;align-items: center;width: 100%; padding-top: 0px; border-top: 0px; cursor: pointer;}
.bbs_main_wrap_basic_main .rb_latest_basic_ul li {flex-grow: 0;white-space: nowrap; align-items: center;}
.bbs_main_wrap_basic_main .rb_latest_basic_ul li.subj_li {flex-grow: 1;min-width: 0;white-space: nowrap;overflow: hidden;text-overflow:ellipsis;padding-left: 10px; font-size: 1.1em;}
.bbs_main_wrap_basic_main .rb_latest_basic_ul li a.subj_cut {font-size: 16px;display: block;text-overflow: ellipsis;overflow: hidden;white-space: nowrap;max-width: 70%;float:left;margin-right: 5px;}
.bbs_main_wrap_basic_main .rb_latest_basic_ul li.rb_latest_basic_ul_li_last {margin-left: auto;white-space: nowrap; color:#888; font-size: 13px;}
.bbs_main_wrap_basic_main .rb_latest_basic_li_ca1 {text-align: center; }
.bbs_main_wrap_basic_main .rb_latest_basic_li_ca2 {color: #999;border: 1px solid #ddd;padding: 5px 15px 5px 15px;border-radius: 30px;font-size: 14px;text-align: center;}
.bbs_main_wrap_basic_main .rb_latest_basic_ul .lb_ico_new {background-color: #8ED100;color: #fff;font-size: 9px;padding: 4px 5px;border-radius: 4px;display: inline-block;line-height: 100%; vertical-align:top; margin-top:0px;}
.bbs_main_wrap_basic_main .rb_latest_basic_ul .lb_ico_hot {background-color: #FFC700;color: #fff;font-size: 9px;padding: 4px 5px;border-radius: 4px;display: inline-block;line-height: 100%; vertical-align:top; margin-top:0px;}
.bbs_main_wrap_basic_main dd:last-child ul {border-bottom: 0px; padding-bottom: 0px;}
.bbs_main_wrap_basic_main .rb_latest_thumb_basic_wrap img {border-radius: 10px; height: 34px; width: 34px; object-fit: cover;}
.bbs_main_wrap_basic_main .rb_latest_thumb_basic_wrap {padding-right: 10px; padding-right: 10px; min-width: 42px; max-width: 34px;}
.bbs_main_wrap_basic_main .comments_span {margin-right: 10px;}
.bbs_main_wrap_basic_main .cate_bg_ico {background-color: #D9D9D9;color: #fff;padding: 5px 15px 5px 15px;border-radius: 30px;font-size: 14px;text-align: center;}
.bbs_main_wrap_basic_main .cate_bg_ico a {color:#fff;}
/* } */
@media all and (max-width:1024px) {
.bbs_main_wrap_basic_main .bbs_main_wrap_con_ul2 {width: 100%; float:none; padding-right: 120px;}
.bbs_main_wrap_basic_main .bbs_main_wrap_con_ul1 {float:none; width: auto; padding-left: 0px; position: absolute; top:30px; right:0px;}
.bbs_main_wrap_basic_main .bbs_main_wrap_con_ul1 img {height:100px; width: auto;}
.bbs_main_wrap_basic_main .rb_latest_basic_li_ca2 {display: none;}
}

View File

@ -0,0 +1,233 @@
<?php
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
include_once(G5_LIB_PATH.'/thumbnail.lib.php');
$rb_skin = sql_fetch (" select * from {$rb_module_table} where md_id = '{$options}' "); //최신글 환경설정 테이블 조회 (삭제금지)
$thumb_width = 180;
$thumb_height = 150;
$list_count = (is_array($list) && $list) ? count($list) : 0;
//모듈 타이틀이 설정되지 않은 경우 게시판 제목을 보여줍니다.
if(isset($rb_skin['md_title']) && $rb_skin['md_title']) {
$bo_subject = $rb_skin['md_title'];
} else {
$bo_subject = $rb_skin['md_title'];
}
//카테고리 출력옵션을 사용한 경우 카테고리 링크로 이동합니다.
if(isset($rb_skin['md_sca']) && $rb_skin['md_sca']) {
$links_url = get_pretty_url($bo_table,'','sca='.urlencode($rb_skin['md_sca']));
} else {
$links_url = get_pretty_url($bo_table);
}
/*
모듈설정 연동 변수
$rb_skin['md_id'] 설정ID
$rb_skin['md_layout'] 레이아웃 섹션ID
$rb_skin['md_layout_name'] 레이아웃 스킨명
$rb_skin['md_theme'] 테마명
$rb_skin['md_title'] 타이틀(제목)
$rb_skin['md_bo_table'] 게시판ID
$rb_skin['md_skin'] 스킨명
$rb_skin['md_cnt'] 출력갯수
$rb_skin['md_col'] 행갯수
$rb_skin['md_row'] 열갯수
$rb_skin['md_col_mo'] 행갯수(모바일)
$rb_skin['md_row_mo'] 열갯수(모바일)
$rb_skin['md_gap'] 게시물 간격(여백)
$rb_skin['md_gap_mo'] 모바일 게시물 간격(여백)
$rb_skin['md_width'] 가로사이즈
$rb_skin['md_height'] 세로사이즈
$rb_skin['md_auto_time'] 자동롤링 시간
$rb_skin['md_thumb_is'] 썸네일 출력여부(1,0)
$rb_skin['md_nick_is'] 닉네임 출력여부(1,0)
$rb_skin['md_date_is'] 작성일 출력여부(1,0)
$rb_skin['md_content_is'] 본문내용 출력여부(1,0)
$rb_skin['md_icon_is'] 아이콘 출력여부(1,0)
$rb_skin['md_comment_is'] 댓글수 출력여부(1,0)
$rb_skin['md_swiper_is'] 스와이프 여부(1,0)
$rb_skin['md_auto_is'] 자동롤링 여부(1,0)
*/
?>
<link rel="stylesheet" href="<?php echo $latest_skin_url ?>/style.css?ver=<?php echo G5_SERVER_TIME ?>">
<div class="bbs_main">
<!-- { -->
<ul class="bbs_main_wrap_tit">
<li class="bbs_main_wrap_tit_l">
<!-- 타이틀 { -->
<a href="<?php echo $links_url ?>">
<h2 class="font-B"><?php echo $bo_subject ?></h2>
</a>
<!-- } -->
</li>
<li class="bbs_main_wrap_tit_r">
<button type="button" class="more_btn" onclick="location.href='<?php echo $links_url ?>';">더보기</button>
</li>
<div class="cb"></div>
</ul>
<!-- } -->
<ul class="bbs_main_wrap_thumb_left_con">
<div class="rb_swiper"
id="rb_swiper_<?php echo $rb_skin['md_id'] ?>"
data-pc-w="<?php echo $rb_skin['md_col'] ?>"
data-pc-h="<?php echo $rb_skin['md_row'] ?>"
data-mo-w="<?php echo $rb_skin['md_col_mo'] ?>"
data-mo-h="<?php echo $rb_skin['md_row_mo'] ?>"
data-pc-gap="<?php echo $rb_skin['md_gap'] ?>"
data-mo-gap="<?php echo $rb_skin['md_gap_mo'] ?>"
data-autoplay="<?php echo $rb_skin['md_auto_is'] ?>"
data-autoplay-time="<?php echo $rb_skin['md_auto_time'] ?>"
data-pc-swap="<?php echo $rb_skin['md_swiper_is'] ?>"
data-mo-swap="<?php echo $rb_skin['md_swiper_is'] ?>"
>
<div class="rb_swiper_inner">
<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("/&nbsp;/","",$wr_content);
//$wr_content = preg_replace("/&gt;/","",$wr_content);
$wr_content = strip_tags($list[$i]['wr_content']);
?>
<div class="rb_swiper_list">
<div>
<?php if($rb_skin['md_thumb_is'] == 1) { //모듈설정:썸네일 출력여부(1,0)?>
<ul class="bbs_main_wrap_con_ul1">
<a href="<?php echo $wr_href ?>"><?php echo run_replace('thumb_image_tag', $img_content, $thumb); ?></a>
</ul>
<?php } ?>
<ul class="bbs_main_wrap_con_ul2" style="<?php if($rb_skin['md_thumb_is'] == 1) { ?><?php } else { ?>padding-left:0px !important; min-height:auto;<?php } ?>">
<?php if($rb_skin['md_subject_is'] == 1) { //모듈설정:제목 출력여부(1,0) ?>
<li class="bbs_main_wrap_con_subj cut"><a href="<?php echo $wr_href ?>" class="font-B"><?php echo $list[$i]['subject'] ?></a></li>
<?php } ?>
<?php if($rb_skin['md_content_is'] == 1) { //모듈설정:본문 출력여부(1,0)?>
<?php if (strstr($list[$i]['wr_option'], 'secret')) { ?>
<li class="bbs_main_wrap_con_cont">
<?php echo $sec_txt; ?>
</li>
<?php } else { ?>
<li class="bbs_main_wrap_con_cont cut2">
<a href="<?php echo $wr_href ?>"><?php echo $wr_content; ?></a>
</li>
<?php } ?>
<?php } ?>
<?php if($rb_skin['md_date_is'] == 1 || $rb_skin['md_ca_is'] == 1 || $rb_skin['md_comment_is'] == 1) { //모듈설정:작성일 출력여부(1,0) || 모듈설정:카테고리명 출력여부(1,0)?>
<li class="bbs_main_wrap_con_info">
<?php if($rb_skin['md_nick_is'] == 1) { //모듈설정:작성자 출력여부(1,0)?>
<span class="prof_tiny_name font-B"><?php echo $list[$i]['wr_name'] ?></span>
<?php } ?>
<?php if($rb_skin['md_date_is'] == 1) { //모듈설정:작성일 출력여부(1,0)?>
<?php echo passing_time($list[$i]['wr_datetime']) ?> 
<?php } ?>
<?php if($rb_skin['md_ca_is'] == 1 && $list[$i]['ca_name']) { //모듈설정:카테고리 출력여부(1,0) || 카테고리 있을때만?>
<?php echo $list[$i]['ca_name'] ?> 
<?php } ?>
<?php if($rb_skin['md_comment_is'] == 1) { //모듈설정:댓글 출력여부(1,0 || 댓글이 0개 이상인 경우)?>
<?php if($list[$i]['comment_cnt']) { ?>
댓글 <?php echo number_format($list[$i]['wr_comment']); ?> 
<?php } ?>
조회 <?php echo number_format($list[$i]['wr_hit']); ?> 
<?php } ?>
</li>
<?php } ?>
<?php if($rb_skin['md_icon_is'] == 1) { //모듈설정:작성자 출력여부(1,0) || 모듈설정:아이콘 출력여부(1,0)?>
<li class="bbs_main_wrap_con_writer">
<?php if($rb_skin['md_icon_is'] == 1) { //모듈설정:아이콘 출력여부(1,0)?>
<?php if ($list[$i]['icon_new']) echo "<span class=\"bbs_list_label label3\">새글</span>"; ?>
<?php if ($list[$i]['icon_hot']) echo "<span class=\"bbs_list_label label1\">인기</span>"; ?>
<?php } ?>
</li>
<?php } ?>
</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>
<?php if($rb_skin['md_swiper_is'] == 1) { //모듈설정:스와이프 사용여부(1,0)?>
<div class="rb_swiper_paging_btn">
<!-- 좌우 페이징 { -->
<button type="button" class="swiper-button-prev rb-swiper-prev">
<img src="<?php echo G5_THEME_URL ?>/rb.img/icon/arr_prev.svg">
</button>
<button type="button" class="swiper-button-next rb-swiper-next">
<img src="<?php echo G5_THEME_URL ?>/rb.img/icon/arr_next.svg">
</button>
<!-- } -->
</div>
<?php } ?>
</div>
</ul>
</div>

View File

@ -0,0 +1,24 @@
@charset "utf-8";
.bbs_main_wrap_thumb_left_con {box-sizing: border-box; width: 100%}
.bbs_main_wrap_thumb_left_con dd {position: relative;}
.bbs_main_wrap_thumb_left_con dd:last-child {margin-bottom: 0px;}
.bbs_main_wrap_thumb_left_con .bbs_main_wrap_con_ul1 {position: absolute; top:0px; left: 0px; padding-right: 30px; box-sizing: border-box;}
.bbs_main_wrap_thumb_left_con .bbs_main_wrap_con_ul1 img {width: 115px; height:95px; border-radius: 10px; object-fit: cover;}
.bbs_main_wrap_thumb_left_con .bbs_main_wrap_con_ul2 {width: 100%; padding-left: 144px; min-height: 95px;}
.bbs_main_wrap_thumb_left_con .bbs_main_wrap_con_subj {font-size: 20px;}
.bbs_main_wrap_thumb_left_con .bbs_main_wrap_con_cont {font-size: 14px; color:#666; word-break: keep-all; margin-top: 15px; min-height: 32px;}
.bbs_main_wrap_thumb_left_con .bbs_main_wrap_con_cont a {color:#666; font-size: 15px;}
.bbs_main_wrap_thumb_left_con .bbs_main_wrap_con_info {font-size: 12px; color:#999; margin-top: 5px;}
.bbs_main_wrap_thumb_left_con .bbs_main_wrap_con_writer {margin-top: 10px;}
.bbs_main_wrap_thumb_left_con .bbs_main_wrap_con_writer span {display: inline-block;}
.bbs_main_wrap_thumb_left_con .prof_tiny_image img {width: 30px; height:auto; border-radius: 50%; margin-right: 5px;}
.bbs_main_wrap_thumb_left_con .prof_tiny_name {font-size: 12px; color:#999; line-height: 20px; margin-right: 10px;}
.bbs_main_wrap_thumb_left_con .bbs_list_label {line-height: 17px; font-size: 11px; border-radius: 4px; padding-left: 5px; padding-right: 5px;}
.bbs_main_wrap_thumb_left_con .bbs_list_label.label1 {background-color: #FFC700; color:#fff;}
.bbs_main_wrap_thumb_left_con .bbs_list_label.label2 {background-color: #00A3FF; color:#fff;}
.bbs_main_wrap_thumb_left_con .bbs_list_label.label3 {background-color: #8ED100; color:#fff;}
.bbs_main_wrap_thumb_left_con .bbs_list_label.label4 {background-color: #AA20FF; color:#fff;}
.bbs_main_wrap_thumb_left_con .bbs_list_label.label5 {background-color: #25282B; color:#fff;}
.bbs_main_wrap_thumb_left_con .bbs_list_label.label6 {background-color: #D6DCE0; color:#000;}

View File

@ -0,0 +1,228 @@
<?php
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
include_once(G5_LIB_PATH.'/thumbnail.lib.php');
$rb_skin = sql_fetch (" select * from rb_module where md_id = '{$options}' "); //최신글 환경설정 테이블 조회 (삭제금지)
$thumb_width = 180;
$thumb_height = 180;
$list_count = (is_array($list) && $list) ? count($list) : 0;
// 모듈 타이틀이 설정되지 않은 경우 게시판 제목을 보여줍니다.
if (isset($rb_skin['md_title']) && $rb_skin['md_title']) {
$bo_subject = $rb_skin['md_title'];
} else {
$bo_subject = '게시판 제목'; // 기본값 설정
}
// 카테고리 출력옵션을 사용한 경우 카테고리 링크로 이동합니다.
if (isset($rb_skin['md_sca']) && $rb_skin['md_sca']) {
$links_url = get_pretty_url($bo_table, '', 'sca=' . urlencode($rb_skin['md_sca']));
} else {
$links_url = get_pretty_url($bo_table);
}
/*
모듈설정 연동 변수
$rb_skin['md_id'] 설정ID
$rb_skin['md_layout'] 레이아웃 섹션ID
$rb_skin['md_layout_name'] 레이아웃 스킨명
$rb_skin['md_theme'] 테마명
$rb_skin['md_title'] 타이틀(제목)
$rb_skin['md_bo_table'] 게시판ID
$rb_skin['md_skin'] 스킨명
$rb_skin['md_cnt'] 출력갯수
$rb_skin['md_col'] 행갯수
$rb_skin['md_row'] 열갯수
$rb_skin['md_col_mo'] 행갯수(모바일)
$rb_skin['md_row_mo'] 열갯수(모바일)
$rb_skin['md_gap'] 게시물 간격(여백)
$rb_skin['md_gap_mo'] 모바일 게시물 간격(여백)
$rb_skin['md_width'] 가로사이즈
$rb_skin['md_height'] 세로사이즈
$rb_skin['md_auto_time'] 자동롤링 시간
$rb_skin['md_thumb_is'] 썸네일 출력여부(1,0)
$rb_skin['md_nick_is'] 닉네임 출력여부(1,0)
$rb_skin['md_date_is'] 작성일 출력여부(1,0)
$rb_skin['md_content_is'] 본문내용 출력여부(1,0)
$rb_skin['md_icon_is'] 아이콘 출력여부(1,0)
$rb_skin['md_comment_is'] 댓글수 출력여부(1,0)
$rb_skin['md_swiper_is'] 스와이프 여부(1,0)
$rb_skin['md_auto_is'] 자동롤링 여부(1,0)
*/
?>
<link rel="stylesheet" href="<?php echo $latest_skin_url ?>/style.css?ver=202407011444">
<div class="bbs_main">
<!-- { -->
<ul class="bbs_main_wrap_tit">
<li class="bbs_main_wrap_tit_l">
<!-- 타이틀 { -->
<a href="<?php echo $links_url; ?>"><h2 class="font-B"><?php echo $bo_subject ?></h2></a>
<!-- } -->
</li>
<li class="bbs_main_wrap_tit_r">
<button type="button" class="more_btn" onclick="location.href='<?php echo $links_url; ?>';">더보기</button>
</li>
<div class="cb"></div>
</ul>
<!-- } -->
<!-- { -->
<ul class="bbs_main_wrap_thumb_con_main">
<div class="rb_swiper"
id="rb_swiper_<?php echo $rb_skin['md_id'] ?>"
data-pc-w="<?php echo $rb_skin['md_col'] ?>"
data-pc-h="<?php echo $rb_skin['md_row'] ?>"
data-mo-w="<?php echo $rb_skin['md_col_mo'] ?>"
data-mo-h="<?php echo $rb_skin['md_row_mo'] ?>"
data-pc-gap="<?php echo $rb_skin['md_gap'] ?>"
data-mo-gap="<?php echo $rb_skin['md_gap_mo'] ?>"
data-autoplay="<?php echo $rb_skin['md_auto_is'] ?>"
data-autoplay-time="<?php echo $rb_skin['md_auto_time'] ?>"
data-pc-swap="<?php echo $rb_skin['md_swiper_is'] ?>"
data-mo-swap="<?php echo $rb_skin['md_swiper_is'] ?>"
>
<div class="rb_swiper_inner">
<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']) {
$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("/&nbsp;/","",$wr_content);
//$wr_content = preg_replace("/&gt;/","",$wr_content);
$wr_content = strip_tags($list[$i]['wr_content']);
?>
<!-- for { -->
<!-- swiper-slide-모듈아이디 -->
<div class="rb_swiper_list">
<div>
<?php if($rb_skin['md_thumb_is'] == 1) { //모듈설정:썸네일 출력여부(1,0)?>
<?php if($thumb['src']) { ?>
<ul class="bbs_main_wrap_con_ul1">
<a href="<?php echo $wr_href ?>"><?php echo run_replace('thumb_image_tag', $img_content, $thumb); ?></a>
</ul>
<?php } ?>
<?php } ?>
<ul class="bbs_main_wrap_con_ul2" <?php if(!$thumb['src'] || !$rb_skin['md_thumb_is']) { ?>style="padding-right:0px; min-height:auto !important;"<?php } ?>>
<?php if($rb_skin['md_subject_is'] == 1) { //모듈설정:제목 출력여부(1,0) ?>
<li class="bbs_main_wrap_con_subj cut"><a href="<?php echo $wr_href ?>" class="font-B"><?php echo $list[$i]['subject'] ?></a></li>
<?php } ?>
<?php if($rb_skin['md_content_is'] == 1) { //모듈설정:본문 출력여부(1,0)?>
<?php if (strstr($list[$i]['wr_option'], 'secret')) { ?>
<li class="bbs_main_wrap_con_cont">
<?php echo $sec_txt; ?>
</li>
<?php } else { ?>
<li class="bbs_main_wrap_con_cont cut2">
<a href="<?php echo $wr_href ?>"><?php echo $wr_content; ?></a>
</li>
<?php } ?>
<?php } ?>
<?php if($rb_skin['md_date_is'] == 1 || $rb_skin['md_ca_is'] == 1 || $rb_skin['md_nick_is'] == 1 || $rb_skin['md_comment_is'] == 1) { //모듈설정:작성일 출력여부(1,0) || 모듈설정:카테고리명 출력여부(1,0) || 모듈설정:작성자 출력여부(1,0) || 모듈설정:댓글 출력여부(1,0 && 댓글이 0개 이상인 경우)?>
<li class="bbs_main_wrap_con_info">
<?php if($rb_skin['md_nick_is'] == 1) { //모듈설정:작성자 출력여부(1,0)?>
<span class="prof_tiny_name font-B"><?php echo $list[$i]['wr_name'] ?></span> 
<?php } ?>
<?php if($rb_skin['md_date_is'] == 1) { //모듈설정:작성일 출력여부(1,0)?>
<?php echo passing_time($list[$i]['wr_datetime']) ?> 
<?php } ?>
<?php if($rb_skin['md_ca_is'] == 1 && $list[$i]['ca_name']) { //모듈설정:카테고리 출력여부(1,0) || 카테고리 있을때만?>
<?php echo $list[$i]['ca_name'] ?> 
<?php } ?>
<?php if($rb_skin['md_comment_is'] == 1) { //모듈설정:댓글 출력여부(1,0 || 댓글이 0개 이상인 경우)?>
<?php if($list[$i]['comment_cnt']) { ?>
댓글 <?php echo number_format($list[$i]['wr_comment']); ?> 
<?php } ?>
조회 <?php echo number_format($list[$i]['wr_hit']); ?> 
<?php } ?>
</li>
<?php } ?>
<?php if($rb_skin['md_icon_is'] == 1 && $list[$i]['icon_new'] || $rb_skin['md_icon_is'] == 1 && $list[$i]['icon_hot']) { //모듈설정:작성자 출력여부(1,0) || 모듈설정:아이콘 출력여부(1,0)?>
<li class="bbs_main_wrap_con_writer">
<?php if ($list[$i]['icon_new']) echo "<span class=\"bbs_list_label label3\">새글</span>"; ?>
<?php if ($list[$i]['icon_hot']) echo "<span class=\"bbs_list_label label1\">인기</span>"; ?>
</li>
<?php } ?>
</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>
<?php if($rb_skin['md_swiper_is'] == 1) { //모듈설정:스와이프 사용여부(1,0)?>
<div class="rb_swiper_paging_btn">
<!-- 좌우 페이징 { -->
<button type="button" class="swiper-button-prev rb-swiper-prev">
<img src="<?php echo G5_THEME_URL ?>/rb.img/icon/arr_prev.svg">
</button>
<button type="button" class="swiper-button-next rb-swiper-next">
<img src="<?php echo G5_THEME_URL ?>/rb.img/icon/arr_next.svg">
</button>
<!-- } -->
</div>
<?php } ?>
</div>
</ul>
</div>

View File

@ -0,0 +1,59 @@
@charset "utf-8";
.bbs_main_wrap_thumb_con {box-sizing: border-box; width: 100%}
.bbs_main_wrap_thumb_con dd {position: relative; border-top:1px solid #ddd; padding-top: 30px; padding-bottom: 5px;}
.bbs_main_wrap_thumb_con dd:last-child {margin-bottom: 0px;}
.bbs_main_wrap_thumb_con .bbs_main_wrap_con_ul1 {width: 100px; position: absolute; top:30px; right:0px;}
.bbs_main_wrap_thumb_con .bbs_main_wrap_con_ul1 img {width: 100%; height:auto; border-radius: 10px;}
.bbs_main_wrap_thumb_con .bbs_main_wrap_con_ul2 {width: 100%; padding-right: 130px;}
.bbs_main_wrap_thumb_con .bbs_main_wrap_con_subj {font-size: 18px;}
.bbs_main_wrap_thumb_con .bbs_main_wrap_con_subj span {font-size: 14px; display: block; color:#999; margin-bottom: 5px;}
.bbs_main_wrap_thumb_con .bbs_main_wrap_con_cont {font-size: 14px; color:#666; word-break: keep-all; margin-top: 15px;}
.bbs_main_wrap_thumb_con .bbs_main_wrap_con_cont a {color:#666;}
.bbs_main_wrap_thumb_con .bbs_main_wrap_con_info {font-size: 12px; color:#999; margin-top: 5px;}
.bbs_main_wrap_thumb_con .bbs_main_wrap_con_writer {margin-top: 10px;}
.bbs_main_wrap_thumb_con .bbs_main_wrap_con_writer span {display: inline-block;}
.bbs_main_wrap_thumb_con .prof_tiny_image img {width: 30px; height:auto; border-radius: 50%; margin-right: 5px;}
.bbs_main_wrap_thumb_con .prof_tiny_name {font-size: 12px; color:#999; line-height: 20px; margin-right: 10px;}
.bbs_main_wrap_thumb_con .bbs_list_label {line-height: 17px; font-size: 11px; border-radius: 4px; padding-left: 5px; padding-right: 5px;}
.bbs_main_wrap_thumb_con .bbs_list_label.label1 {background-color: #FFC700; color:#fff;}
.bbs_main_wrap_thumb_con .bbs_list_label.label2 {background-color: #00A3FF; color:#fff;}
.bbs_main_wrap_thumb_con .bbs_list_label.label3 {background-color: #8ED100; color:#fff;}
.bbs_main_wrap_thumb_con .bbs_list_label.label4 {background-color: #AA20FF; color:#fff;}
.bbs_main_wrap_thumb_con .bbs_list_label.label5 {background-color: #25282B; color:#fff;}
.bbs_main_wrap_thumb_con .bbs_list_label.label6 {background-color: #D6DCE0; color:#000;}
.bbs_main_wrap_thumb_con_main {box-sizing: border-box; width: 100%;}
.bbs_main_wrap_thumb_con_main dd {position: relative; position: relative; padding-bottom: 20px; border-bottom: 1px solid #eee;}
.bbs_main_wrap_thumb_con_main dd:last-child {margin-bottom: 0px;}
.bbs_main_wrap_thumb_con_main .bbs_main_wrap_con_ul1 {width: 70px; height:70px; position: absolute; top:0px; right:0px;}
.bbs_main_wrap_thumb_con_main .bbs_main_wrap_con_ul1 img {width: 100%; height:100%; border-radius: 10px; object-fit: cover;}
.bbs_main_wrap_thumb_con_main .bbs_main_wrap_con_ul2 {width: 100%; padding-right: 100px; min-height: 75px;}
.bbs_main_wrap_thumb_con_main .bbs_main_wrap_con_subj {font-size: 18px;}
.bbs_main_wrap_thumb_con_main .bbs_main_wrap_con_subj span {font-size: 14px; display: block; color:#999; margin-bottom: 5px;}
.bbs_main_wrap_thumb_con_main .bbs_main_wrap_con_cont {font-size: 14px; color:#666; word-break: keep-all; margin-top: 15px;}
.bbs_main_wrap_thumb_con_main .bbs_main_wrap_con_cont a {color:#666; font-size: 15px;}
.bbs_main_wrap_thumb_con_main .bbs_main_wrap_con_info {font-size: 12px; color:#999; margin-top: 5px;}
.bbs_main_wrap_thumb_con_main .bbs_main_wrap_con_writer {margin-top: 10px;}
.bbs_main_wrap_thumb_con_main .bbs_main_wrap_con_writer span {display: inline-block;}
.bbs_main_wrap_thumb_con_main .prof_tiny_image img {width: 30px; height:auto; border-radius: 50%; margin-right: 5px;}
.bbs_main_wrap_thumb_con_main .prof_tiny_name {font-size: 12px; color:#999; line-height: 20px; margin-right: 10px;}
.bbs_main_wrap_thumb_con_main .bbs_list_label {line-height: 17px; font-size: 11px; border-radius: 4px; padding-left: 5px; padding-right: 5px;}
.bbs_main_wrap_thumb_con_main .bbs_list_label.label1 {background-color: #FFC700; color:#fff;}
.bbs_main_wrap_thumb_con_main .bbs_list_label.label2 {background-color: #00A3FF; color:#fff;}
.bbs_main_wrap_thumb_con_main .bbs_list_label.label3 {background-color: #8ED100; color:#fff;}
.bbs_main_wrap_thumb_con_main .bbs_list_label.label4 {background-color: #AA20FF; color:#fff;}
.bbs_main_wrap_thumb_con_main .bbs_list_label.label5 {background-color: #25282B; color:#fff;}
.bbs_main_wrap_thumb_con_main .bbs_list_label.label6 {background-color: #D6DCE0; color:#000;}
@media all and (max-width:1024px) {
.bbs_main_wrap_thumb_con .bbs_main_wrap_con_ul2 {width: 100%; float:none; padding-right: 120px;}
.bbs_main_wrap_thumb_con .bbs_main_wrap_con_ul1 {float:none; width: auto; padding-left: 0px; position: absolute; top:30px; right:0px;}
.bbs_main_wrap_thumb_con .bbs_main_wrap_con_ul1 img {height:100px; width: auto;}
}

View File

@ -0,0 +1,229 @@
<?php
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
include_once(G5_LIB_PATH.'/thumbnail.lib.php');
$rb_skin = sql_fetch (" select * from {$rb_module_table} where md_id = '{$options}' "); //최신글 환경설정 테이블 조회 (삭제금지)
$thumb_width = 400;
$thumb_height = 333;
$list_count = (is_array($list) && $list) ? count($list) : 0;
//모듈 타이틀이 설정되지 않은 경우 게시판 제목을 보여줍니다.
if($rb_skin['md_title']) {
$bo_subject = $rb_skin['md_title'];
} else {
$bo_subject = $rb_skin['md_title'];
}
//카테고리 출력옵션을 사용한 경우 카테고리 링크로 이동합니다.
if($rb_skin['md_sca']) {
$links_url = get_pretty_url($bo_table,'','sca='.urlencode($rb_skin['md_sca']));
} else {
$links_url = get_pretty_url($bo_table);
}
/*
모듈설정 연동 변수
$rb_skin['md_id'] 설정ID
$rb_skin['md_layout'] 레이아웃 섹션ID
$rb_skin['md_layout_name'] 레이아웃 스킨명
$rb_skin['md_theme'] 테마명
$rb_skin['md_title'] 타이틀(제목)
$rb_skin['md_bo_table'] 게시판ID
$rb_skin['md_skin'] 스킨명
$rb_skin['md_cnt'] 출력갯수
$rb_skin['md_col'] 행갯수
$rb_skin['md_row'] 열갯수
$rb_skin['md_col_mo'] 행갯수(모바일)
$rb_skin['md_row_mo'] 열갯수(모바일)
$rb_skin['md_gap'] 게시물 간격(여백)
$rb_skin['md_gap_mo'] 모바일 게시물 간격(여백)
$rb_skin['md_width'] 가로사이즈
$rb_skin['md_height'] 세로사이즈
$rb_skin['md_auto_time'] 자동롤링 시간
$rb_skin['md_thumb_is'] 썸네일 출력여부(1,0)
$rb_skin['md_nick_is'] 닉네임 출력여부(1,0)
$rb_skin['md_date_is'] 작성일 출력여부(1,0)
$rb_skin['md_content_is'] 본문내용 출력여부(1,0)
$rb_skin['md_icon_is'] 아이콘 출력여부(1,0)
$rb_skin['md_comment_is'] 댓글수 출력여부(1,0)
$rb_skin['md_swiper_is'] 스와이프 여부(1,0)
$rb_skin['md_auto_is'] 자동롤링 여부(1,0)
*/
?>
<link rel="stylesheet" href="<?php echo $latest_skin_url ?>/style.css?ver=<?php echo G5_TIME_YMDHIS ?>">
<div class="bbs_main">
<!-- { -->
<ul class="bbs_main_wrap_tit">
<li class="bbs_main_wrap_tit_l">
<!-- 타이틀 { -->
<a href="<?php echo $links_url; ?>"><h2 class="font-B"><?php echo $bo_subject ?></h2></a>
<!-- } -->
</li>
<li class="bbs_main_wrap_tit_r">
<button type="button" class="more_btn" onclick="location.href='<?php echo $links_url; ?>';">더보기</button>
</li>
<div class="cb"></div>
</ul>
<!-- } -->
<!-- { -->
<ul class="bbs_main_wrap_thumb_top_con">
<div class="rb_swiper"
id="rb_swiper_<?php echo $rb_skin['md_id'] ?>"
data-pc-w="<?php echo $rb_skin['md_col'] ?>"
data-pc-h="<?php echo $rb_skin['md_row'] ?>"
data-mo-w="<?php echo $rb_skin['md_col_mo'] ?>"
data-mo-h="<?php echo $rb_skin['md_row_mo'] ?>"
data-pc-gap="<?php echo $rb_skin['md_gap'] ?>"
data-mo-gap="<?php echo $rb_skin['md_gap_mo'] ?>"
data-autoplay="<?php echo $rb_skin['md_auto_is'] ?>"
data-autoplay-time="<?php echo $rb_skin['md_auto_time'] ?>"
data-pc-swap="<?php echo $rb_skin['md_swiper_is'] ?>"
data-mo-swap="<?php echo $rb_skin['md_swiper_is'] ?>"
>
<div class="rb_swiper_inner">
<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("/&nbsp;/","",$wr_content);
//$wr_content = preg_replace("/&gt;/","",$wr_content);
$wr_content = strip_tags($list[$i]['wr_content']);
?>
<div class="rb_swiper_list">
<!-- for { -->
<div>
<?php if($rb_skin['md_thumb_is'] == 1) { //모듈설정:썸네일 출력여부(1,0)?>
<ul class="bbs_main_wrap_con_ul1">
<a href="<?php echo $wr_href ?>"><?php echo run_replace('thumb_image_tag', $img_content, $thumb); ?></a>
<?php if($rb_skin['md_icon_is'] == 1) { //모듈설정:아이콘 출력여부(1,0)?>
<div class="icon_abs">
<?php if ($list[$i]['icon_new']) echo "<span class=\"bbs_list_label label3\">새글</span>"; ?>
<?php if ($list[$i]['icon_hot']) echo "<span class=\"bbs_list_label label1\">인기</span>"; ?>
</div>
<?php } ?>
</ul>
<?php } ?>
<ul class="bbs_main_wrap_con_ul2" <?php if($rb_skin['md_thumb_is'] != 1) { //모듈설정:썸네일 출력하지 않는경우 ?>style="width:100%"<?php } ?>>
<?php if($rb_skin['md_subject_is'] == 1) { //모듈설정:제목 출력여부(1,0) ?>
<li class="bbs_main_wrap_con_subj cut"><a href="<?php echo $wr_href ?>" class="font-B"><?php echo $list[$i]['subject'] ?></a></li>
<?php } ?>
<?php if($rb_skin['md_content_is'] == 1) { //모듈설정:본문 출력여부(1,0)?>
<?php if (strstr($list[$i]['wr_option'], 'secret')) { ?>
<li class="bbs_main_wrap_con_cont">
<?php echo $sec_txt; ?>
</li>
<?php } else { ?>
<li class="bbs_main_wrap_con_cont cut2">
<a href="<?php echo $wr_href ?>"><?php echo $wr_content; ?></a>
</li>
<?php } ?>
<?php } ?>
<?php if($rb_skin['md_nick_is'] == 1 || $rb_skin['md_date_is'] == 1 || $rb_skin['md_ca_is'] == 1 || $rb_skin['md_comment_is'] == 1) {?>
<li class="bbs_main_wrap_con_info">
<?php if($rb_skin['md_nick_is'] == 1) { //모듈설정:작성자 출력여부(1,0)?>
<span class="font-B"><?php echo $list[$i]['wr_name'] ?></span> 
<?php } ?>
<?php if($rb_skin['md_date_is'] == 1) { //모듈설정:작성일 출력여부(1,0)?>
<?php echo passing_time($list[$i]['wr_datetime']) ?> 
<?php } ?>
<?php if($rb_skin['md_ca_is'] == 1 && $list[$i]['ca_name']) { //모듈설정:카테고리 출력여부(1,0) || 카테고리 있을때만?>
<?php echo $list[$i]['ca_name'] ?> 
<?php } ?>
<?php if($rb_skin['md_comment_is'] == 1) { //모듈설정:댓글 출력여부(1,0 || 댓글이 0개 이상인 경우)?>
<?php if($list[$i]['comment_cnt']) { ?>
댓글 <?php echo number_format($list[$i]['wr_comment']); ?> 
<?php } ?>
조회 <?php echo number_format($list[$i]['wr_hit']); ?> 
<?php } ?>
</li>
<?php } ?>
</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>
<?php if($rb_skin['md_swiper_is'] == 1) { //모듈설정:스와이프 사용여부(1,0)?>
<div class="rb_swiper_paging_btn">
<!-- 좌우 페이징 { -->
<button type="button" class="swiper-button-prev rb-swiper-prev">
<img src="<?php echo G5_THEME_URL ?>/rb.img/icon/arr_prev.svg">
</button>
<button type="button" class="swiper-button-next rb-swiper-next">
<img src="<?php echo G5_THEME_URL ?>/rb.img/icon/arr_next.svg">
</button>
<!-- } -->
</div>
<?php } ?>
</div>
</ul>
</div>

View File

@ -0,0 +1,25 @@
@charset "utf-8";
.bbs_main_wrap_thumb_top_con {box-sizing: border-box; width: 100%}
.bbs_main_wrap_thumb_top_con dd {position: relative;}
.bbs_main_wrap_thumb_top_con dd:last-child {margin-bottom: 0px;}
.bbs_main_wrap_thumb_top_con .bbs_main_wrap_con_ul1 {width: 100%; box-sizing: border-box; position: relative; margin-bottom: 20px;}
.bbs_main_wrap_thumb_top_con .bbs_main_wrap_con_ul1 img {width: 100%; height:auto; border-radius: 10px;}
.bbs_main_wrap_thumb_top_con .bbs_main_wrap_con_ul2 {width: 100%;}
.bbs_main_wrap_thumb_top_con .bbs_main_wrap_con_subj {font-size: 16px;}
.bbs_main_wrap_thumb_top_con .bbs_main_wrap_con_cont {font-size: 14px; color:#666; word-break: keep-all; margin-top: 15px;}
.bbs_main_wrap_thumb_top_con .bbs_main_wrap_con_cont a {color:#666;}
.bbs_main_wrap_thumb_top_con .bbs_main_wrap_con_info {font-size: 12px; color:#999; margin-top: 10px;}
.bbs_main_wrap_thumb_top_con .bbs_main_wrap_con_writer {margin-top: 20px;}
.bbs_main_wrap_thumb_top_con .bbs_main_wrap_con_writer span {display: inline-block;}
.bbs_main_wrap_thumb_top_con .prof_tiny_image img {width: 30px; height:auto; border-radius: 50%; margin-right: 5px;}
.bbs_main_wrap_thumb_top_con .prof_tiny_name {font-size: 12px; color:#999; line-height: 30px; margin-right: 10px;}
.bbs_main_wrap_thumb_top_con .bbs_list_label {font-size: 11px; border-radius: 4px; padding-left: 5px; padding-right: 5px; padding-top: 3px; padding-bottom: 2px;}
.bbs_main_wrap_thumb_top_con .icon_abs {position: absolute; right:10px; top:10px;}
.bbs_main_wrap_thumb_top_con .bbs_list_label.label1 {background-color: #FFC700; color:#fff;}
.bbs_main_wrap_thumb_top_con .bbs_list_label.label2 {background-color: #00A3FF; color:#fff;}
.bbs_main_wrap_thumb_top_con .bbs_list_label.label3 {background-color: #8ED100; color:#fff;}
.bbs_main_wrap_thumb_top_con .bbs_list_label.label4 {background-color: #AA20FF; color:#fff;}
.bbs_main_wrap_thumb_top_con .bbs_list_label.label5 {background-color: #25282B; color:#fff;}
.bbs_main_wrap_thumb_top_con .bbs_list_label.label6 {background-color: #D6DCE0; color:#000;}