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

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

View File

@@ -0,0 +1 @@
최신 포스트를 한열에 2개씩 갤러리 형식으로 출력합니다.

Binary file not shown.

After

Width:  |  Height:  |  Size: 154 KiB