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,19 @@
<?php
if(!defined('__KIMS__')) exit;
//***********************************************************************************
// 여기에 이 위젯에서 사용할 변수들을 정의합니다.
// 변수 작성법은 매뉴얼을 참고하세요.
//***********************************************************************************
$d['widget']['dom'] = array(
'bs4-list-new-card' => array(
'리스트 배너', //위젯명
array(
array('id','postlist','리스트 선택',''),
),
),
);
?>

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

View File

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB

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

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

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

View File

@@ -0,0 +1 @@
데스크탑 -최신 포스트

View File

@@ -0,0 +1 @@
지정한 리스트의 포스트를 출력합니다.

Binary file not shown.

After

Width:  |  Height:  |  Size: 176 KiB

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

View File

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

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

View File

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

View File

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

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

View File

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 45 KiB