first
This commit is contained in:
15
widgets/rc-default/site/cover-default/_var.config.php
Normal file
15
widgets/rc-default/site/cover-default/_var.config.php
Normal file
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
if(!defined('__KIMS__')) exit;
|
||||
|
||||
$d['widget']['dom'] = array(
|
||||
|
||||
'cover-default' => array(
|
||||
'사이트 커버 기본형', //위젯명
|
||||
array(
|
||||
array('title','input','타이틀','새로운 나만의 비즈니스 홈'),
|
||||
array('subtitle','input','보조 타이틀',''),
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
?>
|
||||
136
widgets/rc-default/site/cover-default/main.php
Normal file
136
widgets/rc-default/site/cover-default/main.php
Normal file
@@ -0,0 +1,136 @@
|
||||
<style>
|
||||
.profile-card .bg_profile {
|
||||
position: relative;
|
||||
height: 9.375rem;
|
||||
background-position: 50% 50%;
|
||||
background-size: cover;
|
||||
}
|
||||
.profile-card .bg_profile:before {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
height: 100%;
|
||||
background: -moz-linear-gradient(top, rgba(0,0,0,0) 0%, rgba(0,0,0,.3) 100%);
|
||||
background: -webkit-linear-gradient(top, rgba(0,0,0,0) 0%,rgba(0,0,0,.3) 100%);
|
||||
background: linear-gradient(to bottom, rgba(0,0,0,0) 0%,rgba(0,0,0,.3) 100%);
|
||||
content: '';
|
||||
}
|
||||
.profile-card main {
|
||||
padding-top:2.1rem;
|
||||
padding-bottom:2.1rem
|
||||
}
|
||||
.profile-card .nav-control {
|
||||
position: relative;
|
||||
display: table;
|
||||
overflow: hidden;
|
||||
font-size: .75rem;
|
||||
font-weight: 400;
|
||||
background-color: #eceeef;
|
||||
border: none;
|
||||
border-top: 0.0625rem solid #f0f0f0;
|
||||
border-radius: 0;
|
||||
}
|
||||
.profile-card .nav-control .nav-link {
|
||||
padding-top: .475rem;
|
||||
padding-bottom: .4375rem;
|
||||
border-left: none;
|
||||
background-color: #fff;
|
||||
font-size: 0.875rem;
|
||||
line-height: 1.9rem;
|
||||
}
|
||||
.profile-card .nav-control .nav-link.active {
|
||||
background-color: #fff;
|
||||
color: #333;
|
||||
font-weight: bold;
|
||||
border-bottom: 0.0625rem solid #000;
|
||||
}
|
||||
.profile-card .btn-circle-secondary {
|
||||
padding: 0;
|
||||
color: #373a3c;
|
||||
background-color: #fff;
|
||||
border-radius: 50%;
|
||||
height: 3.5rem;
|
||||
min-width: 3.5rem;
|
||||
width: 3.5rem;
|
||||
border: none;
|
||||
box-shadow : none
|
||||
}
|
||||
.profile-card .btn-circle-secondary i {
|
||||
background-color: #f7f7f7;
|
||||
border-radius: 100%;
|
||||
padding : .75rem;
|
||||
color: #555;
|
||||
}
|
||||
.profile-card .btn-circle-secondary small {
|
||||
margin-top: .6rem;
|
||||
display: block;
|
||||
font-size: 0.75rem
|
||||
}
|
||||
.profile-card .btn-circle-secondary:focus {
|
||||
outline: none
|
||||
}
|
||||
.profile-card .appicon {
|
||||
position: absolute;
|
||||
border-radius: 1.5rem;
|
||||
width:5rem;
|
||||
left:50%;
|
||||
margin-left:-2.5rem;
|
||||
bottom:-1.25rem
|
||||
}
|
||||
</style>
|
||||
|
||||
<section class="widget mt-0 border-top-0 border-bottom profile-card" data-role="siteCardFull">
|
||||
|
||||
<div class="bg_profile" style="background-image: url('');background-color: #fff;">
|
||||
<img src="/_core/images/touch/homescreen-200x200.png" class="appicon" data-href="<?php echo RW(0)?>" data-text="새로고침">
|
||||
</div>
|
||||
|
||||
<main class="text-xs-center">
|
||||
<h5><?php echo $wdgvar['title'] ?></h5>
|
||||
<small class="d-block mb-4 text-muted">
|
||||
<?php echo $wdgvar['subtitle']?$wdgvar['subtitle']:'사진, 동영상, 카드뷰 등 다양한 형태로 발행하는 브랜드 소식' ?>
|
||||
</small>
|
||||
|
||||
<a type="button" class="btn btn-circle-secondary btn-sm">
|
||||
<i class="material-icons">share</i>
|
||||
<small>공유하기</small>
|
||||
</a>
|
||||
<a href="tel://<?php echo $d['layout']['contact_tel'] ?>" class="btn btn-circle-secondary btn-sm ml-4">
|
||||
<i class="material-icons">phone</i>
|
||||
<small>전화문의</small>
|
||||
</a>
|
||||
<a type="button" class="btn btn-circle-secondary btn-sm ml-4">
|
||||
<i class="material-icons">comment</i>
|
||||
<small>카톡상담</small>
|
||||
</a>
|
||||
</main>
|
||||
|
||||
<?php if ($my['uid']): ?>
|
||||
<nav class="nav nav-control">
|
||||
|
||||
<?php if ($d['post']['writeperm']): ?>
|
||||
<a class="nav-link" href="#popup-post-newPost"
|
||||
data-toggle="popup"
|
||||
data-start="<?php echo $wdgvar['start'] ?>"
|
||||
data-url="/post/write"
|
||||
data-title="새 포스트">
|
||||
포스트 작성
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($d['layout']['company_name']): ?>
|
||||
<a class="nav-link" href="#page-site-info" data-toggle="page" data-start="#page-main">
|
||||
홈 정보 보기
|
||||
</a>
|
||||
<?php else: ?>
|
||||
<a class="nav-link" href="#" data-href="<?php echo $g['s'].'/?r='.$r.'&layoutPage=settings&prelayout=rc-starter/blank' ?>">
|
||||
홈 정보 편집
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
|
||||
</nav>
|
||||
<?php endif; ?>
|
||||
|
||||
</section>
|
||||
1
widgets/rc-default/site/cover-default/readme.txt
Normal file
1
widgets/rc-default/site/cover-default/readme.txt
Normal file
@@ -0,0 +1 @@
|
||||
사이트 커버 기본형
|
||||
BIN
widgets/rc-default/site/cover-default/thumb.png
Normal file
BIN
widgets/rc-default/site/cover-default/thumb.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 28 KiB |
12
widgets/rc-default/site/menu/card-menu/main.css
Normal file
12
widgets/rc-default/site/menu/card-menu/main.css
Normal file
@@ -0,0 +1,12 @@
|
||||
.rc-card-quickmenu .card {
|
||||
margin: 0;
|
||||
color: #222
|
||||
}
|
||||
|
||||
.rc-card-quickmenu .card-title {
|
||||
margin-bottom: .2rem;
|
||||
height: 32px;
|
||||
font-size: 1rem;
|
||||
color: inherit;
|
||||
overflow: hidden;
|
||||
}
|
||||
31
widgets/rc-default/site/menu/card-menu/main.php
Normal file
31
widgets/rc-default/site/menu/card-menu/main.php
Normal file
@@ -0,0 +1,31 @@
|
||||
<section class="widget rc-card-quickmenu content-padded">
|
||||
<div class="row gutter-half">
|
||||
<?php
|
||||
$_MENUQ1=getDbData($table['s_menu'],'site='.$s." and id='".$d['layout']['front_quick']."'",'uid');
|
||||
$_MENUQ2=getDbSelect($table['s_menu'],'site='.$s.' and parent='.$_MENUQ1['uid'].' and hidden=0 and mobile=1 order by gid asc','*');
|
||||
?>
|
||||
<?php while($_M2=db_fetch_array($_MENUQ2)):?>
|
||||
|
||||
<?php
|
||||
if($_M2['upload']) {
|
||||
$ufilesArray = getArrayString($_M2['upload']);
|
||||
$_IMG = getDbData($table['s_upload'], 'uid='.$ufilesArray['data'][0], '*');
|
||||
$Topimg_URL = $_IMG['url'].$_IMG['folder'].'/'.$_IMG['tmpname'];
|
||||
}
|
||||
?>
|
||||
|
||||
<div class="col-xs-6 mb-2">
|
||||
<a class="card text-center" href="<?php echo RW('c='.$d['layout']['front_quick'].'/'.$_M2['id'])?>" >
|
||||
<?php if ($_M2['upload']): ?>
|
||||
<img src="<?php echo getPreviewResize($Topimg_URL,'n')?>" alt="" class="card-img-top img-fluid">
|
||||
<?php endif; ?>
|
||||
<div class="card-block p-2">
|
||||
<h5 class="card-title"><?php echo $_M2['addinfo']?> </h5>
|
||||
<small class="card-text text-muted"><?php echo $_M2['name']?></small>
|
||||
</div>
|
||||
</a><!-- /.card -->
|
||||
</div><!-- /.col-4 -->
|
||||
<?php endwhile?>
|
||||
|
||||
</div><!-- /.row -->
|
||||
</section>
|
||||
114
widgets/rc-default/site/menu/drawer-default/admin.php
Normal file
114
widgets/rc-default/site/menu/drawer-default/admin.php
Normal file
@@ -0,0 +1,114 @@
|
||||
<div id="mjointbox">
|
||||
<h5>
|
||||
<i class="fa fa-info-circle"></i>
|
||||
<?php echo getFolderName($g['path_widget'].$swidget)?>
|
||||
</h5>
|
||||
|
||||
<form name="procform" class="form-horizontal rb-form" role="form">
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-2 col-form-label">시작메뉴</label>
|
||||
<div class="col-sm-8">
|
||||
<select name="smenu" class="form-control custom-select">
|
||||
<option value="0"<?php if(!$wdgvar['smenu']):?> selected<?php endif?>>ㆍ처음(root)</option>
|
||||
<option value="-1">ㆍ1단계 선택메뉴</option>
|
||||
<option value="-2">ㆍ2단계 선택메뉴</option>
|
||||
<option value="-3">ㆍ3단계 선택메뉴</option>
|
||||
<option value="0">----------------------------------------------------------------</option>
|
||||
<?php $_isUid='u'?>
|
||||
<?php $cat=$wdgvar['smenu']?>
|
||||
<?php include $g['path_core'].'function/menu1.func.php'?>
|
||||
<?php getMenuShowSelect($s,$table['s_menu'],0,0,0,0,0,'')?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-2 col-form-label">추출단계</label>
|
||||
<div class="col-sm-8">
|
||||
<select name="limit" class="form-control custom-select">
|
||||
<?php for($i = 1; $i < 3; $i++):?>
|
||||
<option value="<?php echo $i?>"<?php if($wdgvar['limit']==$i||(!$wdgvar['limit']&&$i==2)):?> selected="selected"<?php endif?>>ㆍ<?php echo sprintf('시작메뉴 포함 %s단계',$i)?></option>
|
||||
<?php endfor?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-2 col-form-label">링크방식</label>
|
||||
<div class="col-sm-8">
|
||||
<select name="link" class="form-control custom-select">
|
||||
<option value="link">ㆍ일반</option>
|
||||
<option value="bookmark">ㆍ북마크</option>
|
||||
</select>
|
||||
<small class="form-text text-muted mt-2">
|
||||
북마크 방식을 지정하면 링크가 다음과 같이 생성됩니다.<br>
|
||||
<code><a data-scroll href="#MENUCODE"></code>
|
||||
</small>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-2 col-form-label">아코디언<br><span class="badge badge-light">accordion</span></label>
|
||||
<div class="col-sm-8">
|
||||
<div class="input-group">
|
||||
<div class="input-group-prepend">
|
||||
<span class="input-group-text">#</span>
|
||||
</div>
|
||||
<input type="text" name="collid" value="<?php echo $wdgvar['collid']?$wdgvar['collid']:'drawer-menu'?>" class="form-control">
|
||||
<div class="input-group-append">
|
||||
<div class="input-group-text">
|
||||
<div class="custom-control custom-checkbox">
|
||||
<input type="checkbox" class="custom-control-input" id="accordion" name="accordion" value="1" checked>
|
||||
<label class="custom-control-label" for="accordion">사용</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<small class="form-text text-muted mt-2">
|
||||
ID를 지정해 주세요. 아코디언 기능 적용시에 필요합니다.
|
||||
</small>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-sm-2 col-form-label">컬랩스<br><span class="badge badge-light">collapse</span></label>
|
||||
<div class="col-sm-8 pt-1">
|
||||
<div class="custom-control custom-checkbox">
|
||||
<input type="checkbox" class="custom-control-input" id="collapse" name="collapse" value="1" checked>
|
||||
<label class="custom-control-label" for="collapse">사용</label>
|
||||
</div>
|
||||
<div class="custom-control custom-checkbox">
|
||||
<input type="checkbox" class="custom-control-input" id="dispfmenu" name="dispfmenu" value="1">
|
||||
<label class="custom-control-label" for="dispfmenu">부모메뉴를 포함시킴</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</form>
|
||||
</div>
|
||||
|
||||
|
||||
<script>
|
||||
//위젯코드 리턴
|
||||
function widgetCode(n)
|
||||
{
|
||||
var f = document.procform;
|
||||
var widgetName = "<?php echo $swidget?>"; // 위젯명칭
|
||||
var widgetInfo = "";
|
||||
|
||||
if(f.smenu.value) widgetInfo+= "'smenu'=>'"+f.smenu.value+"',";
|
||||
if(f.limit.value) widgetInfo+= "'limit'=>'"+f.limit.value+"',";
|
||||
if(f.link.value) widgetInfo+= "'link'=>'"+f.link.value+"',";
|
||||
if(f.collid.value) widgetInfo+= "'collid'=>'"+f.collid.value+"',";
|
||||
if(f.accordion.checked) widgetInfo+= "'accordion'=>'1',";
|
||||
if(f.dispfmenu.checked) widgetInfo+= "'dispfmenu'=>'1',";
|
||||
if(f.collapse.checked) widgetInfo+= "'collapse'=>'1',";
|
||||
|
||||
if (n) return "<img alt=\"getWidget('"+widgetName+"',array("+widgetInfo+"))\" class=\"rb-widget-edit-img\" src=\"./_core/images/blank.gif\">"; // 에디터삽입 위젯 이미지 코드
|
||||
else return "<"+"?php "+"getWidget('"+widgetName+"',array("+widgetInfo+"))?>"; // PHP 위젯함수 코드
|
||||
}
|
||||
//위젯 삽입하기
|
||||
function saveCheck(n)
|
||||
{
|
||||
<?php $isCodeOnly='Y'?>// 코드추출만 지원할 경우
|
||||
}
|
||||
</script>
|
||||
104
widgets/rc-default/site/menu/drawer-default/main.php
Normal file
104
widgets/rc-default/site/menu/drawer-default/main.php
Normal file
@@ -0,0 +1,104 @@
|
||||
<?php
|
||||
if (!function_exists('getMenuWidgetCollapse'))
|
||||
{
|
||||
function getMenuWidgetCollapse($site,$table,$is_child,$parent,$depth,$id,$w,$_C)
|
||||
{
|
||||
global $_CA;
|
||||
$CD = getDbSelect($table,($site?'site='.$site.' and ':'').'hidden=0 and mobile=1 and parent='.$parent.' and depth='.($depth+1).($w['mobile']?' and mobile=1':'').' order by gid asc','*');
|
||||
if(db_num_rows($CD))
|
||||
{
|
||||
?>
|
||||
<li class="table-view-cell table-view-divider small">메뉴</li>
|
||||
<?php
|
||||
while($C = db_fetch_array($CD)):
|
||||
$CD1 = getDbSelect($table,($site?'site='.$site.' and ':'').'hidden=0 and mobile=1 and parent='.$C['uid'].' and depth='.($C['depth']+1).' order by gid asc','*');
|
||||
$_newTree = ($id?$id.'/':'').$C['id'];
|
||||
$_newTreeB = str_replace('/','-',$_newTree);
|
||||
$_href = $w['link']=='bookmark'?'#'.$_newTreeB:RW('c='.$_newTree);
|
||||
$_name = $C['name'];
|
||||
$_target = $C['target']=='_blank'?' target="_blank"':'';
|
||||
$_addattr = $C['addattr']?' '.$C['addattr']:'';
|
||||
$_isActive = in_array($C['id'],$_CA);
|
||||
?>
|
||||
<?php if($C['is_child'] && $w['limit'] > 1 && $w['collapse']):?>
|
||||
<li class="table-view-cell">
|
||||
<a data-toggle="collapse" data-parent="#<?php echo $w['accordion']?$w['collid']:''?>" href="#<?php echo $w['collid']?>-<?php echo $C['uid']?>" class="navigate-updown collapsed<?php if($_isActive):?> active<?php endif?>">
|
||||
<?php echo $C['name']?>
|
||||
</a>
|
||||
|
||||
<ul class="table-view collapse<?php if($_isActive):?> in<?php endif?>" id="<?php echo $w['collid']?>-<?php echo $C['uid']?>">
|
||||
<?php if($w['dispfmenu']):?>
|
||||
<li class="table-view-cell"><a data-href="<?php echo $_href?>"<?php echo $_addattr.$_target?> data-toggle="drawer-close"><?php echo $_name?></a></li>
|
||||
<?php endif?>
|
||||
<?php while($C1 = db_fetch_array($CD1)):?>
|
||||
<li class="table-view-cell<?php if(in_array($C1['id'],$_CA)):?> table-view-info<?php endif?>">
|
||||
<a class="" data-href="<?php echo $w['link']=='bookmark'?'#'.$_newTreeB.'-'.$C1['id']:RW('c='.$_newTree.'/'.$C1['id'])?>" data-toggle="drawer-close" <?php if($C1['addattr']):?> <?php echo $C1['addattr']?><?php endif?><?php if($C1['target']):?> target="<?php echo $C1['target']?>"<?php endif?>>
|
||||
<?php echo $C1['name']?>
|
||||
</a>
|
||||
</li>
|
||||
<?php endwhile?>
|
||||
</ul>
|
||||
</li>
|
||||
<?php else:?>
|
||||
<li class="table-view-cell<?php if($_isActive):?> table-view-info<?php endif?>">
|
||||
<a data-href="<?php echo $_href?>"<?php echo $_addattr.$_target?> data-toggle="drawer-close">
|
||||
<?php echo $C['name']?>
|
||||
<?php if($C['is_child']):?><span class="branch"></span><?php endif?>
|
||||
</a>
|
||||
<?php if($C['is_child'] && $w['limit'] > 1 && $_isActive):?>
|
||||
<ul class="table-view">
|
||||
<?php while($C1 = db_fetch_array($CD1)):?>
|
||||
<li class="table-view-cell<?php if(in_array($C1['id'],$_CA)):?> table-view-info<?php endif?>">
|
||||
<a data-href="<?php echo $w['link']=='bookmark'?'#'.$_newTreeB.'-'.$C1['id']:RW('c='.$_newTree.'/'.$C1['id'])?>" data-toggle="drawer-close" <?php if($C1['addattr']):?> <?php echo $C1['addattr']?><?php endif?><?php if($C1['target']):?> target="<?php echo $C1['target']?>"<?php endif?>>
|
||||
<?php echo $C1['name']?>
|
||||
</a>
|
||||
</li>
|
||||
<?php endwhile?>
|
||||
</ul>
|
||||
<?php endif?>
|
||||
</li>
|
||||
<?php endif?>
|
||||
<?php endwhile?>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
}
|
||||
$wdgvar['limit'] = $wdgvar['limit'] < 6 ? $wdgvar['limit'] : 5;
|
||||
if ($wdgvar['smenu'] < 0)
|
||||
{
|
||||
if (strstr($c,'/'))
|
||||
{
|
||||
$wdgvar['mnarr'] = explode('/',$c);
|
||||
$wdgvar['count'] = (- $wdgvar['smenu']) - 1;
|
||||
for ($j = 0; $j <= $wdgvar['count']; $j++) $wdgvar['sid'] .= $wdgvar['mnarr'][$j].'/';
|
||||
$wdgvar['sid'] = $wdgvar['sid'] ? substr($wdgvar['sid'],0,strlen($wdgvar['sid'])-1): '';
|
||||
$wdgvar['path'] = getDbData($table['s_menu'],"id='".$wdgvar['mnarr'][$wdgvar['count']]."'",'uid,depth');
|
||||
$wdgvar['smenu'] = $wdgvar['path']['uid'];
|
||||
$wdgvar['depth'] = $wdgvar['path']['depth'];
|
||||
}
|
||||
else {
|
||||
$wdgvar['sid'] = $c;
|
||||
$wdgvar['smenu'] = $_HM['uid'];
|
||||
$wdgvar['depth'] = $_HM['depth'];
|
||||
}
|
||||
}
|
||||
else if ($wdgvar['smenu'])
|
||||
{
|
||||
$wdgvar['mnarr'] = explode('/',$wdgvar['smenu']);
|
||||
$wdgvar['count'] = count($wdgvar['mnarr']);
|
||||
for ($j = 0; $j < $wdgvar['count']; $j++)
|
||||
{
|
||||
$wdgvar['path'] = getDbData($table['s_menu'],'uid='.(int)$wdgvar['mnarr'][$j],'uid,id,depth');
|
||||
$wdgvar['sid'] .= $wdgvar['path']['id'].'/';
|
||||
$wdgvar['smenu'] = $wdgvar['path']['uid'];
|
||||
$wdgvar['depth'] = $wdgvar['path']['depth'];
|
||||
}
|
||||
$wdgvar['sid'] = $wdgvar['sid'] ? substr($wdgvar['sid'],0,strlen($wdgvar['sid'])-1): '';
|
||||
}
|
||||
else {
|
||||
$wdgvar['depth'] = 0;
|
||||
}
|
||||
$wdgvar['olimit']= $wdgvar['limit'];
|
||||
$wdgvar['limit'] = $wdgvar['limit'] + $wdgvar['depth'];
|
||||
getMenuWidgetCollapse($s,$table['s_menu'],0,$wdgvar['smenu'],$wdgvar['depth'],$wdgvar['sid'],$wdgvar,array());
|
||||
?>
|
||||
1
widgets/rc-default/site/menu/drawer-default/name.txt
Normal file
1
widgets/rc-default/site/menu/drawer-default/name.txt
Normal file
@@ -0,0 +1 @@
|
||||
모바일-드로어 메뉴
|
||||
BIN
widgets/rc-default/site/menu/drawer-default/thumb.png
Normal file
BIN
widgets/rc-default/site/menu/drawer-default/thumb.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 300 KiB |
55
widgets/rc-default/site/menu/rc-table-menu/main.php
Normal file
55
widgets/rc-default/site/menu/rc-table-menu/main.php
Normal file
@@ -0,0 +1,55 @@
|
||||
<style media="screen">
|
||||
.nav-table {
|
||||
display: table;
|
||||
width: 100%;
|
||||
font-size: .9375rem;
|
||||
border-radius: 0;
|
||||
border-collapse:collapse;
|
||||
}
|
||||
.nav-table-row {
|
||||
display: table-row;
|
||||
}
|
||||
.nav-table-cell {
|
||||
display: table-cell;
|
||||
overflow: hidden;
|
||||
width: 25%;
|
||||
max-width: 6.25rem;
|
||||
min-height: 1rem;
|
||||
padding: .75rem 0 .625rem;
|
||||
color: #666;
|
||||
letter-spacing: -.0625rem;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
text-align: center;
|
||||
border: .0625rem solid rgba(0, 0, 0, 0.075);;
|
||||
}
|
||||
.nav-table-cell:active {
|
||||
background-color: #f4f4f4
|
||||
}
|
||||
.nav-table-cell.active,
|
||||
.nav-table-cell:active {
|
||||
color: #0275d8 !important;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
<?php
|
||||
$_MENUQ1=getDbData($table['s_menu'],'site='.$s." and id='".$wdgvar['startmenu']."'",'uid');
|
||||
$_MENUQ2=getDbSelect($table['s_menu'],'site='.$s.' and parent='.$_MENUQ1['uid'].' and hidden=0 and mobile=1 order by gid asc','*');
|
||||
$_MENUQN=db_num_rows($_MENUQ2)
|
||||
?>
|
||||
<nav class="nav nav-table">
|
||||
<div class="nav-table-row">
|
||||
<?php $_i=0;while($_M2=db_fetch_array($_MENUQ2)):$_i++?>
|
||||
<a class="nav-table-cell" href="<?php echo RW('c='.$wdgvar['startmenu'].'/'.$_M2['id'])?>" target="<?php echo $_M2['target']?>" role="button">
|
||||
<?php echo $_M2['name']?>
|
||||
</a>
|
||||
<?php if(!($_i%$wdgvar['row'])):?></div><div class="nav-table-row"><?php endif?>
|
||||
<?php endwhile?>
|
||||
|
||||
<?php if(!$_MENUQN):?>
|
||||
<div>퀵메뉴가 없습니다.</div>
|
||||
<?php endif?>
|
||||
|
||||
</div>
|
||||
</nav>
|
||||
31
widgets/rc-default/site/menu/rc-table-menu/man.css
Normal file
31
widgets/rc-default/site/menu/rc-table-menu/man.css
Normal file
@@ -0,0 +1,31 @@
|
||||
.nav-table {
|
||||
display: table;
|
||||
width: 100%;
|
||||
font-size: .9375rem;
|
||||
border-radius: 0;
|
||||
border-collapse:collapse;
|
||||
}
|
||||
.nav-table-row {
|
||||
display: table-row;
|
||||
}
|
||||
.nav-table-cell {
|
||||
display: table-cell;
|
||||
overflow: hidden;
|
||||
width: 25%;
|
||||
max-width: 6.25rem;
|
||||
min-height: 1rem;
|
||||
padding: .75rem 0 .625rem;
|
||||
color: #666;
|
||||
letter-spacing: -.0625rem;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
text-align: center;
|
||||
border: .0625rem solid rgba(0, 0, 0, 0.075);;
|
||||
}
|
||||
.nav-table-cell:active {
|
||||
background-color: #f4f4f4
|
||||
}
|
||||
.nav-table-cell.active,
|
||||
.nav-table-cell:active {
|
||||
color: #0275d8 !important;
|
||||
}
|
||||
Reference in New Issue
Block a user