first
24
widgets/rc-default/bbs/all/list-default/_var.config.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
if(!defined('__KIMS__')) exit;
|
||||
|
||||
//***********************************************************************************
|
||||
// 여기에 이 위젯에서 사용할 변수들을 정의합니다.
|
||||
// 변수 작성법은 매뉴얼을 참고하세요.
|
||||
//***********************************************************************************
|
||||
|
||||
$d['widget']['dom'] = array(
|
||||
|
||||
'list-default' => array(
|
||||
'최근 게시물 리스트 기본', //위젯명
|
||||
array(
|
||||
array('bid','bbs','게시판 선택',''),
|
||||
array('title','input','타이틀','전체 게시물'),
|
||||
array('show_header','select','헤더출력','출력=show,숨김=hide','show'),
|
||||
array('vtype','select','보기타입','모달형=modal,페이지형=page','page'),
|
||||
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','링크연결','')
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
?>
|
||||
86
widgets/rc-default/bbs/all/list-default/admin.php
Normal file
@@ -0,0 +1,86 @@
|
||||
<div id="mjointbox">
|
||||
<h5>
|
||||
<i class="fa fa-info-circle"></i>
|
||||
<?php echo getFolderName($g['path_widget'].$swidget)?>
|
||||
</h5>
|
||||
<form name="procform" class="mt-3" role="form">
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-3 col-form-label control-label-sm">게시판 선택</label>
|
||||
<div class="col-sm-8">
|
||||
<select name="bbsid" onchange="titleChange(this);" class="form-control form-control-sm custom-select">
|
||||
<option value=""> + 전체게시물</option>
|
||||
<option value="" disabled>----------------------------------</option>
|
||||
<?php $BBSLIST = getDbArray($table['bbslist'],'','*','gid','asc',0,1)?>
|
||||
<?php while($R=db_fetch_array($BBSLIST)):?>
|
||||
<option value="<?php echo $R['id']?>^<?php echo $R['name']?>^<?php echo RW('m=bbs&bid='.$R['id'])?>"<?php if($wdgvar['bid']==$R['id']):?> selected="selected"<?php endif?>>
|
||||
ㆍ<?php echo $R['name']?>(<?php echo $R['id']?>)
|
||||
</option>
|
||||
<?php endwhile?>
|
||||
</select>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-3 col-form-label control-label-sm">타이틀</label>
|
||||
<div class="col-sm-8">
|
||||
<input type="text" name="title" value="<?php echo $wdgvar['title']?$wdgvar['title']:'최근 게시물'?>" class="form-control form-control-sm" placeholder="">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-3 col-form-label">링크연결</label>
|
||||
<div class="col-sm-8">
|
||||
<input type="url" name="link" value="<?php echo $wdgvar['link']?>" class="form-control form-control-sm" placeholder="">
|
||||
<small class="form-text text-muted mt-2">
|
||||
링크입력시 more(더보기) 링크에 적용됩니다.
|
||||
</small>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-3 col-form-label control-label-sm">노출갯수</label>
|
||||
<div class="col-sm-8">
|
||||
<select name="limit" class="form-control form-control-sm custom-select w-50">
|
||||
<?php for($i = 1; $i < 21; $i++):?>
|
||||
<option value="<?php echo $i?>"<?php if($wdgvar['limit']==$i || (!$wdgvar['limit']&&$i==5)):?> selected<?php endif?>><?php echo $i?>개</option>
|
||||
<?php endfor?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
|
||||
<script>
|
||||
//위젯코드 리턴
|
||||
function widgetCode(n) {
|
||||
var f = document.procform;
|
||||
var bbsx = f.bbsid.value.split('^');
|
||||
var widgetName = "<?php echo $swidget?>"; // 위젯명칭
|
||||
var widgetInfo = "";
|
||||
if(bbsx[0]) widgetInfo = "'bid'=>'"+bbsx[0]+"',";
|
||||
if(f.limit.value) widgetInfo+= "'limit'=>'"+f.limit.value+"',";
|
||||
if(f.title.value) widgetInfo+= "'title'=>'"+f.title.value+"',";
|
||||
if(f.link.value) widgetInfo+= "'link'=>'"+f.link.value+"'";
|
||||
|
||||
if (n) return "<img alt=\"getWidget('"+widgetName+"',array("+widgetInfo+"))\" class=\"rb-widget-edit-img\" src=\"./_core/images/blank.gif\">"; // 에디터삽입 위젯 이미지 코드
|
||||
else return "<"+"?php "+"getWidget('"+widgetName+"',array("+widgetInfo+"))?>"; // PHP 위젯함수 코드
|
||||
}
|
||||
function titleChange(obj) {
|
||||
var f = document.procform;
|
||||
if (obj.value == '')
|
||||
{
|
||||
f.title.value = '최근 게시물';
|
||||
f.link.value = '';
|
||||
f.title.focus();
|
||||
}
|
||||
else {
|
||||
var tt = obj.value.split('^');
|
||||
f.title.value = tt[1];
|
||||
f.link.value = tt[2];
|
||||
f.link.focus();
|
||||
}
|
||||
}
|
||||
//위젯 삽입하기
|
||||
function saveCheck(n) {
|
||||
<?php $isCodeOnly='Y'?>// 코드추출만 지원할 경우
|
||||
}
|
||||
</script>
|
||||
64
widgets/rc-default/bbs/all/list-default/main.php
Normal file
@@ -0,0 +1,64 @@
|
||||
<?php
|
||||
$B = getDbData($table['bbslist'],'id="'.$wdgvar['bid'].'"','*');
|
||||
include_once $g['path_module'].'bbs/themes/'.$d['bbs']['skin_mobile'].'/_widget.php';
|
||||
?>
|
||||
|
||||
<section class="widget bg-white">
|
||||
|
||||
<?php if ($wdgvar['show_header']=='show'): ?>
|
||||
<header>
|
||||
<h3><?php echo $wdgvar['title'] ?></h3>
|
||||
<a href="#page-bbs-list"
|
||||
data-toggle="page"
|
||||
data-start="#page-main"
|
||||
data-bid="<?php echo $wdgvar['bid'] ?>"
|
||||
data-url="<?php echo $wdgvar['link'] ?>"
|
||||
data-title="<?php echo $wdgvar['title']?>">
|
||||
더보기
|
||||
</a>
|
||||
</header>
|
||||
<?php endif?>
|
||||
|
||||
<ul class="table-view mb-0" 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="table-view-cell" id="item-<?php echo $_R['uid'] ?>">
|
||||
<a class="text-nowrap text-truncate"
|
||||
<?php if ($wdgvar['vtype']=='modal'): ?>
|
||||
data-toggle="modal"
|
||||
href="#modal-bbs-view"
|
||||
<?php else: ?>
|
||||
href="#page-bbs-view"
|
||||
data-toggle="page"
|
||||
data-start="#page-main"
|
||||
<?php endif; ?>
|
||||
data-bid="<?php echo $wdgvar['bid'] ?>"
|
||||
data-uid="<?php echo $_R['uid'] ?>"
|
||||
data-url="<?php echo getBbsPostLink($_R)?>"
|
||||
data-cat="<?php echo $_R['category'] ?>"
|
||||
data-title="<?php echo $wdgvar['title']?>"
|
||||
data-name="<?php echo $_R['nic']?>"
|
||||
data-mbruid="<?php echo $_R['mbruid']?>"
|
||||
data-hit="<?php echo $_R['hit']?>"
|
||||
data-d_regis="<?php echo getDateFormat($_R['d_regis'],'Y.m.d H:i'); ?>"
|
||||
data-comment="<?php echo $_R['comment']?><?php echo $_R['oneline']?'+'.$_R['oneline']:'' ?>"
|
||||
data-avatar="<?php echo getAvatarSrc($_R['mbruid'],'150'); ?>"
|
||||
data-subject="<?php echo $_R['subject'] ?>">
|
||||
<?php if(getNew($_R['d_regis'],24)):?>
|
||||
<small class="rb-new mr-1" aria-hidden="true"></small>
|
||||
<?php endif?>
|
||||
<?php echo $_R['subject'] ?>
|
||||
</a>
|
||||
<span class="badge badge-inverted" data-role="total_comment">
|
||||
<?php echo $_R['comment']?><?php echo $_R['oneline']?'+'.$_R['oneline']:'' ?>
|
||||
</span>
|
||||
|
||||
</li>
|
||||
<?php endwhile?>
|
||||
<?php if(!db_num_rows($_RCD)):?>
|
||||
<li class="table-view-cell text-muted">게시물이 없습니다.</li>
|
||||
<?php endif?>
|
||||
</ul>
|
||||
</section><!-- /.widget -->
|
||||
1
widgets/rc-default/bbs/all/list-default/name.txt
Normal file
@@ -0,0 +1 @@
|
||||
최근 게시물 리스트 기본
|
||||
BIN
widgets/rc-default/bbs/all/list-default/thumb.png
Normal file
|
After Width: | Height: | Size: 26 KiB |
24
widgets/rc-default/member/my/card-default/_var.config.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
if(!defined('__KIMS__')) exit;
|
||||
|
||||
$d['widget']['dom'] = array(
|
||||
|
||||
'gallery-default' => array(
|
||||
'나의 프로필 카드', //위젯명
|
||||
array(
|
||||
array('title','input','타이틀','인기 포스트'),
|
||||
array('subtitle','input','보조 타이틀',''),
|
||||
array('sort','select','정렬기준','조회순=hit,좋아요순=likes,댓글순=comment','hit'),
|
||||
array('term','select','출력기간','최근 1주=-1 week,최근 2주=-2 week,최근 3주=-3 week,최근 1달=-4 week'),
|
||||
array('margin_top','select','상단여백','적용=true,미적용=false','true'),
|
||||
array('show_header','select','헤더출력','출력=show,숨김=hide','show'),
|
||||
array('vtype','select','보기타입','모달형=modal,페이지형=page','modal'),
|
||||
array('author','select','등록자 표시','표시함=true,표시안함=false','false'),
|
||||
array('duration','select','동영상 표시','재생시간 표시=show,재생버튼 표시=hide','hide'),
|
||||
array('ranking','select','강조 랭킹표시','강조안함=false,전체강조=1000,1개=1,2개=2,3개=3,4개=4,5개=5,10개=10','3'),
|
||||
array('limit','select','출력 항목수','2개=2,4개=4,6개=6,8개=8,10개=10,12개=12','4'),
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
?>
|
||||
19
widgets/rc-default/member/my/card-default/main.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
?>
|
||||
|
||||
<section class="widget border-bottom<?php echo $wdgvar['margin_top']=='true'?'':' mt-0 border-top-0' ?>">
|
||||
|
||||
<?php if ($wdgvar['show_header']=='show'): ?>
|
||||
<header>
|
||||
<h3><?php echo $wdgvar['title'] ?></h3>
|
||||
<small class="ml-2 text-muted f13"><?php echo $wdgvar['subtitle']?></small>
|
||||
</header>
|
||||
<?php endif; ?>
|
||||
|
||||
<main class="px-3 <?php echo $wdgvar['show_header']=='show'?' pt-1':' pt-3' ?>">
|
||||
|
||||
|
||||
</main>
|
||||
|
||||
</section>
|
||||
1
widgets/rc-default/member/my/card-default/readme.txt
Normal file
@@ -0,0 +1 @@
|
||||
나의 프로필 카드
|
||||
BIN
widgets/rc-default/member/my/card-default/thumb.png
Normal file
|
After Width: | Height: | Size: 151 KiB |
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
if(!defined('__KIMS__')) exit;
|
||||
|
||||
//***********************************************************************************
|
||||
// 여기에 이 위젯에서 사용할 변수들을 정의합니다.
|
||||
// 변수 작성법은 매뉴얼을 참고하세요.
|
||||
//***********************************************************************************
|
||||
|
||||
$d['widget']['dom'] = array(
|
||||
|
||||
'bs4-list-new-card' => array(
|
||||
'추천 리스트', //위젯명
|
||||
array(
|
||||
array('title','input','타이틀','최근 리스트'),
|
||||
array('subtitle','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('line','select','한줄 항목수','1개=1,2개=2,3개=3,4개=4,5개=5','2'),
|
||||
array('link','input','링크연결',RW('m=post&mod=list'))
|
||||
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
?>
|
||||
50
widgets/rc-default/post/list/rec/list-default/main.php
Normal file
@@ -0,0 +1,50 @@
|
||||
<?php $lists = explode(',',$wdgvar['lists']);?>
|
||||
|
||||
<?php if ($wdgvar['lists']): ?>
|
||||
<div class="mt-0 content-padded">
|
||||
|
||||
<header class="d-flex justify-content-between mb-1">
|
||||
<h3><?php echo $wdgvar['title'] ?></h3>
|
||||
<div class="text-muted" data-toggle="page" href="#page-post-alllist" data-start="#page-main" data-url="<?php echo $wdgvar['link'] ?>">
|
||||
더보기 <i class="fa fa-angle-right" aria-hidden="true"></i>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<ul class="media-list">
|
||||
|
||||
<?php foreach($lists as $_s):?>
|
||||
<?php $_R = getDbData($table['postlist'],"id='".$_s."'",'*'); ?>
|
||||
<?php if (!$_R['uid']) continue; ?>
|
||||
<li class="media mb-2"
|
||||
data-target="#page-post-listview"
|
||||
data-toggle="page"
|
||||
data-start="<?php echo $wdgvar['start'] ?>"
|
||||
data-uid="<?php echo $_R['uid'] ?>"
|
||||
data-title="<?php echo $_R['name'] ?>"
|
||||
data-featured="<?php echo getPreviewResize(getListImageSrc($_R['uid']),'480x270'); ?>"
|
||||
data-url="/list/<?php echo $_s ?>" data-id="<?php echo $_s ?>">
|
||||
|
||||
<div class="media-left">
|
||||
<span class="embed-responsive embed-responsive-16by9 bg-faded">
|
||||
<img src="<?php echo getPreviewResize(getListImageSrc($_R['uid']),'480x270'); ?>" class="media-object img-fluid" alt="" style="width:160px">
|
||||
<span class="list_mask">
|
||||
<span class="txt"><?php echo $_R['num'] ?><i class="fa fa-list-ul d-block" aria-hidden="true"></i></span>
|
||||
</span>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<div class="media-body pt-1">
|
||||
<h4 class="media-heading line-clamp-2"><?php echo $_R['name'] ?></h4>
|
||||
<div style="font-size: 0.875rem">동영상 <?php echo $_R['num'] ?>개</div>
|
||||
<ul class="list-inline f13 text-muted mt-1 mb-0">
|
||||
<li class="list-inline-item"><?php echo getProfileInfo($_R['mbruid'],'nic') ?></li>
|
||||
<li class="list-inline-item"><time data-plugin="timeago" datetime="<?php echo getDateFormat($_R['d_modify']?$_R['d_modify']:$_R['d_regis'],'c') ?>"></time></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
|
||||
</ul>
|
||||
</div><!-- /.content-padded -->
|
||||
<?php endif; ?>
|
||||
1
widgets/rc-default/post/list/rec/list-default/readme.txt
Normal file
@@ -0,0 +1 @@
|
||||
신규등록된 리스트를 출력합니다.
|
||||
BIN
widgets/rc-default/post/list/rec/list-default/thumb.png
Normal file
|
After Width: | Height: | Size: 48 KiB |
19
widgets/rc-default/post/list/rec/req-banner/_var.config.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
if(!defined('__KIMS__')) exit;
|
||||
|
||||
//***********************************************************************************
|
||||
// 여기에 이 위젯에서 사용할 변수들을 정의합니다.
|
||||
// 변수 작성법은 매뉴얼을 참고하세요.
|
||||
//***********************************************************************************
|
||||
|
||||
$d['widget']['dom'] = array(
|
||||
|
||||
'bs4-list-new-card' => array(
|
||||
'리스트 배너', //위젯명
|
||||
array(
|
||||
array('id','postlist','리스트 선택',''),
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
?>
|
||||
42
widgets/rc-default/post/list/rec/req-banner/main.php
Normal file
@@ -0,0 +1,42 @@
|
||||
<?php
|
||||
$LIST=getDbData($table['postlist'],"id='".$wdgvar['id']."'",'*');
|
||||
?>
|
||||
|
||||
<style>
|
||||
.ad_section {
|
||||
padding: 2rem 0;
|
||||
border-top: .0625rem solid #e4e6e7;
|
||||
border-bottom:.0625rem solid #e4e6e7;
|
||||
background-size: cover;
|
||||
position: relative;
|
||||
color: #fff;
|
||||
}
|
||||
.ad_section::before {
|
||||
position: absolute;
|
||||
content: ' ';
|
||||
left:0;
|
||||
right:0;
|
||||
top:0;
|
||||
bottom:0;
|
||||
background-color: rgba(0, 0, 0, 0.5);
|
||||
}
|
||||
</style>
|
||||
|
||||
<div class="ad_section border-top border-bottom bg-faded py-4" style="background-image: url(<?php echo getListImageSrc($LIST['uid']) ?>);">
|
||||
<div class="text-xs-center text-white">
|
||||
<div class="position-relative">
|
||||
|
||||
<p class="text-white"><?php echo $LIST['review'] ?></p>
|
||||
<a href="#page-post-listview"
|
||||
data-start="#page-main"
|
||||
data-toggle="page"
|
||||
data-title="<?php echo $LIST['name'] ?>"
|
||||
data-url="/list/<?php echo $wdgvar['id'] ?>"
|
||||
data-id="<?php echo $wdgvar['id'] ?>"
|
||||
class="btn btn-outline-secondary">
|
||||
자세히 보기
|
||||
</a>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
1
widgets/rc-default/post/list/rec/req-banner/readme.txt
Normal file
@@ -0,0 +1 @@
|
||||
신규등록된 리스트를 출력합니다.
|
||||
BIN
widgets/rc-default/post/list/rec/req-banner/thumb.png
Normal file
|
After Width: | Height: | Size: 48 KiB |
24
widgets/rc-default/post/list/rec/req-swipe/_var.config.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
if(!defined('__KIMS__')) exit;
|
||||
|
||||
//***********************************************************************************
|
||||
// 여기에 이 위젯에서 사용할 변수들을 정의합니다.
|
||||
// 변수 작성법은 매뉴얼을 참고하세요.
|
||||
//***********************************************************************************
|
||||
|
||||
$d['widget']['dom'] = array(
|
||||
|
||||
'bs4-list-new-card' => array(
|
||||
'최근 리스트', //위젯명
|
||||
array(
|
||||
array('title','input','타이틀','최근 리스트'),
|
||||
array('subtitle','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('line','select','한줄 항목수','1개=1,2개=2,3개=3,4개=4,5개=5','2'),
|
||||
array('link','input','링크연결',RW('m=post&mod=list'))
|
||||
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
?>
|
||||
49
widgets/rc-default/post/list/rec/req-swipe/main.php
Normal file
@@ -0,0 +1,49 @@
|
||||
<?php $lists = explode(',',$wdgvar['lists']);?>
|
||||
|
||||
<div class="mt-0 content-padded">
|
||||
<header>
|
||||
<h3><?php echo $wdgvar['title'] ?></h3>
|
||||
</header>
|
||||
<div class="swiper-container js-swiper-gallery">
|
||||
<div class="swiper-wrapper">
|
||||
<?php foreach($posts as $_s):?>
|
||||
<?php $_R = getDbData($table['postdata'],"cid='".$_s."'",'*'); ?>
|
||||
<?php if (!$_R['uid']) continue; ?>
|
||||
<div class="swiper-slide" style="width: 40%">
|
||||
<div class="card card-video border-0 text-left m-0"
|
||||
data-target="#page-post-view"
|
||||
data-toggle="page"
|
||||
data-start="<?php echo $wdgvar['start'] ?>"
|
||||
data-url="/post/<?php echo $_s ?>"
|
||||
data-featured="<?php echo getPreviewResize(getUpImageSrc($_R),'640x360') ?>"
|
||||
data-format="<?php echo $_R['format']==2?'video':'doc' ?>"
|
||||
data-provider="<?php echo getFeaturedimgMeta($_R,'provider'); ?>"
|
||||
data-videoid="<?php echo getFeaturedimgMeta($_R,'name'); ?>"
|
||||
data-uid="<?php echo $_R['uid'] ?>"
|
||||
data-title="<?php echo $_R['subject'] ?>">
|
||||
<div class="position-relative">
|
||||
<img src="<?php echo getPreviewResize(getUpImageSrc($_R),'250x300') ?>" alt="" class="img-fluid">
|
||||
<time class="badge badge-default bg-black rounded-0 position-absolute" style="right:1px;bottom:1px" data-role="time">
|
||||
<?php echo getUpImageTime($_R) ?>
|
||||
</time>
|
||||
</div>
|
||||
<p class="text-xs-center text-muted mt-1 line-clamp-2" style="font-size: 0.875rem">
|
||||
<?php echo $_R['subject'] ?>
|
||||
</p>
|
||||
</div>
|
||||
</div><!-- /.swiper-slide -->
|
||||
<?php endforeach; ?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div><!-- /.content-padded -->
|
||||
|
||||
|
||||
|
||||
|
||||
<script>
|
||||
var swiper_post_gallery = new Swiper('.js-swiper-gallery', {
|
||||
spaceBetween: 10,
|
||||
slidesPerView: 'auto'
|
||||
});
|
||||
</script>
|
||||
1
widgets/rc-default/post/list/rec/req-swipe/readme.txt
Normal file
@@ -0,0 +1 @@
|
||||
신규등록된 리스트를 출력합니다.
|
||||
BIN
widgets/rc-default/post/list/rec/req-swipe/thumb.png
Normal file
|
After Width: | Height: | Size: 48 KiB |
22
widgets/rc-default/post/list/rec/view-card/_var.config.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
if(!defined('__KIMS__')) exit;
|
||||
|
||||
//***********************************************************************************
|
||||
// 여기에 이 위젯에서 사용할 변수들을 정의합니다.
|
||||
// 변수 작성법은 매뉴얼을 참고하세요.
|
||||
//***********************************************************************************
|
||||
|
||||
$d['widget']['dom'] = array(
|
||||
|
||||
'bs4-list-view-card' => array(
|
||||
'특정 리스트', //위젯명
|
||||
array(
|
||||
array('listid','postlist','내 리스트',''),
|
||||
array('disTitle','select','타이틀 헤더 출력','출력=true,미출력=false','true'),
|
||||
array('cardmargin','select','카드 외곽여백','여백있음=true,여백없음=false','true'),
|
||||
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'),
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
?>
|
||||
0
widgets/rc-default/post/list/rec/view-card/main.css
Normal file
90
widgets/rc-default/post/list/rec/view-card/main.php
Normal file
@@ -0,0 +1,90 @@
|
||||
<?php
|
||||
|
||||
$LIST=getDbData($table['postlist'],"id='".$wdgvar['listid']."'",'*');
|
||||
|
||||
$_postque = 'site='.$s.' and list="'.$LIST['uid'].'"';
|
||||
$_RCD=getDbArray($table['postlist_index'],$_postque,'*','gid','asc',$wdgvar['limit'],1);
|
||||
while($_R = db_fetch_array($_RCD)) $RCD[] = getDbData($table['postdata'],'uid='.$_R['data'],'*');
|
||||
?>
|
||||
|
||||
<?php if ($wdgvar['listid']): ?>
|
||||
<section class="widget mb-4">
|
||||
<?php if ($wdgvar['disTitle']=='true'): ?>
|
||||
<header class="d-flex justify-content-between align-items-center d-flex justify-content-between align-items-center mb-2 content-padded">
|
||||
|
||||
<?php if ($LIST['uid']): ?>
|
||||
<div class="">
|
||||
<div class="media align-items-center">
|
||||
<div class="media-body">
|
||||
<h5 class="my-0">
|
||||
<a href="" class="text-decoration-none text-reset" data-url="<?php echo getListLink($LIST,1) ?>">
|
||||
<?php echo $LIST['name'] ?>
|
||||
</a>
|
||||
<a href="<?php echo getProfileLink($LIST['mbruid']) ?>" class="ml-2 text-decoration-none text-muted f13">
|
||||
<?php echo getProfileInfo($LIST['mbruid'],'nic') ?>
|
||||
</a>
|
||||
</h5>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="">
|
||||
<a href="<?php echo getListLink($LIST,1) ?>" class="btn btn-white btn-sm">더보기</a>
|
||||
</div>
|
||||
<?php else: ?>
|
||||
<div class="text-center text-danger">
|
||||
리스트 아이디를 확인해주세요.
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
</header>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="card-deck border-bottom">
|
||||
|
||||
<?php $i=0;foreach($RCD as $R):$i++;?>
|
||||
<div class="card<?php echo $wdgvar['cardmargin']=='true'?'':' card-full' ?>">
|
||||
<a class="position-relative"
|
||||
href="#modal-post-view"
|
||||
data-toggle="modal"
|
||||
data-url="<?php echo getPostLink($R,1) ?>"
|
||||
data-featured="<?php echo getPreviewResize(getUpImageSrc($R),'650x365') ?>"
|
||||
data-format="<?php echo $R['format']==2?'video':'doc' ?>"
|
||||
data-provider="<?php echo getFeaturedimgMeta($R,'provider'); ?>"
|
||||
data-videoid="<?php echo getFeaturedimgMeta($R,'name'); ?>"
|
||||
data-uid="<?php echo $R['uid'] ?>"
|
||||
data-title="<?php echo $R['subject'] ?>">
|
||||
|
||||
<img src="<?php echo getPreviewResize(getUpImageSrc($R),'650x365') ?>" class="card-img-top img-fluid" alt="...">
|
||||
<time class="badge badge-dark rounded-0 position-absolute" style="right:1px;bottom:1px"><?php echo getUpImageTime($R) ?></time>
|
||||
</a>
|
||||
<div class="card-block">
|
||||
<p class="card-text line-clamp-2 mb-2">
|
||||
<a class="text-reset text-decoration-none" href="<?php echo getPostLink($R,1) ?>">
|
||||
<?php echo getStrCut(stripslashes($R['subject']),100,'..') ?>
|
||||
</a>
|
||||
</p>
|
||||
<ul class="list-inline d-inline-block f13 text-muted mb-0">
|
||||
<li class="list-inline-item">조회수 <?php echo $R['hit']?>회</li>
|
||||
<li class="list-inline-item">
|
||||
•<time data-plugin="timeago" datetime="<?php echo getDateFormat($R['d_modify']?$R['d_modify']:$R['d_regis'],'c')?>"></time>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php endforeach?>
|
||||
|
||||
|
||||
<?php if(!db_num_rows($_RCD)):?>
|
||||
<div class="card text-xs-center text-muted p-5 small">
|
||||
자료가 없습니다.
|
||||
</div>
|
||||
<?php endif?>
|
||||
|
||||
</div><!-- /.card-deck -->
|
||||
|
||||
</section>
|
||||
<?php else: ?>
|
||||
<div class="p-5 mb-4 text-muted text-center border">리스트 아이디를 지정해주세요.</div>
|
||||
<?php endif; ?>
|
||||
1
widgets/rc-default/post/list/rec/view-card/name.txt
Normal file
@@ -0,0 +1 @@
|
||||
데스크탑 -최신 포스트
|
||||
1
widgets/rc-default/post/list/rec/view-card/readme.txt
Normal file
@@ -0,0 +1 @@
|
||||
지정한 리스트의 포스트를 출력합니다.
|
||||
BIN
widgets/rc-default/post/list/rec/view-card/thumb.png
Normal file
|
After Width: | Height: | Size: 176 KiB |
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
if(!defined('__KIMS__')) exit;
|
||||
|
||||
//***********************************************************************************
|
||||
// 여기에 이 위젯에서 사용할 변수들을 정의합니다.
|
||||
// 변수 작성법은 매뉴얼을 참고하세요.
|
||||
//***********************************************************************************
|
||||
|
||||
$d['widget']['dom'] = array(
|
||||
|
||||
'bs4-list-new-card' => array(
|
||||
'리스트 배너', //위젯명
|
||||
array(
|
||||
array('id','postlist','리스트 선택',''),
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
?>
|
||||
42
widgets/rc-default/post/list/view/@req-banner/main.php
Normal file
@@ -0,0 +1,42 @@
|
||||
<?php
|
||||
$LIST=getDbData($table['postlist'],"id='".$wdgvar['id']."'",'*');
|
||||
?>
|
||||
|
||||
<style>
|
||||
.ad_section {
|
||||
padding: 2rem 0;
|
||||
border-top: .0625rem solid #e4e6e7;
|
||||
border-bottom:.0625rem solid #e4e6e7;
|
||||
background-size: cover;
|
||||
position: relative;
|
||||
color: #fff;
|
||||
}
|
||||
.ad_section::before {
|
||||
position: absolute;
|
||||
content: ' ';
|
||||
left:0;
|
||||
right:0;
|
||||
top:0;
|
||||
bottom:0;
|
||||
background-color: rgba(0, 0, 0, 0.5);
|
||||
}
|
||||
</style>
|
||||
|
||||
<div class="ad_section border-top border-bottom bg-faded py-4" style="background-image: url(<?php echo getListImageSrc($LIST['uid']) ?>);">
|
||||
<div class="text-xs-center text-white">
|
||||
<div class="position-relative">
|
||||
|
||||
<p class="text-white"><?php echo $LIST['review'] ?></p>
|
||||
<a href="#page-post-listview"
|
||||
data-start="#page-main"
|
||||
data-toggle="page"
|
||||
data-title="<?php echo $LIST['name'] ?>"
|
||||
data-url="/list/<?php echo $wdgvar['id'] ?>"
|
||||
data-id="<?php echo $wdgvar['id'] ?>"
|
||||
class="btn btn-outline-secondary">
|
||||
자세히 보기
|
||||
</a>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
1
widgets/rc-default/post/list/view/@req-banner/readme.txt
Normal file
@@ -0,0 +1 @@
|
||||
신규등록된 리스트를 출력합니다.
|
||||
BIN
widgets/rc-default/post/list/view/@req-banner/thumb.png
Normal file
|
After Width: | Height: | Size: 48 KiB |
24
widgets/rc-default/post/list/view/@req-swipe/_var.config.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
if(!defined('__KIMS__')) exit;
|
||||
|
||||
//***********************************************************************************
|
||||
// 여기에 이 위젯에서 사용할 변수들을 정의합니다.
|
||||
// 변수 작성법은 매뉴얼을 참고하세요.
|
||||
//***********************************************************************************
|
||||
|
||||
$d['widget']['dom'] = array(
|
||||
|
||||
'bs4-list-new-card' => array(
|
||||
'최근 리스트', //위젯명
|
||||
array(
|
||||
array('title','input','타이틀','최근 리스트'),
|
||||
array('subtitle','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('line','select','한줄 항목수','1개=1,2개=2,3개=3,4개=4,5개=5','2'),
|
||||
array('link','input','링크연결',RW('m=post&mod=list'))
|
||||
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
?>
|
||||
49
widgets/rc-default/post/list/view/@req-swipe/main.php
Normal file
@@ -0,0 +1,49 @@
|
||||
<?php $lists = explode(',',$wdgvar['lists']);?>
|
||||
|
||||
<div class="mt-0 content-padded">
|
||||
<header>
|
||||
<h3><?php echo $wdgvar['title'] ?></h3>
|
||||
</header>
|
||||
<div class="swiper-container js-swiper-gallery">
|
||||
<div class="swiper-wrapper">
|
||||
<?php foreach($posts as $_s):?>
|
||||
<?php $_R = getDbData($table['postdata'],"cid='".$_s."'",'*'); ?>
|
||||
<?php if (!$_R['uid']) continue; ?>
|
||||
<div class="swiper-slide" style="width: 40%">
|
||||
<div class="card card-video border-0 text-left m-0"
|
||||
data-target="#page-post-view"
|
||||
data-toggle="page"
|
||||
data-start="<?php echo $wdgvar['start'] ?>"
|
||||
data-url="/post/<?php echo $_s ?>"
|
||||
data-featured="<?php echo getPreviewResize(getUpImageSrc($_R),'640x360') ?>"
|
||||
data-format="<?php echo $_R['format']==2?'video':'doc' ?>"
|
||||
data-provider="<?php echo getFeaturedimgMeta($_R,'provider'); ?>"
|
||||
data-videoid="<?php echo getFeaturedimgMeta($_R,'name'); ?>"
|
||||
data-uid="<?php echo $_R['uid'] ?>"
|
||||
data-title="<?php echo $_R['subject'] ?>">
|
||||
<div class="position-relative">
|
||||
<img src="<?php echo getPreviewResize(getUpImageSrc($_R),'250x300') ?>" alt="" class="img-fluid">
|
||||
<time class="badge badge-default bg-black rounded-0 position-absolute" style="right:1px;bottom:1px" data-role="time">
|
||||
<?php echo getUpImageTime($_R) ?>
|
||||
</time>
|
||||
</div>
|
||||
<p class="text-xs-center text-muted mt-1 line-clamp-2" style="font-size: 0.875rem">
|
||||
<?php echo $_R['subject'] ?>
|
||||
</p>
|
||||
</div>
|
||||
</div><!-- /.swiper-slide -->
|
||||
<?php endforeach; ?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div><!-- /.content-padded -->
|
||||
|
||||
|
||||
|
||||
|
||||
<script>
|
||||
var swiper_post_gallery = new Swiper('.js-swiper-gallery', {
|
||||
spaceBetween: 10,
|
||||
slidesPerView: 'auto'
|
||||
});
|
||||
</script>
|
||||
1
widgets/rc-default/post/list/view/@req-swipe/readme.txt
Normal file
@@ -0,0 +1 @@
|
||||
신규등록된 리스트를 출력합니다.
|
||||
BIN
widgets/rc-default/post/list/view/@req-swipe/thumb.png
Normal file
|
After Width: | Height: | Size: 48 KiB |
22
widgets/rc-default/post/list/view/@view-card/_var.config.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
if(!defined('__KIMS__')) exit;
|
||||
|
||||
//***********************************************************************************
|
||||
// 여기에 이 위젯에서 사용할 변수들을 정의합니다.
|
||||
// 변수 작성법은 매뉴얼을 참고하세요.
|
||||
//***********************************************************************************
|
||||
|
||||
$d['widget']['dom'] = array(
|
||||
|
||||
'bs4-list-view-card' => array(
|
||||
'특정 리스트', //위젯명
|
||||
array(
|
||||
array('listid','postlist','내 리스트',''),
|
||||
array('disTitle','select','타이틀 헤더 출력','출력=true,미출력=false','true'),
|
||||
array('cardmargin','select','카드 외곽여백','여백있음=true,여백없음=false','true'),
|
||||
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'),
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
?>
|
||||
90
widgets/rc-default/post/list/view/@view-card/main.php
Normal file
@@ -0,0 +1,90 @@
|
||||
<?php
|
||||
|
||||
$LIST=getDbData($table['postlist'],"id='".$wdgvar['listid']."'",'*');
|
||||
|
||||
$_postque = 'site='.$s.' and list="'.$LIST['uid'].'"';
|
||||
$_RCD=getDbArray($table['postlist_index'],$_postque,'*','gid','asc',$wdgvar['limit'],1);
|
||||
while($_R = db_fetch_array($_RCD)) $RCD[] = getDbData($table['postdata'],'uid='.$_R['data'],'*');
|
||||
?>
|
||||
|
||||
<?php if ($wdgvar['listid']): ?>
|
||||
<section class="widget mb-4">
|
||||
<?php if ($wdgvar['disTitle']=='true'): ?>
|
||||
<header class="d-flex justify-content-between align-items-center d-flex justify-content-between align-items-center mb-2 content-padded">
|
||||
|
||||
<?php if ($LIST['uid']): ?>
|
||||
<div class="">
|
||||
<div class="media align-items-center">
|
||||
<div class="media-body">
|
||||
<h5 class="my-0">
|
||||
<a href="" class="text-decoration-none text-reset" data-url="<?php echo getListLink($LIST,1) ?>">
|
||||
<?php echo $LIST['name'] ?>
|
||||
</a>
|
||||
<a href="<?php echo getProfileLink($LIST['mbruid']) ?>" class="ml-2 text-decoration-none text-muted f13">
|
||||
<?php echo getProfileInfo($LIST['mbruid'],'nic') ?>
|
||||
</a>
|
||||
</h5>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="">
|
||||
<a href="<?php echo getListLink($LIST,1) ?>" class="btn btn-white btn-sm">더보기</a>
|
||||
</div>
|
||||
<?php else: ?>
|
||||
<div class="text-center text-danger">
|
||||
리스트 아이디를 확인해주세요.
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
</header>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="card-deck border-bottom">
|
||||
|
||||
<?php $i=0;foreach($RCD as $R):$i++;?>
|
||||
<div class="card<?php echo $wdgvar['cardmargin']=='true'?'':' card-full' ?>">
|
||||
<a class="position-relative"
|
||||
href="#modal-post-view"
|
||||
data-toggle="modal"
|
||||
data-url="<?php echo getPostLink($R,1) ?>"
|
||||
data-featured="<?php echo getPreviewResize(getUpImageSrc($R),'650x365') ?>"
|
||||
data-format="<?php echo $R['format']==2?'video':'doc' ?>"
|
||||
data-provider="<?php echo getFeaturedimgMeta($R,'provider'); ?>"
|
||||
data-videoid="<?php echo getFeaturedimgMeta($R,'name'); ?>"
|
||||
data-uid="<?php echo $R['uid'] ?>"
|
||||
data-title="<?php echo $R['subject'] ?>">
|
||||
|
||||
<img src="<?php echo getPreviewResize(getUpImageSrc($R),'650x365') ?>" class="card-img-top img-fluid" alt="...">
|
||||
<time class="badge badge-dark rounded-0 position-absolute" style="right:1px;bottom:1px"><?php echo getUpImageTime($R) ?></time>
|
||||
</a>
|
||||
<div class="card-block">
|
||||
<p class="card-text line-clamp-2 mb-2">
|
||||
<a class="text-reset text-decoration-none" href="<?php echo getPostLink($R,1) ?>">
|
||||
<?php echo getStrCut(stripslashes($R['subject']),100,'..') ?>
|
||||
</a>
|
||||
</p>
|
||||
<ul class="list-inline d-inline-block f13 text-muted mb-0">
|
||||
<li class="list-inline-item">조회수 <?php echo $R['hit']?>회</li>
|
||||
<li class="list-inline-item">
|
||||
•<time data-plugin="timeago" datetime="<?php echo getDateFormat($R['d_modify']?$R['d_modify']:$R['d_regis'],'c')?>"></time>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php endforeach?>
|
||||
|
||||
|
||||
<?php if(!db_num_rows($_RCD)):?>
|
||||
<div class="card text-xs-center text-muted p-5 small">
|
||||
자료가 없습니다.
|
||||
</div>
|
||||
<?php endif?>
|
||||
|
||||
</div><!-- /.card-deck -->
|
||||
|
||||
</section>
|
||||
<?php else: ?>
|
||||
<div class="p-5 mb-4 text-muted text-center border">리스트 아이디를 지정해주세요.</div>
|
||||
<?php endif; ?>
|
||||
1
widgets/rc-default/post/list/view/@view-card/name.txt
Normal file
@@ -0,0 +1 @@
|
||||
데스크탑 -최신 포스트
|
||||
1
widgets/rc-default/post/list/view/@view-card/readme.txt
Normal file
@@ -0,0 +1 @@
|
||||
지정한 리스트의 포스트를 출력합니다.
|
||||
BIN
widgets/rc-default/post/list/view/@view-card/thumb.png
Normal file
|
After Width: | Height: | Size: 176 KiB |
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
if(!defined('__KIMS__')) exit;
|
||||
|
||||
$d['widget']['dom'] = array(
|
||||
|
||||
'new-gallery' => array(
|
||||
'리스트뷰 갤러리', //위젯명
|
||||
array(
|
||||
array('listid','postlist','내 리스트',''),
|
||||
array('title_badge','input','타이틀 라벨','이슈'),
|
||||
array('margin_top','select','상단여백','적용=true,미적용=false','true'),
|
||||
array('show_header','select','헤더출력','출력=show,숨김=hide','show'),
|
||||
array('vtype','select','보기타입','모달형=modal,페이지형=page','modal'),
|
||||
array('author','select','등록자 표시','표시함=true,표시안함=false','false'),
|
||||
array('duration','select','동영상 표시','재생시간 표시=show,재생버튼 표시=hide','hide'),
|
||||
array('limit','select','출력 항목수','2개=2,4개=4,6개=6,8개=8,10개=10,12개=12','4'),
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
?>
|
||||
72
widgets/rc-default/post/list/view/gallery-default/main.php
Normal file
@@ -0,0 +1,72 @@
|
||||
<?php
|
||||
$LIST=getDbData($table['postlist'],"id='".$wdgvar['listid']."'",'*');
|
||||
|
||||
$_postque = 'site='.$s.' and list="'.$LIST['uid'].'"';
|
||||
$_RCD=getDbArray($table['postlist_index'],$_postque,'*','gid','asc',$wdgvar['limit'],1);
|
||||
while($_R = db_fetch_array($_RCD)) $RCD[] = getDbData($table['postdata'],'uid='.$_R['data'],'*');
|
||||
?>
|
||||
|
||||
<section class="widget border-bottom<?php echo $wdgvar['margin_top']=='true'?'':' mt-0 border-top-0' ?>">
|
||||
|
||||
<?php if ($wdgvar['show_header']=='show'): ?>
|
||||
<header>
|
||||
<h3>
|
||||
<span class="badge badge-info badge-outline align-bottom mr-1"><?php echo $wdgvar['title_badge'] ?></span>
|
||||
<?php echo $LIST['name'] ?>
|
||||
</h3>
|
||||
<a href="#page-post-listview"
|
||||
data-toggle="page"
|
||||
data-start="#page-main"
|
||||
data-id="<?php echo $wdgvar['listid'] ?>"
|
||||
data-title="<?php echo $LIST['name'] ?>"
|
||||
data-url="<?php echo getListLink($LIST,0) ?>">
|
||||
더보기
|
||||
</a>
|
||||
</header>
|
||||
<?php endif; ?>
|
||||
|
||||
<main class="px-3 <?php echo $wdgvar['show_header']=='show'?' pt-1':' pt-3' ?>">
|
||||
<div class="row">
|
||||
<?php $i=0;foreach($RCD as $_R):$i++;?>
|
||||
<div class="col-xs-6 mb-3">
|
||||
<div class=""
|
||||
<?php if ($wdgvar['vtype']=='modal'): ?>
|
||||
data-toggle="modal"
|
||||
data-target="#modal-post-view"
|
||||
<?php else: ?>
|
||||
data-toggle="page"
|
||||
data-target="#page-post-view"
|
||||
data-start="#page-main"
|
||||
<?php endif; ?>
|
||||
data-url="/post/<?php echo $_R['cid'] ?>"
|
||||
data-featured="<?php echo getPreviewResize(getUpImageSrc($_R),'640x360') ?>"
|
||||
data-format="<?php echo $_R['format']==2?'video':'doc' ?>"
|
||||
data-provider="<?php echo getFeaturedimgMeta($_R,'provider'); ?>"
|
||||
data-videoid="<?php echo getFeaturedimgMeta($_R,'name'); ?>"
|
||||
data-uid="<?php echo $_R['uid'] ?>"
|
||||
data-title="<?php echo $_R['subject'] ?>">
|
||||
<div class="position-relative">
|
||||
<img src="<?php echo getPreviewResize(getUpImageSrc($_R),'350x196') ?>" class="img-fluid" alt="">
|
||||
<?php if ($_R['format']==2): ?>
|
||||
<?php if ($wdgvar['duration']=='show'): ?>
|
||||
<time class="badge badge-default bg-black rounded-0 position-absolute" style="right:1px;bottom:1px"><?php echo getUpImageTime($_R) ?></time>
|
||||
<?php else: ?>
|
||||
<i class="fa fa-play-circle-o fa-lg position-absolute" style="right:8px;bottom:8px;color: rgba(255, 255, 255, 0.9);"></i>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<div class="mt-2 px-1">
|
||||
<div class="line-clamp-2">
|
||||
<?php echo getStrCut(stripslashes($_R['subject']),100,'..') ?>
|
||||
</div>
|
||||
<?php if ($wdgvar['author']=='true'): ?>
|
||||
<span class="badge badge-primary badge-inverted"><?php echo getProfileInfo($_R['mbruid'],$_HS['nametype']) ?></span>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php endforeach?>
|
||||
</div><!-- /.row -->
|
||||
</main>
|
||||
|
||||
</section>
|
||||
@@ -0,0 +1 @@
|
||||
최신 포스트를 한열에 2개씩 갤러리 형식으로 출력합니다.
|
||||
BIN
widgets/rc-default/post/list/view/gallery-default/thumb.png
Normal file
|
After Width: | Height: | Size: 154 KiB |
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
if(!defined('__KIMS__')) exit;
|
||||
|
||||
$d['widget']['dom'] = array(
|
||||
|
||||
'view-list' => array(
|
||||
'리스트뷰 리스트 기본', //위젯명
|
||||
array(
|
||||
array('listid','postlist','내 리스트',''),
|
||||
array('title_badge','input','타이틀 라벨','이슈'),
|
||||
array('show_header','select','헤더출력','출력=show,숨김=hide','show'),
|
||||
array('margin_top','select','상단여백','적용=true,미적용=false','true'),
|
||||
array('vtype','select','보기타입','모달형=modal,페이지형=page','modal'),
|
||||
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'),
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
?>
|
||||
63
widgets/rc-default/post/list/view/list-default/main.php
Normal file
@@ -0,0 +1,63 @@
|
||||
<?php
|
||||
$LIST=getDbData($table['postlist'],"id='".$wdgvar['listid']."'",'*');
|
||||
|
||||
$_postque = 'site='.$s.' and list="'.$LIST['uid'].'"';
|
||||
$_RCD=getDbArray($table['postlist_index'],$_postque,'*','gid','asc',$wdgvar['limit'],1);
|
||||
while($_R = db_fetch_array($_RCD)) $RCD[] = getDbData($table['postdata'],'uid='.$_R['data'],'*');
|
||||
?>
|
||||
|
||||
<?php if ($wdgvar['listid']): ?>
|
||||
<section class="widget bg-white<?php echo $wdgvar['margin_top']=='true'?'':' mt-0 border-top-0' ?>">
|
||||
|
||||
<?php if ($wdgvar['show_header']=='show'): ?>
|
||||
<header>
|
||||
<h3>
|
||||
<span class="badge badge-info badge-outline align-bottom mr-1"><?php echo $wdgvar['title_badge'] ?></span>
|
||||
<?php echo $LIST['name'] ?>
|
||||
</h3>
|
||||
<a href="#page-post-listview"
|
||||
data-toggle="page"
|
||||
data-start="#page-main"
|
||||
data-id="<?php echo $wdgvar['listid'] ?>"
|
||||
data-title="<?php echo $LIST['name'] ?>"
|
||||
data-url="<?php echo getListLink($LIST,0) ?>">
|
||||
더보기
|
||||
</a>
|
||||
</header>
|
||||
<?php endif; ?>
|
||||
|
||||
<ul class="table-view table-view-full<?php echo $wdgvar['show_header']=='hide' && $wdgvar['margin_top']=='false'?' border-top-0':'' ?>">
|
||||
|
||||
<?php foreach($RCD as $_R):?>
|
||||
<li class="table-view-cell">
|
||||
<a data-uid="<?php echo $_R['uid'] ?>"
|
||||
<?php if ($wdgvar['vtype']=='modal'): ?>
|
||||
data-toggle="modal"
|
||||
href="#modal-post-view"
|
||||
<?php else: ?>
|
||||
data-toggle="page"
|
||||
href="#page-post-view"
|
||||
data-start="#page-main"
|
||||
<?php endif; ?>
|
||||
data-url="/post/<?php echo $_R['cid'] ?>"
|
||||
data-featured="<?php echo getPreviewResize(getUpImageSrc($_R),'640x360') ?>"
|
||||
data-format="<?php echo $_R['format']==2?'video':'doc' ?>"
|
||||
data-provider="<?php echo getFeaturedimgMeta($_R,'provider'); ?>"
|
||||
data-videoid="<?php echo getFeaturedimgMeta($_R,'name'); ?>"
|
||||
data-title="<?php echo $_R['subject'] ?>">
|
||||
<span class="line-clamp-1">
|
||||
<?php if(getNew($_R['d_regis'],24)):?>
|
||||
<small class="rb-new mr-1" aria-hidden="true"></small>
|
||||
<?php endif?>
|
||||
<?php echo getStrCut(stripslashes($_R['subject']),100,'..') ?>
|
||||
</span>
|
||||
</a>
|
||||
</li>
|
||||
<?php endforeach?>
|
||||
<?php if(!db_num_rows($_RCD)):?>
|
||||
<li class="table-view-cell text-muted">게시물이 없습니다.</li>
|
||||
<?php endif?>
|
||||
</ul>
|
||||
<?php endif; ?>
|
||||
|
||||
</section>
|
||||
@@ -0,0 +1 @@
|
||||
신규등록된 리스트를 출력합니다.
|
||||
BIN
widgets/rc-default/post/list/view/list-default/thumb.png
Normal file
|
After Width: | Height: | Size: 29 KiB |
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
if(!defined('__KIMS__')) exit;
|
||||
|
||||
$d['widget']['dom'] = array(
|
||||
|
||||
'view-list' => array(
|
||||
'리스트뷰 리스트 강조', //위젯명
|
||||
array(
|
||||
array('listid','postlist','내 리스트',''),
|
||||
array('title_badge','input','타이틀 라벨','이슈'),
|
||||
array('show_header','select','헤더출력','출력=show,숨김=hide','show'),
|
||||
array('margin_top','select','상단여백','적용=true,미적용=false','true'),
|
||||
array('vtype','select','보기타입','모달형=modal,페이지형=page','modal'),
|
||||
array('highlight','select','강조 항목수','1개=1,2개=2,3개=3,4개=4,5개=5','1'),
|
||||
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'),
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
?>
|
||||
114
widgets/rc-default/post/list/view/list-highlight/main.php
Normal file
@@ -0,0 +1,114 @@
|
||||
<?php
|
||||
$LIST=getDbData($table['postlist'],"id='".$wdgvar['listid']."'",'*');
|
||||
|
||||
$_postque = 'site='.$s.' and list="'.$LIST['uid'].'"';
|
||||
$_RCD=getDbArray($table['postlist_index'],$_postque,'*','gid','asc',$wdgvar['limit'],1);
|
||||
while($_R = db_fetch_array($_RCD)) $RCD[] = getDbData($table['postdata'],'uid='.$_R['data'],'*');
|
||||
?>
|
||||
|
||||
<?php if ($wdgvar['listid']): ?>
|
||||
<section class="widget bg-white<?php echo $wdgvar['margin_top']=='true'?'':' mt-0 border-top-0' ?>">
|
||||
|
||||
<?php if ($wdgvar['show_header']=='show'): ?>
|
||||
<header>
|
||||
<h3>
|
||||
<span class="badge badge-info badge-outline align-bottom mr-1"><?php echo $wdgvar['title_badge'] ?></span>
|
||||
<?php echo $LIST['name'] ?>
|
||||
</h3>
|
||||
<a href="#page-post-listview"
|
||||
data-toggle="page"
|
||||
data-start="#page-main"
|
||||
data-id="<?php echo $wdgvar['listid'] ?>"
|
||||
data-title="<?php echo $LIST['name'] ?>"
|
||||
data-url="<?php echo getListLink($LIST,0) ?>">
|
||||
더보기
|
||||
</a>
|
||||
</header>
|
||||
<?php endif; ?>
|
||||
|
||||
<ul class="table-view table-view-full<?php echo $wdgvar['show_header']=='hide' && $wdgvar['margin_top']=='false'?' border-top-0':'' ?>">
|
||||
|
||||
<?php $i=0;foreach($RCD as $_R):$i++;?>
|
||||
<?php if ($i<=$wdgvar['highlight']): ?>
|
||||
<li class="table-view-cell">
|
||||
<a data-uid="<?php echo $_R['uid'] ?>"
|
||||
<?php if ($wdgvar['vtype']=='modal'): ?>
|
||||
data-toggle="modal"
|
||||
href="#modal-post-view"
|
||||
<?php else: ?>
|
||||
data-toggle="page"
|
||||
href="#page-post-view"
|
||||
data-start="#page-main"
|
||||
<?php endif; ?>
|
||||
data-url="/post/<?php echo $_R['cid'] ?>"
|
||||
data-featured="<?php echo getPreviewResize(getUpImageSrc($_R),'640x360') ?>"
|
||||
data-format="<?php echo $_R['format']==2?'video':'doc' ?>"
|
||||
data-provider="<?php echo getFeaturedimgMeta($_R,'provider'); ?>"
|
||||
data-videoid="<?php echo getFeaturedimgMeta($_R,'name'); ?>"
|
||||
data-title="<?php echo $_R['subject'] ?>">
|
||||
|
||||
<?php if (getUpImageSrc($_R)): ?>
|
||||
<div class="position-relative pull-left mr-2">
|
||||
<img class="media-object border"
|
||||
src="<?php echo getPreviewResize(getUpImageSrc($_R),'231x130') ?>" style="width:5.9375rem">
|
||||
<?php if ($_R['format']==2): ?>
|
||||
<?php if ($wdgvar['duration']=='show'): ?>
|
||||
<time class="badge badge-default bg-black rounded-0 position-absolute" style="right:1px;bottom:1px"><?php echo getUpImageTime($_R) ?></time>
|
||||
<?php else: ?>
|
||||
<i class="fa fa-play-circle-o fa-lg position-absolute" style="right:8px;bottom:8px;color: rgba(255, 255, 255, 0.9);"></i>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="media-body">
|
||||
<span class="line-clamp-2">
|
||||
<?php echo getStrCut(stripslashes($_R['subject']),100,'..') ?>
|
||||
</span>
|
||||
<div class="d-flex justify-content-between mt-1">
|
||||
<time <?php echo $wdgvar['timeago']=='true'?'data-plugin="timeago"':'' ?> datetime="<?php echo getDateFormat($_R['d_regis'],'c')?>" class="badge badge-default badge-inverted">
|
||||
<?php echo getDateFormat($_R['d_regis'],'Y.m.d H:i')?>
|
||||
</time>
|
||||
<?php if($_R['comment']):?>
|
||||
<span class="badge badge-default badge-inverted">
|
||||
<i class="fa fa-comment-o mr-1" aria-hidden="true"></i>
|
||||
<?php echo $_R['comment']?><?php echo $_R['oneline']?'+'.$_R['oneline']:''?>
|
||||
</span>
|
||||
<?php endif?>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
<?php else: ?>
|
||||
<li class="table-view-cell">
|
||||
<a data-uid="<?php echo $_R['uid'] ?>"
|
||||
<?php if ($wdgvar['vtype']=='modal'): ?>
|
||||
data-toggle="modal"
|
||||
href="#modal-post-view"
|
||||
<?php else: ?>
|
||||
data-toggle="page"
|
||||
href="#page-post-view"
|
||||
data-start="#page-main"
|
||||
<?php endif; ?>
|
||||
data-url="/post/<?php echo $_R['cid'] ?>"
|
||||
data-featured="<?php echo getPreviewResize(getUpImageSrc($_R),'640x360') ?>"
|
||||
data-format="<?php echo $_R['format']==2?'video':'doc' ?>"
|
||||
data-provider="<?php echo getFeaturedimgMeta($_R,'provider'); ?>"
|
||||
data-videoid="<?php echo getFeaturedimgMeta($_R,'name'); ?>"
|
||||
data-title="<?php echo $_R['subject'] ?>">
|
||||
<span class="line-clamp-1">
|
||||
<?php echo getStrCut(stripslashes($_R['subject']),100,'..') ?>
|
||||
</span>
|
||||
</a>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
|
||||
|
||||
<?php endforeach?>
|
||||
<?php if(!db_num_rows($_RCD)):?>
|
||||
<li class="table-view-cell text-muted">게시물이 없습니다.</li>
|
||||
<?php endif?>
|
||||
</ul>
|
||||
<?php endif; ?>
|
||||
|
||||
</section>
|
||||
@@ -0,0 +1 @@
|
||||
신규등록된 리스트를 출력합니다.
|
||||
BIN
widgets/rc-default/post/list/view/list-highlight/thumb.png
Normal file
|
After Width: | Height: | Size: 45 KiB |
14
widgets/rc-default/post/post/all/feed-card/_var.config.php
Normal file
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
if(!defined('__KIMS__')) exit;
|
||||
|
||||
$d['widget']['dom'] = array(
|
||||
|
||||
'feed-card' => array(
|
||||
'최근 포스트 피드', //위젯명
|
||||
array(
|
||||
array('title','hidden','타이틀','최근 포스트 피드'),
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
?>
|
||||
23
widgets/rc-default/post/post/all/feed-card/main.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<section class="widget" data-role="postFeed">
|
||||
<div data-role="list"></div>
|
||||
|
||||
<div data-role="none" hidden></div>
|
||||
</section>
|
||||
|
||||
<script>
|
||||
|
||||
$( document ).ready(function() {
|
||||
|
||||
getPostAll({
|
||||
wrapper : $('<?php echo $wdgvar['wrapper'] ?> [data-role="list"]'),
|
||||
start : '<?php echo $wdgvar['start'] ?>',
|
||||
markup : 'post-row', // 테마 > _html > post-row-***.html
|
||||
recnum : <?php echo $wdgvar['recnum'] ?>,
|
||||
sort : 'gid',
|
||||
none : $('<?php echo $wdgvar['wrapper'] ?>').find('[data-role="none"]').html(),
|
||||
paging : 'infinit'
|
||||
})
|
||||
|
||||
});
|
||||
|
||||
</script>
|
||||
1
widgets/rc-default/post/post/all/feed-card/readme.txt
Normal file
@@ -0,0 +1 @@
|
||||
최신 포스트를 카드형 피드형태로 보여줍니다.
|
||||
BIN
widgets/rc-default/post/post/all/feed-card/thumb.png
Normal file
|
After Width: | Height: | Size: 348 KiB |
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
if(!defined('__KIMS__')) exit;
|
||||
|
||||
$d['widget']['dom'] = array(
|
||||
|
||||
'gallery-default' => array(
|
||||
'최근 포스트 갤러리형', //위젯명
|
||||
array(
|
||||
array('title','input','타이틀','최근 포스트'),
|
||||
array('margin_top','select','상단여백','적용=true,미적용=false','true'),
|
||||
array('show_header','select','헤더출력','출력=show,숨김=hide','show'),
|
||||
array('vtype','select','보기타입','모달형=modal,페이지형=page','modal'),
|
||||
array('author','select','등록자 표시','표시함=true,표시안함=false','false'),
|
||||
array('duration','select','동영상 표시','재생시간 표시=show,재생버튼 표시=hide','hide'),
|
||||
array('limit','select','출력 항목수','2개=2,4개=4,6개=6,8개=8,10개=10,12개=12','4'),
|
||||
array('link','input','링크연결','/post')
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
?>
|
||||
68
widgets/rc-default/post/post/all/gallery-default/main.php
Normal file
@@ -0,0 +1,68 @@
|
||||
<?php
|
||||
$_postque = 'site='.$s.' and display=5';
|
||||
if ($my['uid']) $_postque .= ' or display=4';
|
||||
|
||||
$_RCD=getDbArray($table['postindex'],$_postque,'*','gid','asc',$wdgvar['limit'],1);
|
||||
while($_R = db_fetch_array($_RCD)) $RCD[] = getDbData($table['postdata'],'gid='.$_R['gid'],'*');
|
||||
?>
|
||||
|
||||
<section class="widget border-bottom<?php echo $wdgvar['margin_top']=='true'?'':' mt-0 border-top-0' ?>">
|
||||
|
||||
<?php if ($wdgvar['show_header']=='show'): ?>
|
||||
<header>
|
||||
<h3><?php echo $wdgvar['title'] ?></h3>
|
||||
<a href="#page-post-allpost"
|
||||
data-toggle="page"
|
||||
data-start="#page-main"
|
||||
data-title="<?php echo $wdgvar['title'] ?>"
|
||||
data-url="<?php echo $wdgvar['link'] ?>">
|
||||
더보기
|
||||
</a>
|
||||
</header>
|
||||
<?php endif; ?>
|
||||
|
||||
<main class="px-3 <?php echo $wdgvar['show_header']=='show'?' pt-1':' pt-3' ?>">
|
||||
<div class="row">
|
||||
<?php $i=0;foreach($RCD as $_R):$i++;?>
|
||||
<div class="col-xs-6 mb-3">
|
||||
<div class=""
|
||||
<?php if ($wdgvar['vtype']=='modal'): ?>
|
||||
data-toggle="modal"
|
||||
data-target="#modal-post-view"
|
||||
<?php else: ?>
|
||||
data-toggle="page"
|
||||
data-target="#page-post-view"
|
||||
data-start="#page-main"
|
||||
<?php endif; ?>
|
||||
data-url="/post/<?php echo $_R['cid'] ?>"
|
||||
data-featured="<?php echo getPreviewResize(getUpImageSrc($_R),'640x360') ?>"
|
||||
data-format="<?php echo $_R['format']==2?'video':'doc' ?>"
|
||||
data-provider="<?php echo getFeaturedimgMeta($_R,'provider'); ?>"
|
||||
data-videoid="<?php echo getFeaturedimgMeta($_R,'name'); ?>"
|
||||
data-uid="<?php echo $_R['uid'] ?>"
|
||||
data-title="<?php echo $_R['subject'] ?>">
|
||||
<div class="position-relative">
|
||||
<img src="<?php echo getPreviewResize(getUpImageSrc($_R),'350x196') ?>" class="img-fluid" alt="">
|
||||
<?php if ($_R['format']==2): ?>
|
||||
<?php if ($wdgvar['duration']=='show'): ?>
|
||||
<time class="badge badge-default bg-black rounded-0 position-absolute" style="right:1px;bottom:1px"><?php echo getUpImageTime($_R) ?></time>
|
||||
<?php else: ?>
|
||||
<i class="fa fa-play-circle-o fa-lg position-absolute" style="right:8px;bottom:8px;color: rgba(255, 255, 255, 0.9);"></i>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<div class="mt-2 px-1">
|
||||
<div class="line-clamp-2">
|
||||
<?php echo getStrCut(stripslashes($_R['subject']),100,'..') ?>
|
||||
</div>
|
||||
<?php if ($wdgvar['author']=='true'): ?>
|
||||
<span class="badge badge-primary badge-inverted"><?php echo getProfileInfo($_R['mbruid'],$_HS['nametype']) ?></span>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php endforeach?>
|
||||
</div><!-- /.row -->
|
||||
</main>
|
||||
|
||||
</section>
|
||||
@@ -0,0 +1 @@
|
||||
최신 포스트를 한열에 2개씩 갤러리 형식으로 출력합니다.
|
||||
BIN
widgets/rc-default/post/post/all/gallery-default/thumb.png
Normal file
|
After Width: | Height: | Size: 77 KiB |
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
if(!defined('__KIMS__')) exit;
|
||||
|
||||
$d['widget']['dom'] = array(
|
||||
|
||||
'gallery-grid' => array(
|
||||
'최근 포스트 갤러리형', //위젯명
|
||||
array(
|
||||
array('title','input','타이틀','최근 포스트'),
|
||||
array('margin_top','select','상단여백','적용=true,미적용=false','true'),
|
||||
array('show_header','select','헤더출력','출력=show,숨김=hide','show'),
|
||||
array('vtype','select','보기타입','모달형=modal,페이지형=page','modal'),
|
||||
array('author','select','등록자 표시','표시함=true,표시안함=false','false'),
|
||||
array('duration','select','동영상 표시','재생시간 표시=show,재생버튼 표시=hide','hide'),
|
||||
array('limit','select','총 출력 항목수','3개=3,6개=6,9개=9,12개=12,15개=15,18개=18','9'),
|
||||
array('link','input','링크연결','/post')
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
?>
|
||||
64
widgets/rc-default/post/post/all/gallery-grid/main.php
Normal file
@@ -0,0 +1,64 @@
|
||||
<?php
|
||||
$_postque = 'site='.$s.' and display=5';
|
||||
if ($my['uid']) $_postque .= ' or display=4';
|
||||
|
||||
$_RCD=getDbArray($table['postindex'],$_postque,'*','gid','asc',$wdgvar['limit'],1);
|
||||
while($_R = db_fetch_array($_RCD)) $RCD[] = getDbData($table['postdata'],'gid='.$_R['gid'],'*');
|
||||
?>
|
||||
|
||||
<section class="widget border-bottom<?php echo $wdgvar['margin_top']=='true'?'':' mt-0 border-top-0' ?> rb-photogrid">
|
||||
|
||||
<?php if ($wdgvar['show_header']=='show'): ?>
|
||||
<header>
|
||||
<h3><?php echo $wdgvar['title'] ?></h3>
|
||||
<a href="#page-post-allpost"
|
||||
data-toggle="page"
|
||||
data-start="#page-main"
|
||||
data-title="<?php echo $wdgvar['title'] ?>"
|
||||
data-url="<?php echo $wdgvar['link'] ?>">
|
||||
더보기
|
||||
</a>
|
||||
</header>
|
||||
<?php endif; ?>
|
||||
|
||||
<main class="content-padded <?php echo $wdgvar['show_header']=='show'?' pt-0':' pt-3' ?>">
|
||||
<div class="row gutter-half">
|
||||
<?php $i=0;foreach($RCD as $_R):$i++;?>
|
||||
<div class="col-xs-4">
|
||||
<a class=""
|
||||
<?php if ($wdgvar['vtype']=='modal'): ?>
|
||||
data-toggle="modal"
|
||||
href="#modal-post-view"
|
||||
<?php else: ?>
|
||||
data-toggle="page"
|
||||
href="#page-post-view"
|
||||
data-start="#page-main"
|
||||
<?php endif; ?>
|
||||
data-url="/post/<?php echo $_R['cid'] ?>"
|
||||
data-featured="<?php echo getPreviewResize(getUpImageSrc($_R),'640x360') ?>"
|
||||
data-format="<?php echo $_R['format']==2?'video':'doc' ?>"
|
||||
data-provider="<?php echo getFeaturedimgMeta($_R,'provider'); ?>"
|
||||
data-videoid="<?php echo getFeaturedimgMeta($_R,'name'); ?>"
|
||||
data-uid="<?php echo $_R['uid'] ?>"
|
||||
data-title="<?php echo $_R['subject'] ?>">
|
||||
<span class="rank-icon active"></span>
|
||||
<?php if ($wdgvar['author']=='true'): ?>
|
||||
<small class="nic-name"><?php echo getProfileInfo($_R['mbruid'],$_HS['nametype']) ?></small>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($_R['format']==2): ?>
|
||||
<?php if ($wdgvar['duration']=='show'): ?>
|
||||
<time class="badge badge-default bg-black rounded-0 position-absolute" style="right:1px;bottom:1px"><?php echo getUpImageTime($_R) ?></time>
|
||||
<?php else: ?>
|
||||
<i class="fa fa-play-circle-o position-absolute" style="right:8px;bottom:5px;color: rgba(255, 255, 255, 0.8);"></i>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<img src="<?php echo getPreviewResize(getUpImageSrc($_R),'350x350') ?>" class="img-fluid" alt="">
|
||||
</a>
|
||||
</div>
|
||||
<?php endforeach?>
|
||||
</div><!-- /.row -->
|
||||
</main>
|
||||
|
||||
</section>
|
||||
1
widgets/rc-default/post/post/all/gallery-grid/readme.txt
Normal file
@@ -0,0 +1 @@
|
||||
최신 포스트의 대표 이미지를 그리드 형식으로 출력합니다.
|
||||
BIN
widgets/rc-default/post/post/all/gallery-grid/thumb.png
Normal file
|
After Width: | Height: | Size: 241 KiB |
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
if(!defined('__KIMS__')) exit;
|
||||
|
||||
$d['widget']['dom'] = array(
|
||||
|
||||
'gallery-gridSwipe' => array(
|
||||
'최근 포스트 그리드 스와이프', //위젯명
|
||||
array(
|
||||
array('title','input','타이틀','최근 포스트'),
|
||||
array('margin_top','select','상단여백','적용=true,미적용=false','true'),
|
||||
array('show_header','select','헤더출력','출력=show,숨김=hide','show'),
|
||||
array('vtype','select','보기타입','모달형=modal,페이지형=page','modal'),
|
||||
array('author','select','등록자 표시','표시함=true,표시안함=false','false'),
|
||||
array('duration','select','동영상 표시','재생시간 표시=show,재생버튼 표시=hide','hide'),
|
||||
array('limit','select','총 출력 항목수','6개=6,12개=12,18개=18','12'),
|
||||
array('swipe','select','스와이프 사용','사용함=true,사용안함=false','false'),
|
||||
array('link','input','링크연결','/post')
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
?>
|
||||
14
widgets/rc-default/post/post/all/gallery-gridSwipe/main.css
Normal file
@@ -0,0 +1,14 @@
|
||||
.widget .js-swipe-grid .swiper-button-prev:after ,
|
||||
.widget .js-swipe-grid .swiper-button-next:after {
|
||||
font-size: 16px
|
||||
}
|
||||
.swiper-pagination-fraction {
|
||||
color: #818a91;
|
||||
font-size: 15px
|
||||
}
|
||||
.widget .swiper-pagination-fraction .swiper-pagination-total {
|
||||
color: #373a3c
|
||||
}
|
||||
.widget .swiper-pagination-fraction .swiper-pagination-current {
|
||||
color: #0275d8;
|
||||
}
|
||||
101
widgets/rc-default/post/post/all/gallery-gridSwipe/main.php
Normal file
@@ -0,0 +1,101 @@
|
||||
<?php
|
||||
$numPerSlide = 6; // 한 슬라이드에 출력할 카드 갯수
|
||||
$_postque = 'site='.$s.' and display=5';
|
||||
if ($my['uid']) $_postque .= ' or display=4';
|
||||
|
||||
$_RCD=getDbArray($table['postindex'],$_postque,'*','gid','asc',$wdgvar['limit'],1);
|
||||
while($_R = db_fetch_array($_RCD)) $RCD[] = getDbData($table['postdata'],'gid='.$_R['gid'],'*');
|
||||
?>
|
||||
|
||||
<section class="widget border-bottom<?php echo $wdgvar['margin_top']=='true'?'':' mt-0 border-top-0' ?> rb-photogrid">
|
||||
|
||||
<?php if ($wdgvar['show_header']=='show'): ?>
|
||||
<header>
|
||||
<h3><?php echo $wdgvar['title'] ?></h3>
|
||||
<a href="#page-post-allpost"
|
||||
data-toggle="page"
|
||||
data-start="#page-main"
|
||||
data-title="<?php echo $wdgvar['title'] ?>"
|
||||
data-url="<?php echo $wdgvar['link'] ?>">
|
||||
더보기
|
||||
</a>
|
||||
</header>
|
||||
<?php endif; ?>
|
||||
|
||||
<main class="content-padded js-swipe-grid pb-4 <?php echo $wdgvar['show_header']=='show'?'mt-0 pt-0':' pt-3' ?>">
|
||||
|
||||
<div class="swiper-container<?php echo $wdgvar['swipe']=='true'?'':' swiper-no-swiping' ?>">
|
||||
<div class="swiper-wrapper" style="padding-bottom: 0.625rem;">
|
||||
|
||||
<div class="swiper-slide">
|
||||
<div class="row gutter-half">
|
||||
<?php $i=0;foreach($RCD as $_R):$i++;?>
|
||||
<div class="col-xs-4 mb-3">
|
||||
<a class="img-rounded mask_light"
|
||||
<?php if ($wdgvar['vtype']=='modal'): ?>
|
||||
data-toggle="modal"
|
||||
href="#modal-post-view"
|
||||
<?php else: ?>
|
||||
data-toggle="page"
|
||||
href="#page-post-view"
|
||||
data-start="#page-main"
|
||||
<?php endif; ?>
|
||||
data-url="/post/<?php echo $_R['cid'] ?>"
|
||||
data-featured="<?php echo getPreviewResize(getUpImageSrc($_R),'640x360') ?>"
|
||||
data-format="<?php echo $_R['format']==2?'video':'doc' ?>"
|
||||
data-provider="<?php echo getFeaturedimgMeta($_R,'provider'); ?>"
|
||||
data-videoid="<?php echo getFeaturedimgMeta($_R,'name'); ?>"
|
||||
data-uid="<?php echo $_R['uid'] ?>"
|
||||
data-title="<?php echo $_R['subject'] ?>">
|
||||
<span class="rank-icon active"></span>
|
||||
<?php if ($wdgvar['author']=='true'): ?>
|
||||
<small class="nic-name"><?php echo getProfileInfo($_R['mbruid'],$_HS['nametype']) ?></small>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($_R['format']==2): ?>
|
||||
<?php if ($wdgvar['duration']=='show'): ?>
|
||||
<time class="badge badge-default bg-black rounded-0 position-absolute" style="right:1px;bottom:1px"><?php echo getUpImageTime($_R) ?></time>
|
||||
<?php else: ?>
|
||||
<i class="fa fa-play-circle-o position-absolute" style="right:8px;bottom:5px;color: rgba(255, 255, 255, 0.8);"></i>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<img src="<?php echo getPreviewResize(getUpImageSrc($_R),'350x430') ?>" class="img-fluid img-rounded" alt="">
|
||||
</a>
|
||||
<div class="mt-1 px-1">
|
||||
<div class="line-clamp-2 f15">
|
||||
<?php echo getStrCut(stripslashes($_R['subject']),100,'..') ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php if( !($i%$numPerSlide) && ($wdgvar['limit'] > $i) ):?></div></div><div class="swiper-slide"><div class="row gutter-half"><?php endif?>
|
||||
<?php endforeach?>
|
||||
</div><!-- /.row -->
|
||||
</div><!-- /.swiper-slide -->
|
||||
|
||||
</div><!-- /.swiper-wrapper -->
|
||||
</div><!-- /.swiper-container -->
|
||||
|
||||
<div class="position-relative">
|
||||
<div class="swiper-pagination" style="bottom:-0.9375rem"></div>
|
||||
<div class="swiper-button-next"></div>
|
||||
<div class="swiper-button-prev"></div>
|
||||
</div>
|
||||
|
||||
</main>
|
||||
|
||||
</section>
|
||||
|
||||
<script>
|
||||
var swiper = new Swiper('.widget .js-swipe-grid .swiper-container', {
|
||||
spaceBetween: 30,
|
||||
pagination: {
|
||||
el: '.widget .js-swipe-grid .swiper-pagination',
|
||||
type: 'fraction',
|
||||
},
|
||||
navigation: {
|
||||
nextEl: '.widget .js-swipe-grid .swiper-button-next',
|
||||
prevEl: '.widget .js-swipe-grid .swiper-button-prev',
|
||||
},
|
||||
});
|
||||
</script>
|
||||
@@ -0,0 +1 @@
|
||||
최신 포스트의 대표 이미지를 그리드 형식으로 출력합니다.
|
||||
BIN
widgets/rc-default/post/post/all/gallery-gridSwipe/thumb.png
Normal file
|
After Width: | Height: | Size: 214 KiB |
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
if(!defined('__KIMS__')) exit;
|
||||
|
||||
$d['widget']['dom'] = array(
|
||||
|
||||
'list-default' => array(
|
||||
'최근 포스트 리스트 기본형', //위젯명
|
||||
array(
|
||||
array('title','input','타이틀','최근 포스트'),
|
||||
array('show_header','select','헤더출력','출력=show,숨김=hide','show'),
|
||||
array('vtype','select','보기타입','모달형=modal,페이지형=page','modal'),
|
||||
array('limit','select','출력수','3개=3,4개=4,5개=5,6개=6,7개=7,8개=8,9개=9,10개=10,11개=11,12개=12','4'),
|
||||
array('newtime','select','새글표시','1시간=1,3시간=3,6시간=6,12시간=12,24시간=24','6'),
|
||||
array('link','input','링크연결','/post')
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
?>
|
||||
56
widgets/rc-default/post/post/all/list-default/main.php
Normal file
@@ -0,0 +1,56 @@
|
||||
<?php
|
||||
$_postque = 'site='.$s.' and display=5';
|
||||
if ($my['uid']) $_postque .= ' or display=4';
|
||||
$_RCD=getDbArray($table['postindex'],$_postque,'*','gid','asc',$wdgvar['limit'],1);
|
||||
while($_R = db_fetch_array($_RCD)) $RCD[] = getDbData($table['postdata'],'gid='.$_R['gid'],'*');
|
||||
?>
|
||||
|
||||
<section class="widget bg-white">
|
||||
|
||||
<?php if ($wdgvar['show_header']=='show'): ?>
|
||||
<header>
|
||||
<h3><?php echo $wdgvar['title'] ?></h3>
|
||||
<a href="#page-post-allpost"
|
||||
data-toggle="page"
|
||||
data-start="#page-main"
|
||||
data-title="<?php echo $wdgvar['title'] ?>"
|
||||
data-url="<?php echo $wdgvar['link'] ?>">
|
||||
더보기
|
||||
</a>
|
||||
</header>
|
||||
<?php endif; ?>
|
||||
|
||||
<ul class="table-view table-view-full">
|
||||
|
||||
<?php foreach($RCD as $_R):?>
|
||||
<li class="table-view-cell">
|
||||
<a data-uid="<?php echo $_R['uid'] ?>"
|
||||
<?php if ($wdgvar['vtype']=='modal'): ?>
|
||||
data-toggle="modal"
|
||||
href="#modal-post-view"
|
||||
<?php else: ?>
|
||||
data-toggle="page"
|
||||
href="#page-post-view"
|
||||
data-start="#page-main"
|
||||
<?php endif; ?>
|
||||
data-url="/post/<?php echo $_R['cid'] ?>"
|
||||
data-featured="<?php echo getPreviewResize(getUpImageSrc($_R),'640x360') ?>"
|
||||
data-format="<?php echo $_R['format']==2?'video':'doc' ?>"
|
||||
data-provider="<?php echo getFeaturedimgMeta($_R,'provider'); ?>"
|
||||
data-videoid="<?php echo getFeaturedimgMeta($_R,'name'); ?>"
|
||||
data-title="<?php echo $_R['subject'] ?>">
|
||||
<span class="line-clamp-1">
|
||||
<?php if(getNew($_R['d_regis'],$wdgvar['newtime'])):?>
|
||||
<small class="rb-new mr-1" aria-hidden="true"></small>
|
||||
<?php endif?>
|
||||
<?php echo getStrCut(stripslashes($_R['subject']),100,'..') ?>
|
||||
</span>
|
||||
</a>
|
||||
</li>
|
||||
<?php endforeach?>
|
||||
<?php if(!db_num_rows($_RCD)):?>
|
||||
<li class="table-view-cell text-muted">게시물이 없습니다.</li>
|
||||
<?php endif?>
|
||||
</ul>
|
||||
|
||||
</section>
|
||||
1
widgets/rc-default/post/post/all/list-default/readme.txt
Normal file
@@ -0,0 +1 @@
|
||||
최근 포스트를 목록형식으로 출력합니다.
|
||||
BIN
widgets/rc-default/post/post/all/list-default/thumb.png
Normal file
|
After Width: | Height: | Size: 26 KiB |
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
if(!defined('__KIMS__')) exit;
|
||||
|
||||
$d['widget']['dom'] = array(
|
||||
|
||||
'list-highlight' => array(
|
||||
'최근 포스트 리스트 강조형', //위젯명
|
||||
array(
|
||||
array('title','input','타이틀','최근 포스트'),
|
||||
array('show_header','select','헤더출력','출력=show,숨김=hide','show'),
|
||||
array('vtype','select','보기타입','모달형=modal,페이지형=page','modal'),
|
||||
array('highlight','select','강조 항목수','1개=1,2개=2,3개=3,4개=4,5개=5','1'),
|
||||
array('limit','select','출력수','3개=3,4개=4,5개=5,6개=6,7개=7,8개=8,9개=9,10개=10,11개=11,12개=12','4'),
|
||||
array('newtime','select','새글표시','1시간=1,3시간=3,6시간=6,12시간=12,24시간=24','6'),
|
||||
array('link','input','링크연결','/post')
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
?>
|
||||
108
widgets/rc-default/post/post/all/list-highlight/main.php
Normal file
@@ -0,0 +1,108 @@
|
||||
<?php
|
||||
$_postque = 'site='.$s.' and display=5';
|
||||
if ($my['uid']) $_postque .= ' or display=4';
|
||||
$_RCD=getDbArray($table['postindex'],$_postque,'*','gid','asc',$wdgvar['limit'],1);
|
||||
while($_R = db_fetch_array($_RCD)) $RCD[] = getDbData($table['postdata'],'gid='.$_R['gid'],'*');
|
||||
?>
|
||||
|
||||
<section class="widget bg-white">
|
||||
|
||||
<?php if ($wdgvar['show_header']=='show'): ?>
|
||||
<header>
|
||||
<h3><?php echo $wdgvar['title'] ?></h3>
|
||||
<a href="#page-post-allpost"
|
||||
data-toggle="page"
|
||||
data-start="#page-main"
|
||||
data-title="<?php echo $wdgvar['title'] ?>"
|
||||
data-url="<?php echo $wdgvar['link'] ?>">
|
||||
더보기
|
||||
</a>
|
||||
</header>
|
||||
<?php endif; ?>
|
||||
<ul class="table-view table-view-full">
|
||||
|
||||
<?php $i=0;foreach($RCD as $_R):$i++;?>
|
||||
<?php if ($i<=$wdgvar['highlight']): ?>
|
||||
<li class="table-view-cell">
|
||||
<a data-uid="<?php echo $_R['uid'] ?>"
|
||||
<?php if ($wdgvar['vtype']=='modal'): ?>
|
||||
data-toggle="modal"
|
||||
href="#modal-post-view"
|
||||
<?php else: ?>
|
||||
data-toggle="page"
|
||||
href="#page-post-view"
|
||||
data-start="#page-main"
|
||||
<?php endif; ?>
|
||||
data-url="/post/<?php echo $_R['cid'] ?>"
|
||||
data-featured="<?php echo getPreviewResize(getUpImageSrc($_R),'640x360') ?>"
|
||||
data-format="<?php echo $_R['format']==2?'video':'doc' ?>"
|
||||
data-provider="<?php echo getFeaturedimgMeta($_R,'provider'); ?>"
|
||||
data-videoid="<?php echo getFeaturedimgMeta($_R,'name'); ?>"
|
||||
data-title="<?php echo $_R['subject'] ?>">
|
||||
|
||||
<?php if (getUpImageSrc($_R)): ?>
|
||||
<div class="position-relative pull-left mr-2">
|
||||
<img class="media-object border"
|
||||
src="<?php echo getPreviewResize(getUpImageSrc($_R),'231x130') ?>" style="width:5.9375rem">
|
||||
<?php if ($_R['format']==2): ?>
|
||||
<?php if ($wdgvar['duration']=='show'): ?>
|
||||
<time class="badge badge-default bg-black rounded-0 position-absolute" style="right:1px;bottom:1px"><?php echo getUpImageTime($_R) ?></time>
|
||||
<?php else: ?>
|
||||
<i class="fa fa-play-circle-o fa-lg position-absolute" style="right:8px;bottom:8px;color: rgba(255, 255, 255, 0.9);"></i>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="media-body">
|
||||
<span class="line-clamp-2">
|
||||
<?php echo getStrCut(stripslashes($_R['subject']),100,'..') ?>
|
||||
</span>
|
||||
<div class="d-flex justify-content-between mt-1">
|
||||
<time <?php echo $wdgvar['timeago']=='true'?'data-plugin="timeago"':'' ?> datetime="<?php echo getDateFormat($_R['d_regis'],'c')?>" class="badge badge-default badge-inverted">
|
||||
<?php echo getDateFormat($_R['d_regis'],'Y.m.d H:i')?>
|
||||
</time>
|
||||
<?php if($_R['comment']):?>
|
||||
<span class="badge badge-default badge-inverted">
|
||||
<i class="fa fa-comment-o mr-1" aria-hidden="true"></i>
|
||||
<?php echo $_R['comment']?><?php echo $_R['oneline']?'+'.$_R['oneline']:''?>
|
||||
</span>
|
||||
<?php endif?>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
<?php else: ?>
|
||||
<li class="table-view-cell">
|
||||
<a data-uid="<?php echo $_R['uid'] ?>"
|
||||
<?php if ($wdgvar['vtype']=='modal'): ?>
|
||||
data-toggle="modal"
|
||||
href="#modal-post-view"
|
||||
<?php else: ?>
|
||||
data-toggle="page"
|
||||
href="#page-post-view"
|
||||
data-start="#page-main"
|
||||
<?php endif; ?>
|
||||
data-url="/post/<?php echo $_R['cid'] ?>"
|
||||
data-featured="<?php echo getPreviewResize(getUpImageSrc($_R),'640x360') ?>"
|
||||
data-format="<?php echo $_R['format']==2?'video':'doc' ?>"
|
||||
data-provider="<?php echo getFeaturedimgMeta($_R,'provider'); ?>"
|
||||
data-videoid="<?php echo getFeaturedimgMeta($_R,'name'); ?>"
|
||||
data-title="<?php echo $_R['subject'] ?>">
|
||||
<span class="line-clamp-1">
|
||||
<?php if(getNew($_R['d_regis'],$wdgvar['newtime'])):?>
|
||||
<small class="rb-new mr-1" aria-hidden="true"></small>
|
||||
<?php endif?>
|
||||
<?php echo getStrCut(stripslashes($_R['subject']),100,'..') ?>
|
||||
</span>
|
||||
</a>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php endforeach?>
|
||||
<?php if(!db_num_rows($_RCD)):?>
|
||||
<li class="table-view-cell text-muted">게시물이 없습니다.</li>
|
||||
<?php endif?>
|
||||
</ul>
|
||||
|
||||
</section>
|
||||
@@ -0,0 +1 @@
|
||||
최근 포스트를 목록형식으로 출력하며, 지정된 갯수 만큼 강조형식으로 보여줍니다.
|
||||
BIN
widgets/rc-default/post/post/all/list-highlight/thumb.png
Normal file
|
After Width: | Height: | Size: 42 KiB |
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
if(!defined('__KIMS__')) exit;
|
||||
|
||||
$d['widget']['dom'] = array(
|
||||
|
||||
'medialist-default' => array(
|
||||
'최근 포스트 미디어 리스트형', //위젯명
|
||||
array(
|
||||
array('title','input','타이틀','최근 포스트'),
|
||||
array('margin_top','select','상단여백','적용=true,미적용=false','true'),
|
||||
array('show_header','select','헤더출력','출력=show,숨김=hide','show'),
|
||||
array('vtype','select','보기타입','모달형=modal,페이지형=page','modal'),
|
||||
array('thumb','select','섬네일 종류','대표 이미지=thumb,프로필 이미지=avatar','thumb'),
|
||||
array('media_align','select','섬네일 정렬','좌측=left,우측=right','left'),
|
||||
array('timeago','select','등록일시 표시','상대시간 표기=true,날짜/시간 표기=false','false'),
|
||||
array('duration','select','동영상 표시','재생시간 표시=show,재생버튼 표시=hide','hide'),
|
||||
array('limit','select','출력수','3개=3,4개=4,5개=5,6개=6,7개=7,8개=8,9개=9,10개=10,11개=11,12개=12','4'),
|
||||
array('link','input','링크연결',RW('m=post&mod=list'))
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
?>
|
||||
88
widgets/rc-default/post/post/all/medialist-default/main.php
Normal file
@@ -0,0 +1,88 @@
|
||||
<?php
|
||||
$_postque = 'site='.$s.' and display=5';
|
||||
if ($my['uid']) $_postque .= ' or display=4';
|
||||
$_RCD=getDbArray($table['postindex'],$_postque,'*','gid','asc',$wdgvar['limit'],1);
|
||||
while($_R = db_fetch_array($_RCD)) $RCD[] = getDbData($table['postdata'],'gid='.$_R['gid'],'*');
|
||||
?>
|
||||
|
||||
<section class="widget bg-white<?php echo $wdgvar['margin_top']=='true'?'':' mt-0 border-top-0' ?>">
|
||||
|
||||
<?php if ($wdgvar['show_header']=='show'): ?>
|
||||
<header>
|
||||
<h3><?php echo $wdgvar['title'] ?></h3>
|
||||
<a href="#page-post-allpost"
|
||||
data-toggle="page"
|
||||
data-start="#page-main"
|
||||
data-title="<?php echo $wdgvar['title'] ?>"
|
||||
data-url="<?php echo $wdgvar['link'] ?>">
|
||||
더보기
|
||||
</a>
|
||||
</header>
|
||||
<?php endif; ?>
|
||||
|
||||
<ul class="table-view table-view-full<?php echo $wdgvar['margin_top']=='true'?'':' border-top-0' ?>">
|
||||
|
||||
<?php foreach($RCD as $_R):?>
|
||||
<li class="table-view-cell">
|
||||
<a data-uid="<?php echo $_R['uid'] ?>"
|
||||
<?php if ($wdgvar['vtype']=='modal'): ?>
|
||||
data-toggle="modal"
|
||||
href="#modal-post-view"
|
||||
<?php else: ?>
|
||||
data-toggle="page"
|
||||
href="#page-post-view"
|
||||
data-start="#page-main"
|
||||
<?php endif; ?>
|
||||
data-url="/post/<?php echo $_R['cid'] ?>"
|
||||
data-featured="<?php echo getPreviewResize(getUpImageSrc($_R),'640x360') ?>"
|
||||
data-format="<?php echo $_R['format']==2?'video':'doc' ?>"
|
||||
data-provider="<?php echo getFeaturedimgMeta($_R,'provider'); ?>"
|
||||
data-videoid="<?php echo getFeaturedimgMeta($_R,'name'); ?>"
|
||||
data-title="<?php echo $_R['subject'] ?>">
|
||||
|
||||
<?php if ($wdgvar['thumb']=='avatar'): ?>
|
||||
<div class="position-relative pull-<?php echo $wdgvar['media_align']=='left'?'left mr-2':'right ml-2' ?>">
|
||||
<img class="media-object img-circle"
|
||||
src="<?php echo getAvatarSrc($_R['mbruid'],'110') ?>" style="width:3.4375rem">
|
||||
</div>
|
||||
<?php else: ?>
|
||||
<?php if (getUpImageSrc($_R)): ?>
|
||||
<div class="position-relative pull-<?php echo $wdgvar['media_align']=='left'?'left mr-2':'right ml-2' ?>">
|
||||
<img class="media-object border"
|
||||
src="<?php echo getPreviewResize(getUpImageSrc($_R),'231x130') ?>" style="width:5.9375rem">
|
||||
<?php if ($_R['format']==2): ?>
|
||||
<?php if ($wdgvar['duration']=='show'): ?>
|
||||
<time class="badge badge-default bg-black rounded-0 position-absolute" style="right:1px;bottom:1px"><?php echo getUpImageTime($_R) ?></time>
|
||||
<?php else: ?>
|
||||
<i class="fa fa-play-circle-o fa-lg position-absolute" style="right:8px;bottom:8px;color: rgba(255, 255, 255, 0.9);"></i>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="media-body">
|
||||
<span class="line-clamp-2">
|
||||
<?php echo getStrCut(stripslashes($_R['subject']),100,'..') ?>
|
||||
</span>
|
||||
<div class="d-flex justify-content-between mt-1">
|
||||
<time <?php echo $wdgvar['timeago']=='true'?'data-plugin="timeago"':'' ?> datetime="<?php echo getDateFormat($_R['d_regis'],'c')?>" class="badge badge-default badge-inverted">
|
||||
<?php echo getDateFormat($_R['d_regis'],'Y.m.d H:i')?>
|
||||
</time>
|
||||
<?php if($_R['comment']):?>
|
||||
<span class="badge badge-default badge-inverted">
|
||||
<i class="fa fa-comment-o mr-1" aria-hidden="true"></i>
|
||||
<?php echo $_R['comment']?><?php echo $_R['oneline']?'+'.$_R['oneline']:''?>
|
||||
</span>
|
||||
<?php endif?>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
<?php endforeach?>
|
||||
<?php if(!db_num_rows($_RCD)):?>
|
||||
<li class="table-view-cell text-muted">게시물이 없습니다.</li>
|
||||
<?php endif?>
|
||||
</ul>
|
||||
|
||||
</section>
|
||||
@@ -0,0 +1 @@
|
||||
최근 포스트를 미디어 목록형식으로 출력합니다.
|
||||
BIN
widgets/rc-default/post/post/all/medialist-default/thumb.png
Normal file
|
After Width: | Height: | Size: 85 KiB |
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
if(!defined('__KIMS__')) exit;
|
||||
|
||||
$d['widget']['dom'] = array(
|
||||
|
||||
'swipe-default' => array(
|
||||
'최근 포스트 스와이프 기본형',
|
||||
array(
|
||||
array('title','input','타이틀','최근 포스트'),
|
||||
array('margin_top','select','상단여백','적용=true,미적용=false','true'),
|
||||
array('show_header','select','헤더출력','출력=show,숨김=hide','show'),
|
||||
array('vtype','select','보기타입','모달형=modal,페이지형=page','modal'),
|
||||
array('author','select','등록자 표시','표시함=true,표시안함=false','false'),
|
||||
array('duration','select','동영상 표시','재생시간 표시=show,재생버튼 표시=hide','show'),
|
||||
array('limit','select','출력 항목수','1개=1,2개=2,3개=3,4개=4,5개=5,6개=6,7개=7,8개=8,9개=9,10개=10','5'),
|
||||
array('link','input','링크연결','/post')
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
?>
|
||||
83
widgets/rc-default/post/post/all/swipe-default/main.php
Normal file
@@ -0,0 +1,83 @@
|
||||
<?php
|
||||
$_postque = 'site='.$s.' and display=5';
|
||||
if ($my['uid']) $_postque .= ' or display=4';
|
||||
|
||||
$_RCD=getDbArray($table['postindex'],$_postque,'*','gid','asc',$wdgvar['limit'],1);
|
||||
while($_R = db_fetch_array($_RCD)) $RCD[] = getDbData($table['postdata'],'gid='.$_R['gid'],'*');
|
||||
?>
|
||||
|
||||
<section class="widget border-bottom<?php echo $wdgvar['margin_top']=='true'?'':' mt-0 border-top-0' ?>">
|
||||
|
||||
<?php if ($wdgvar['show_header']=='show'): ?>
|
||||
<header>
|
||||
<h3><?php echo $wdgvar['title'] ?></h3>
|
||||
<a href="#page-post-allpost"
|
||||
data-toggle="page"
|
||||
data-start="#page-main"
|
||||
data-title="<?php echo $wdgvar['title'] ?>"
|
||||
data-url="<?php echo $wdgvar['link'] ?>">
|
||||
더보기
|
||||
</a>
|
||||
</header>
|
||||
<?php endif; ?>
|
||||
|
||||
<main class="position-relative px-3 <?php echo $wdgvar['show_header']=='show'?' pt-1':' pt-3' ?>">
|
||||
|
||||
<div class="swiper-container js-swipe-default" style="height: 280px">
|
||||
<div class="swiper-wrapper">
|
||||
<?php $i=0;foreach($RCD as $_R):$i++;?>
|
||||
<div class="swiper-slide">
|
||||
<div class=""
|
||||
<?php if ($wdgvar['vtype']=='modal'): ?>
|
||||
data-toggle="modal"
|
||||
data-target="#modal-post-view"
|
||||
<?php else: ?>
|
||||
data-toggle="page"
|
||||
data-target="#page-post-view"
|
||||
data-start="#page-main"
|
||||
<?php endif; ?>
|
||||
data-url="/post/<?php echo $_R['cid'] ?>"
|
||||
data-featured="<?php echo getPreviewResize(getUpImageSrc($_R),'640x360') ?>"
|
||||
data-format="<?php echo $_R['format']==2?'video':'doc' ?>"
|
||||
data-provider="<?php echo getFeaturedimgMeta($_R,'provider'); ?>"
|
||||
data-videoid="<?php echo getFeaturedimgMeta($_R,'name'); ?>"
|
||||
data-uid="<?php echo $_R['uid'] ?>"
|
||||
data-title="<?php echo $_R['subject'] ?>">
|
||||
<div class="position-relative">
|
||||
<img src="<?php echo getPreviewResize(getUpImageSrc($_R),'640x360') ?>" class="img-fluid border" alt="">
|
||||
<?php if ($_R['format']==2): ?>
|
||||
<?php if ($wdgvar['duration']=='show'): ?>
|
||||
<time class="badge badge-default bg-black rounded-0 position-absolute" style="right:1px;bottom:1px"><?php echo getUpImageTime($_R) ?></time>
|
||||
<?php else: ?>
|
||||
<i class="fa fa-play-circle-o fa-lg position-absolute" style="right:15px;bottom:15px;color: rgba(255, 255, 255, 0.9);"></i>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<div class="mt-2 px-1">
|
||||
<div class="line-clamp-1 mb-1">
|
||||
<?php echo getStrCut(stripslashes($_R['subject']),100,'..') ?>
|
||||
</div>
|
||||
<?php if ($wdgvar['author']=='true'): ?>
|
||||
<span class="badge badge-default badge-inverted"><?php echo getProfileInfo($_R['mbruid'],$_HS['nametype']) ?></span>
|
||||
<?php endif; ?>
|
||||
<span class="badge badge-default badge-inverted"><?php echo getDateFormat($_R['d_regis'],'Y.m.d H:i')?></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php endforeach?>
|
||||
</div><!-- /.swiper-wrapper -->
|
||||
<div class="swiper-pagination" style="bottom:18px"></div>
|
||||
</div><!-- /.swiper-container -->
|
||||
|
||||
</main>
|
||||
|
||||
</section>
|
||||
|
||||
<script>
|
||||
var swiper = new Swiper('.widget .js-swipe-default', {
|
||||
spaceBetween: 30,
|
||||
pagination: {
|
||||
el: '.widget .js-swipe-default .swiper-pagination',
|
||||
},
|
||||
});
|
||||
</script>
|
||||
@@ -0,0 +1 @@
|
||||
최신 포스트를 스와이프 방식으로 출력합니다.
|
||||
BIN
widgets/rc-default/post/post/all/swipe-default/thumb.png
Normal file
|
After Width: | Height: | Size: 128 KiB |
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
if(!defined('__KIMS__')) exit;
|
||||
|
||||
$d['widget']['dom'] = array(
|
||||
|
||||
'swipe-jumbotron' => array(
|
||||
'최근 포스트 스와이프 점보트론', //위젯명
|
||||
array(
|
||||
array('title','hidden','타이틀','최근 포스트 스와이프 점보트론'),
|
||||
array('vtype','select','보기타입','모달형=modal,페이지형=page','modal'),
|
||||
array('autoplay','select','자동실행','사용함=true,사용안함=false','false'),
|
||||
array('mask','select','이미지 마스크','사용함=show,사용안함=hide','hide'),
|
||||
array('subject','select','제목출력','출력함=show,출력안함=hide','hide'),
|
||||
array('effect','select','이펙트','슬라이드=slide,페이드=fade','slide'),
|
||||
array('limit','select','출력 항목수','2개=2,4개=4,6개=6,8개=8,10개=10,12개=12','4'),
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
?>
|
||||
75
widgets/rc-default/post/post/all/swipe-jumbotron/main.php
Normal file
@@ -0,0 +1,75 @@
|
||||
<?php
|
||||
$_postque = 'site='.$s.' and display=5';
|
||||
if ($my['uid']) $_postque .= ' or display=4';
|
||||
|
||||
$_RCD=getDbArray($table['postindex'],$_postque,'*','gid','asc',$wdgvar['limit'],1);
|
||||
while($_R = db_fetch_array($_RCD)) $RCD[] = getDbData($table['postdata'],'gid='.$_R['gid'],'*');
|
||||
?>
|
||||
|
||||
<section class="widget rb-jumbotron border-bottom <?php echo $wdgvar['margin_top']=='true'?'':' mt-0 border-top-0' ?>">
|
||||
|
||||
<div class="swiper-container js-swipe-jumbotron">
|
||||
<div class="swiper-wrapper">
|
||||
<?php $i=0;foreach($RCD as $_R):$i++;?>
|
||||
<div class="swiper-slide">
|
||||
<div class=""
|
||||
<?php if ($wdgvar['vtype']=='modal'): ?>
|
||||
data-toggle="modal"
|
||||
data-target="#modal-post-view"
|
||||
<?php else: ?>
|
||||
data-toggle="page"
|
||||
data-target="#page-post-view"
|
||||
data-start="#page-main"
|
||||
<?php endif; ?>
|
||||
data-url="/post/<?php echo $_R['cid'] ?>"
|
||||
data-featured="<?php echo getPreviewResize(getUpImageSrc($_R),'640x360') ?>"
|
||||
data-format="<?php echo $_R['format']==2?'video':'doc' ?>"
|
||||
data-provider="<?php echo getFeaturedimgMeta($_R,'provider'); ?>"
|
||||
data-videoid="<?php echo getFeaturedimgMeta($_R,'name'); ?>"
|
||||
data-uid="<?php echo $_R['uid'] ?>"
|
||||
data-title="<?php echo $_R['subject'] ?>">
|
||||
<div class="<?php echo $wdgvar['mask']=='show'?'rb-photomask':'' ?>">
|
||||
<img src="<?php echo getPreviewResize(getUpImageSrc($_R),'640x360') ?>" class="img-fluid" alt="">
|
||||
<?php if ($wdgvar['subject']=='show'): ?>
|
||||
<div class="position-absolute text-white w-75 pl-3" style="left:1px;bottom:15px">
|
||||
<div class="line-clamp-1 mb-1">
|
||||
<?php echo getStrCut(stripslashes($_R['subject']),100,'..') ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<?php endforeach?>
|
||||
</div><!-- /.swiper-wrapper -->
|
||||
<div class="swiper-pagination small badge badge-pill"></div>
|
||||
</div><!-- /.swiper-container -->
|
||||
|
||||
</section>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<script>
|
||||
var swiper = new Swiper('.widget .js-swipe-jumbotron', {
|
||||
centeredSlides: true,
|
||||
|
||||
<?php if ($wdgvar['effect']=='fade'): ?>
|
||||
effect: 'fade',
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($wdgvar['autoplay']=='true'): ?>
|
||||
autoplay: {
|
||||
delay: 2500,
|
||||
disableOnInteraction: false,
|
||||
},
|
||||
<?php endif; ?>
|
||||
|
||||
pagination: {
|
||||
el: '.widget .js-swipe-jumbotron .swiper-pagination',
|
||||
type: 'fraction'
|
||||
},
|
||||
});
|
||||
</script>
|
||||
@@ -0,0 +1 @@
|
||||
최신 포스트를 스와이프 방식으로 출력합니다.
|
||||
BIN
widgets/rc-default/post/post/all/swipe-jumbotron/thumb.png
Normal file
|
After Width: | Height: | Size: 129 KiB |
22
widgets/rc-default/post/post/all/swipe-multi/_var.config.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
if(!defined('__KIMS__')) exit;
|
||||
|
||||
$d['widget']['dom'] = array(
|
||||
|
||||
'swipe-multi' => array(
|
||||
'최근 포스트 스와이프 멀티형', //위젯명
|
||||
array(
|
||||
array('title','input','타이틀','최근 포스트'),
|
||||
array('margin_top','select','상단여백','적용=true,미적용=false','true'),
|
||||
array('show_header','select','헤더출력','출력=show,숨김=hide','show'),
|
||||
array('vtype','select','보기타입','모달형=modal,페이지형=page','modal'),
|
||||
array('author','select','등록자 표시','표시함=true,표시안함=false','false'),
|
||||
array('duration','select','동영상 표시','재생시간 표시=show,재생버튼 표시=hide','hide'),
|
||||
array('perview','select','한화면 표시 아이템수','1개반=80%,2개반=40%','40%'),
|
||||
array('limit','select','출력 항목수','2개=2,3개=3,4개=4,5개=5,6개=6,7개=7,8개=8,9개=9,10개=10','5'),
|
||||
array('link','input','링크연결','/post')
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
?>
|
||||
80
widgets/rc-default/post/post/all/swipe-multi/main.php
Normal file
@@ -0,0 +1,80 @@
|
||||
<?php
|
||||
$_postque = 'site='.$s.' and display=5';
|
||||
if ($my['uid']) $_postque .= ' or display=4';
|
||||
|
||||
$_RCD=getDbArray($table['postindex'],$_postque,'*','gid','asc',$wdgvar['limit'],1);
|
||||
while($_R = db_fetch_array($_RCD)) $RCD[] = getDbData($table['postdata'],'gid='.$_R['gid'],'*');
|
||||
?>
|
||||
|
||||
<section class="widget swipe-default border-bottom<?php echo $wdgvar['margin_top']=='true'?'':' mt-0 border-top-0' ?>">
|
||||
|
||||
<?php if ($wdgvar['show_header']=='show'): ?>
|
||||
<header>
|
||||
<h3><?php echo $wdgvar['title'] ?></h3>
|
||||
<a href="#page-post-allpost"
|
||||
data-toggle="page"
|
||||
data-start="#page-main"
|
||||
data-title="<?php echo $wdgvar['title'] ?>"
|
||||
data-url="<?php echo $wdgvar['link'] ?>">
|
||||
더보기
|
||||
</a>
|
||||
</header>
|
||||
<?php endif; ?>
|
||||
|
||||
<main class="position-relative pl-3 pb-3 <?php echo $wdgvar['show_header']=='show'?' pt-0':' pt-3' ?>">
|
||||
|
||||
<div class="swiper-container">
|
||||
<div class="swiper-wrapper">
|
||||
<?php $i=0;foreach($RCD as $_R):$i++;?>
|
||||
<div class="swiper-slide" style="width: <?php echo $wdgvar['perview'] ?>">
|
||||
<div class=""
|
||||
<?php if ($wdgvar['vtype']=='modal'): ?>
|
||||
data-toggle="modal"
|
||||
data-target="#modal-post-view"
|
||||
<?php else: ?>
|
||||
data-toggle="page"
|
||||
data-target="#page-post-view"
|
||||
data-start="#page-main"
|
||||
<?php endif; ?>
|
||||
data-url="/post/<?php echo $_R['cid'] ?>"
|
||||
data-featured="<?php echo getPreviewResize(getUpImageSrc($_R),'640x360') ?>"
|
||||
data-format="<?php echo $_R['format']==2?'video':'doc' ?>"
|
||||
data-provider="<?php echo getFeaturedimgMeta($_R,'provider'); ?>"
|
||||
data-videoid="<?php echo getFeaturedimgMeta($_R,'name'); ?>"
|
||||
data-uid="<?php echo $_R['uid'] ?>"
|
||||
data-title="<?php echo $_R['subject'] ?>">
|
||||
<div class="position-relative">
|
||||
<img src="<?php echo getPreviewResize(getUpImageSrc($_R),'500x280') ?>" class="img-fluid border" alt="">
|
||||
<?php if ($_R['format']==2): ?>
|
||||
<?php if ($wdgvar['duration']=='show'): ?>
|
||||
<time class="badge badge-default bg-black rounded-0 position-absolute" style="right:1px;bottom:1px"><?php echo getUpImageTime($_R) ?></time>
|
||||
<?php else: ?>
|
||||
<i class="fa fa-play-circle-o fa-lg position-absolute" style="right:6px;bottom:6px;color: rgba(255, 255, 255, 0.9);"></i>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<div class="mt-2 px-1">
|
||||
<div class="line-clamp-1 mb-1">
|
||||
<?php echo getStrCut(stripslashes($_R['subject']),100,'..') ?>
|
||||
</div>
|
||||
<?php if ($wdgvar['author']=='true'): ?>
|
||||
<span class="badge badge-default badge-inverted"><?php echo getProfileInfo($_R['mbruid'],$_HS['nametype']) ?></span>
|
||||
<?php endif; ?>
|
||||
<span class="badge badge-default badge-inverted"><?php echo getDateFormat($_R['d_regis'],'Y.m.d H:i')?></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php endforeach?>
|
||||
</div><!-- /.swiper-wrapper -->
|
||||
</div><!-- /.swiper-container -->
|
||||
|
||||
</main>
|
||||
|
||||
</section>
|
||||
|
||||
<script>
|
||||
var swiper = new Swiper('.widget.swipe-default .swiper-container', {
|
||||
spaceBetween: 10,
|
||||
slidesPerView: 'auto'
|
||||
});
|
||||
</script>
|
||||
1
widgets/rc-default/post/post/all/swipe-multi/readme.txt
Normal file
@@ -0,0 +1 @@
|
||||
최신 포스트를 스와이프 방식으로 출력합니다.
|
||||
BIN
widgets/rc-default/post/post/all/swipe-multi/thumb.png
Normal file
|
After Width: | Height: | Size: 66 KiB |
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
if(!defined('__KIMS__')) exit;
|
||||
|
||||
$d['widget']['dom'] = array(
|
||||
|
||||
'gallery-default' => array(
|
||||
'기간별 인기 포스트 갤러리형', //위젯명
|
||||
array(
|
||||
array('title','input','타이틀','인기 포스트'),
|
||||
array('subtitle','input','보조 타이틀',''),
|
||||
array('sort','select','정렬기준','조회순=hit,좋아요순=likes,댓글순=comment','hit'),
|
||||
array('term','select','출력기간','최근 1주=-1 week,최근 2주=-2 week,최근 3주=-3 week,최근 1달=-4 week'),
|
||||
array('margin_top','select','상단여백','적용=true,미적용=false','true'),
|
||||
array('show_header','select','헤더출력','출력=show,숨김=hide','show'),
|
||||
array('vtype','select','보기타입','모달형=modal,페이지형=page','modal'),
|
||||
array('author','select','등록자 표시','표시함=true,표시안함=false','false'),
|
||||
array('duration','select','동영상 표시','재생시간 표시=show,재생버튼 표시=hide','hide'),
|
||||
array('ranking','select','강조 랭킹표시','강조안함=false,전체강조=1000,1개=1,2개=2,3개=3,4개=4,5개=5,10개=10','3'),
|
||||
array('limit','select','출력 항목수','2개=2,4개=4,6개=6,8개=8,10개=10,12개=12','4'),
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
?>
|
||||
74
widgets/rc-default/post/post/best/gallery-default/main.php
Normal file
@@ -0,0 +1,74 @@
|
||||
<?php
|
||||
$query = 'site='.$s;
|
||||
if ($my['uid']) $query .= ' and display>3';
|
||||
else $query .= ' and display=5';
|
||||
|
||||
$_WHERE1= $query.' and date >= '.date("Ymd", strtotime($wdgvar['term'])).' and '.$wdgvar['sort'].'>0';
|
||||
|
||||
if ($wdgvar['sort']=='hit') $_WHERE2= 'data,sum(hit) as hit';
|
||||
if ($wdgvar['sort']=='likes') $_WHERE2= 'data,sum(likes) as likes';
|
||||
if ($wdgvar['sort']=='comment') $_WHERE2= 'data,sum(comment) as comment';
|
||||
|
||||
$orderby = 'desc';
|
||||
$active_ranking = (int)$wdgvar['ranking']+1;
|
||||
|
||||
$_RCD = getDbSelect($table['postday'],$_WHERE1.' group by data order by '.$wdgvar['sort'].' '.$orderby.' limit 0,'.$wdgvar['limit'],$_WHERE2);
|
||||
|
||||
while($R = db_fetch_array($_RCD)) $RCD[] = getDbData($table['postdata'],'uid='.$R['data'],'*');
|
||||
?>
|
||||
|
||||
<section class="widget border-bottom<?php echo $wdgvar['margin_top']=='true'?'':' mt-0 border-top-0' ?>">
|
||||
|
||||
<?php if ($wdgvar['show_header']=='show'): ?>
|
||||
<header>
|
||||
<h3><?php echo $wdgvar['title'] ?></h3>
|
||||
<small class="ml-2 text-muted f13"><?php echo $wdgvar['subtitle']?></small>
|
||||
</header>
|
||||
<?php endif; ?>
|
||||
|
||||
<main class="px-3 <?php echo $wdgvar['show_header']=='show'?' pt-1':' pt-3' ?>">
|
||||
<div class="row">
|
||||
<?php $i=0;foreach($RCD as $_R):$i++;?>
|
||||
<div class="col-xs-6 mb-3">
|
||||
<div class=""
|
||||
<?php if ($wdgvar['vtype']=='modal'): ?>
|
||||
data-toggle="modal"
|
||||
data-target="#modal-post-view"
|
||||
<?php else: ?>
|
||||
data-toggle="page"
|
||||
data-target="#page-post-view"
|
||||
data-start="#page-main"
|
||||
<?php endif; ?>
|
||||
data-url="/post/<?php echo $_R['cid'] ?>"
|
||||
data-featured="<?php echo getPreviewResize(getUpImageSrc($_R),'640x360') ?>"
|
||||
data-format="<?php echo $_R['format']==2?'video':'doc' ?>"
|
||||
data-provider="<?php echo getFeaturedimgMeta($_R,'provider'); ?>"
|
||||
data-videoid="<?php echo getFeaturedimgMeta($_R,'name'); ?>"
|
||||
data-uid="<?php echo $_R['uid'] ?>"
|
||||
data-title="<?php echo $_R['subject'] ?>">
|
||||
<div class="position-relative">
|
||||
<span class="rank-icon <?php echo $wdgvar['ranking']!='false' && $i<$active_ranking?' active':'' ?>"><span><?php echo $i ?></span></span>
|
||||
<img src="<?php echo getPreviewResize(getUpImageSrc($_R),'350x196') ?>" class="img-fluid" alt="">
|
||||
<?php if ($_R['format']==2): ?>
|
||||
<?php if ($wdgvar['duration']=='show'): ?>
|
||||
<time class="badge badge-default bg-black rounded-0 position-absolute" style="right:1px;bottom:1px"><?php echo getUpImageTime($_R) ?></time>
|
||||
<?php else: ?>
|
||||
<i class="fa fa-play-circle-o fa-lg position-absolute" style="right:8px;bottom:8px;color: rgba(255, 255, 255, 0.9);"></i>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<div class="mt-2 px-1">
|
||||
<div class="line-clamp-2">
|
||||
<?php echo getStrCut(stripslashes($_R['subject']),100,'..') ?>
|
||||
</div>
|
||||
<?php if ($wdgvar['author']=='true'): ?>
|
||||
<span class="badge badge-primary badge-inverted"><?php echo getProfileInfo($_R['mbruid'],$_HS['nametype']) ?></span>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php endforeach?>
|
||||
</div><!-- /.row -->
|
||||
</main>
|
||||
|
||||
</section>
|
||||
@@ -0,0 +1 @@
|
||||
인기 포스트를 한열에 2개씩 갤러리 형식으로 출력합니다.
|
||||
BIN
widgets/rc-default/post/post/best/gallery-default/thumb.png
Normal file
|
After Width: | Height: | Size: 151 KiB |