first
This commit is contained in:
22
widgets/bs4-default/bbs/all/list-default/_var.config.php
Normal file
22
widgets/bs4-default/bbs/all/list-default/_var.config.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
if(!defined('__KIMS__')) exit;
|
||||
|
||||
//***********************************************************************************
|
||||
// 여기에 이 위젯에서 사용할 변수들을 정의합니다.
|
||||
// 변수 작성법은 매뉴얼을 참고하세요.
|
||||
//***********************************************************************************
|
||||
|
||||
$d['widget']['dom'] = array(
|
||||
|
||||
'list-default' => array(
|
||||
'최근 게시물 리스트 기본형', //위젯명
|
||||
array(
|
||||
array('bid','bbs','게시판 선택',''),
|
||||
array('title','input','타이틀','전체 게시물'),
|
||||
array('limit','select','총 항목수','1개=1,2개=2,3개=3,4개=4,5개=5,6개=6,7개=7,8개=8,9개=9,10개=10,11개=11,12개=12','4'),
|
||||
array('link','input','링크연결','')
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
?>
|
||||
3
widgets/bs4-default/bbs/all/list-default/main.css
Normal file
3
widgets/bs4-default/bbs/all/list-default/main.css
Normal file
@@ -0,0 +1,3 @@
|
||||
.widget .list-group-item a {
|
||||
letter-spacing: -0.03125rem
|
||||
}
|
||||
29
widgets/bs4-default/bbs/all/list-default/main.php
Normal file
29
widgets/bs4-default/bbs/all/list-default/main.php
Normal file
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
$B = getDbData($table['bbslist'],'id="'.$wdgvar['bid'].'"','uid');
|
||||
?>
|
||||
|
||||
<section class="widget mb-4">
|
||||
<header class="d-flex justify-content-between align-items-center py-2 border-bottom border-light">
|
||||
<strong><?php echo $wdgvar['title']?></strong>
|
||||
<?php if($wdgvar['link']):?>
|
||||
<a href="<?php echo $wdgvar['link']?>" class="muted-link small">
|
||||
더보기 <i class="fa fa-angle-right" aria-hidden="true"></i>
|
||||
</a>
|
||||
<?php endif?>
|
||||
</header>
|
||||
<ul class="list-group list-group-flush" data-role="bbs-list">
|
||||
|
||||
<?php $_RCD=getDbArray($table['bbsdata'],($wdgvar['bid']?'bbs='.$B['uid'].' and ':'').'display=1 and site='.$_HS['uid'],'*','gid','asc',$wdgvar['limit'],1)?>
|
||||
<?php while($_R=db_fetch_array($_RCD)):?>
|
||||
|
||||
<li class="list-group-item d-flex justify-content-between align-items-center px-0" id="item-<?php echo $_R['uid'] ?>">
|
||||
<a class="text-nowrap text-truncate muted-link" href="<?php echo getBbsPostLink($_R)?>">
|
||||
<?php echo getStrCut($_R['subject'],$wdgvar['sbjcut'],'..')?>
|
||||
</a>
|
||||
<?php if(getNew($_R['d_regis'],24)):?><span class="rb-new mx-1"></span><?php endif?>
|
||||
<?php if($_R['comment']):?><span class="badge badge-light"><?php echo $_R['comment']?><?php if($_R['oneline']):?>+<?php echo $_R['oneline']?><?php endif?></span><?php endif?>
|
||||
</li>
|
||||
<?php endwhile?>
|
||||
<?php if(!db_num_rows($_RCD)):?><div class="none"></div><?php endif?>
|
||||
</ul>
|
||||
</section><!-- /.widget -->
|
||||
1
widgets/bs4-default/bbs/all/list-default/name.txt
Normal file
1
widgets/bs4-default/bbs/all/list-default/name.txt
Normal file
@@ -0,0 +1 @@
|
||||
게시판-리스트형-01
|
||||
1
widgets/bs4-default/bbs/all/list-default/readme.txt
Normal file
1
widgets/bs4-default/bbs/all/list-default/readme.txt
Normal file
@@ -0,0 +1 @@
|
||||
사용안내
|
||||
BIN
widgets/bs4-default/bbs/all/list-default/thumb.png
Normal file
BIN
widgets/bs4-default/bbs/all/list-default/thumb.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 36 KiB |
Reference in New Issue
Block a user