first
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
if(!defined('__KIMS__')) exit;
|
||||
|
||||
//***********************************************************************************
|
||||
// 여기에 이 위젯에서 사용할 변수들을 정의합니다.
|
||||
// 변수 작성법은 매뉴얼을 참고하세요.
|
||||
//***********************************************************************************
|
||||
|
||||
$d['widget']['dom'] = array(
|
||||
|
||||
'card-default' => array(
|
||||
'미디어셋 배너 점보트론', //위젯명
|
||||
array(
|
||||
array('title','input','타이틀',''),
|
||||
array('category','mediasetcat','미디어셋 카테고리',''),
|
||||
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('autoplay','select','자동실행','2초=2000,3초=3000,4초=4000,5초=5000,안함=false','false'),
|
||||
array('linktarget','select','링크타켓','내부=_self,새창=_blank','_self'),
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
?>
|
||||
73
widgets/bs4-default/mediaset/banner/carousel-jumbo/main.php
Normal file
73
widgets/bs4-default/mediaset/banner/carousel-jumbo/main.php
Normal file
@@ -0,0 +1,73 @@
|
||||
<style>
|
||||
.widget.carousel-jumbo .carousel-item {
|
||||
background-repeat: no-repeat;
|
||||
background-position: 50% 50%;
|
||||
background-size: auto auto
|
||||
}
|
||||
</style>
|
||||
|
||||
<?php
|
||||
$_mediasetque = 'site='.$s.' and category="'.$wdgvar['category'].'"';
|
||||
$_RCD=getDbArray($table['s_upload'],$_mediasetque,'*','pid','asc',$wdgvar['limit'],1);
|
||||
?>
|
||||
|
||||
<section class="widget carousel carousel-jumbo mb-4" class="carousel slide" data-ride="carousel" id="banner-main">
|
||||
|
||||
<?php if ($wdgvar['category']): ?>
|
||||
<ol class="carousel-indicators">
|
||||
<?php $i=0;foreach($_RCD as $_R):?>
|
||||
<li data-target="#banner-main" data-slide-to="<?php echo $i ?>" class="<?php echo $i==0?' active':'' ?>"></li>
|
||||
<?php $i++;endforeach?>
|
||||
</ol>
|
||||
|
||||
<div class="carousel-inner">
|
||||
<?php $i=0;foreach($_RCD as $_R):?>
|
||||
<div class="carousel-item<?php echo $i==0?' active':'' ?>" style="height: 350px;background-image: url('<?php echo $_R['src'] ?>')" >
|
||||
<?php if ($_R['linkurl']): ?>
|
||||
<a href="<?php echo $_R['linkurl'] ?>" target="<?php echo $wdgvar['linktarget'] ?>">
|
||||
<img src="/_core/images/blank.gif" alt="" style="width: 100%;height:350px">
|
||||
<div class="carousel-caption d-none d-md-block">
|
||||
<h5><?php echo $_R['caption'] ?></h5>
|
||||
<p><?php echo $_R['description'] ?></p>
|
||||
</div>
|
||||
</a>
|
||||
<?php else: ?>
|
||||
<div class="carousel-caption d-none d-md-block">
|
||||
<div class="carousel-caption d-none d-md-block">
|
||||
<h5><?php echo $_R['caption'] ?></h5>
|
||||
<p><?php echo $_R['description'] ?></p>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<?php $i++;endforeach?>
|
||||
</div>
|
||||
|
||||
<a class="carousel-control-prev" href="#banner-main" role="button" data-slide="prev">
|
||||
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
|
||||
<span class="sr-only">이전</span>
|
||||
</a>
|
||||
<a class="carousel-control-next" href="#banner-main" role="button" data-slide="next">
|
||||
<span class="carousel-control-next-icon" aria-hidden="true"></span>
|
||||
<span class="sr-only">다음</span>
|
||||
</a>
|
||||
|
||||
<?php if(!db_num_rows($_RCD)):?>
|
||||
<div class="d-flex justify-content-center align-items-center text-muted bg-light" style="height: 350px">
|
||||
자료가 없습니다.
|
||||
</div>
|
||||
<?php endif?>
|
||||
|
||||
<?php else: ?>
|
||||
<div class="d-flex justify-content-center align-items-center text-muted bg-light" style="height: 350px">
|
||||
미디어셋 카테고리를 지정해 주세요.
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
</section>
|
||||
|
||||
<script>
|
||||
$('.carousel').carousel({
|
||||
<?php if ($wdgvar['autoplay']!='false') echo 'interval: '.$wdgvar['autoplay'] ?>
|
||||
})
|
||||
</script>
|
||||
@@ -0,0 +1 @@
|
||||
배너 캐러셀점보
|
||||
BIN
widgets/bs4-default/mediaset/banner/carousel-jumbo/thumb.png
Normal file
BIN
widgets/bs4-default/mediaset/banner/carousel-jumbo/thumb.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 18 KiB |
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
if(!defined('__KIMS__')) exit;
|
||||
|
||||
//***********************************************************************************
|
||||
// 여기에 이 위젯에서 사용할 변수들을 정의합니다.
|
||||
// 변수 작성법은 매뉴얼을 참고하세요.
|
||||
//***********************************************************************************
|
||||
|
||||
$d['widget']['dom'] = array(
|
||||
|
||||
'card-default' => array(
|
||||
'미디어셋 배너 그리드 기본형', //위젯명
|
||||
array(
|
||||
array('title','input','타이틀',''),
|
||||
array('show_header','select','헤더출력','출력=show,숨김=hide','show'),
|
||||
array('category','mediasetcat','미디어셋 카테고리',''),
|
||||
array('line','select','한줄출력수','1개=col-12,2개=col-6,3개=col-4,4개=col-3,6개=col-2','col-6'),
|
||||
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','2'),
|
||||
array('linktarget','select','링크타켓','내부=_self,새창=_blank','_self'),
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
?>
|
||||
34
widgets/bs4-default/mediaset/banner/grid-default/main.php
Normal file
34
widgets/bs4-default/mediaset/banner/grid-default/main.php
Normal file
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
$_mediasetque = 'site='.$s.' and category="'.$wdgvar['category'].'"';
|
||||
$_RCD=getDbArray($table['s_upload'],$_mediasetque,'*','pid','asc',$wdgvar['limit'],1);
|
||||
?>
|
||||
<section class="widget mb-3 ">
|
||||
|
||||
<div class="<?php echo $wdgvar['container']?$wdgvar['container']:$d['layout']['home_container'] ?>">
|
||||
|
||||
<div class="py-5">
|
||||
|
||||
<?php if ($wdgvar['show_header']=='show'): ?>
|
||||
<header>
|
||||
<h5 class="widget-title text-center mb-4">
|
||||
<?php echo $wdgvar['title'] ?>
|
||||
</h5>
|
||||
</header>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="row gutter-half">
|
||||
|
||||
<?php $i=0;foreach($_RCD as $_R):?>
|
||||
<div class="<?php echo $wdgvar['line'] ?>">
|
||||
<a href="<?php echo $_R['linkurl']?$_R['linkurl']:'#' ?>" target="<?php echo $wdgvar['linktarget'] ?>">
|
||||
<img src="<?php echo $_R['src'] ?>" class="img-fluid" alt="">
|
||||
</a>
|
||||
</div>
|
||||
<?php $i++;endforeach?>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</section>
|
||||
@@ -0,0 +1 @@
|
||||
배너 그리드 기본
|
||||
@@ -0,0 +1 @@
|
||||
배너를 출력합니다.
|
||||
BIN
widgets/bs4-default/mediaset/banner/grid-default/thumb.png
Normal file
BIN
widgets/bs4-default/mediaset/banner/grid-default/thumb.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 10 KiB |
Reference in New Issue
Block a user