This commit is contained in:
shim
2023-04-17 11:06:08 +09:00
parent d0b393aa97
commit 76264e09ad
4686 changed files with 552713 additions and 0 deletions

View 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'))
),
),
);
?>

View 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>

View File

@@ -0,0 +1 @@
신규등록된 리스트를 출력합니다.

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB