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

View File

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB

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