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,41 @@
<?php
//사이트별 레이아웃 설정 변수
$layout = dirname($_HS['layout']);
$g['layoutVarForSite'] = $g['dir_var_site'].'layout.'.$layout.'.var.php';
include is_file($g['layoutVarForSite']) ? $g['layoutVarForSite'] : $g['dir_layout'].'_var/_var.php';
//사이트 부가정보 변수
$g['siteinfo'] = $g['dir_var_site'].'siteinfo.php';
if (is_file($g['siteinfo'])) include $g['siteinfo'];
//사이트별 웹앱 매니페스트
$g['manifestForSite'] = $g['dir_var_site'].'manifest.json';
$g['url_manifest'] = $g['url_var_site'].'/manifest.json';
$manifestForSite = file_exists($g['manifestForSite']) ? $g['url_manifest'] : $g['path_module'].'site/var/manifest.json';
// 레이아웃 내장 메인페이지에 home 레이아웃 적용
if (strstr($g['main'],$g['dir_layout']) && !$prelayout && !$layoutPage) {
$d['layout']['php'] = $d['layout']['dir'].'/home.php';
}
if (isset($layoutPage)){
$g['dir_module_mode'] = $g['dir_layout'].'/_pages/'.$layoutPage;
$g['url_module_mode'] = $g['url_layout'].'/_pages/'.$layoutPage;
$g['main'] = $g['dir_layout'].'/_pages/'.$layoutPage.'.php';
}
function getLayoutLogo($layout,$mod) {
if ($mod=='header') {
if ($layout['header_logo']) {
return '<a class="navbar-brand p-0" href="'.RW(0).'" style="background-image:url('.$GLOBALS['g']['url_var_site'].'/'.$layout['header_logo'].$GLOBALS['g']['wcache'].');background-size:'.$layout['header_logo_size'].'%;background-position:'.$layout['header_logo_position'].'% 50%"></a>';
} else {
return '<a class="navbar-brand p-0" href="'.RW(0).'">'.$layout['header_title'].'</a>';
}
} elseif ($mod=='footer' && $layout['footer_logo']) {
return '<div class="footer-logo" style="background-image:url('.$GLOBALS['g']['url_var_site'].'/'.$layout['footer_logo'].$GLOBALS['g']['wcache'].');background-size:'.$layout['footer_logo_size'].'%;'.($layout['footer_logo_gray']=='true'?'filter: grayscale(100%)':'').'"></div>';
} else {
return;
}
}
?>

View File

@@ -0,0 +1,53 @@
<!-- 엔진코드:삭제하지마세요 -->
<?php include $g['path_core'].'engine/foot.engine.php'?>
<!-- 포토모달 : photoswipe http://photoswipe.com/documentation/getting-started.html -->
<?php getImport('photoswipe','photoswipe','4.1.1','css') ?>
<?php getImport('photoswipe','default-skin/default-skin','4.1.1','css') ?>
<?php getImport('photoswipe','photoswipe.min','4.1.1','js') ?>
<?php getImport('photoswipe','photoswipe-ui-default.min','4.1.1','js') ?>
<script src="<?php echo $g['url_layout']?>/_js/photoswipe.js"></script>
<!-- 소셜공유시 URL 클립보드저장 : clipboard.js : https://github.com/zenorocha/clipboard.js-->
<?php getImport('clipboard','clipboard.min','2.0.4','js') ?>
<!-- 입력 textarea 자동확장 -->
<?php getImport('autosize','autosize.min','3.0.14','js')?>
<!-- markjs js : https://github.com/julmot/mark.js -->
<?php getImport('markjs','jquery.mark.min','8.11.1','js')?>
<!-- linkifyjs : https://github.com/Soapbox/linkifyjs -->
<?php getImport('linkifyjs','linkify.min','2.1.8','js')?>
<?php getImport('linkifyjs','linkify-string.min','2.1.8','js')?>
<!-- bootstrap-notify : https://github.com/mouse0270/bootstrap-notify -->
<?php getImport('bootstrap-notify','bootstrap-notify.min','3.1.3','js')?>
<!-- 댓글출력시 필요 -->
<?php if ($g['broswer']!='MSIE 11' && $g['broswer']!='MSIE 10' && $g['broswer']!='MSIE 9'): ?>
<?php if ($mod!='write' && $my['uid']): ?>
<script src="https://cdn.ckeditor.com/ckeditor5/21.0.0/decoupled-document/ckeditor.js"></script>
<script src="https://cdn.ckeditor.com/ckeditor5/21.0.0/decoupled-document/translations/ko.js"></script>
<?php endif; ?>
<script src="<?php echo $g['url_root']?>/modules/comment/lib/Rb.comment.js<?php echo $g['wcache']?>"></script>
<?php else: ?>
<script src="<?php echo $g['url_root']?>/modules/comment/lib/Rb.comment.old.js"></script>
<?php endif; ?>
<!-- 레이아웃 공용 스크립트 -->
<script src="<?php echo $g['url_layout']?>/_js/main.js<?php echo $g['wcache']?>"></script>
<?php if($_SERVER['HTTPS'] == 'on' && $g['broswer']!='MSIE 10' && $g['broswer']!='MSIE 11'):?>
<script>
if ('serviceWorker' in navigator && 'PushManager' in window) {
console.log('서비스워커와 푸시가 지원되는 브라우저 입니다.');
window.addEventListener('load', () => {
navigator.serviceWorker.register('<?php echo $g['s']?>/sw.js');
});
} else {
console.warn('푸시 메시징이 지원되지 않는 브라우저 입니다.');
}
</script>
<?php endif?>

View File

@@ -0,0 +1,74 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Seo -->
<meta name="robots" content="<?php echo strip_tags($g['meta_bot'])?>">
<meta name="title" content="<?php echo strip_tags($g['meta_tit'])?>">
<meta name="keywords" content="<?php echo strip_tags($g['meta_key'])?>">
<meta name="description" content="<?php echo strip_tags($g['meta_des'])?>">
<meta name="author" content="<?php echo $_HS['name'] ?>">
<link rel="image_src" href="<?php echo strip_tags($g['meta_img'])?>">
<link rel="canonical" href="<?php echo strip_tags($g['url_root'].$_SERVER['REQUEST_URI'])?>">
<meta property="og:site_name" content="<?php echo $_HS['name'] ?>">
<meta property="og:locale" content="ko_KR">
<meta property="og:type" content="article">
<meta property="og:url" content="<?php echo strip_tags($g['url_root'].$_SERVER['REQUEST_URI'])?>">
<meta property="og:title" content="<?php echo strip_tags($g['meta_tit'])?>">
<meta property="og:description" content="<?php echo strip_tags($g['meta_des'])?>">
<meta property="og:image" content="<?php echo strip_tags($g['meta_img'])?>">
<title><?php echo $g['browtitle']?></title>
<!-- 파비콘 -->
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="<?php echo $g['img_layout']?>/icon/homescreen.png">
<link rel="shortcut icon" href="<?php echo $g['img_layout']?>/icon/favicon.ico">
<!-- 웹앱 매니페스트 -->
<link rel="manifest" href="<?php echo $manifestForSite?>">
<!-- 사이트 헤드 코드 -->
<?php echo $_HS['headercode']?>
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<!-- bootstrap css -->
<?php getImport('bootstrap','css/bootstrap.min','4.4.1','css')?>
<!-- jQuery -->
<?php getImport('jquery','jquery.min','3.3.1','js')?>
<?php getImport('popper.js','umd/popper.min','1.14.0','js')?>
<!-- bootstrap js -->
<?php getImport('bootstrap','js/bootstrap.min','4.4.1','js')?>
<!-- 시스템 폰트 -->
<?php getImport('font-awesome','css/font-awesome','4.7.0','css')?>
<?php getImport('font-kimsq','css/font-kimsq',false,'css')?>
<!-- anchorjs : https://github.com/bryanbraun/anchorjs -->
<?php getImport('anchorjs','anchor.min','4.2.0','js')?>
<!-- smooth-scroll: https://github.com/cferdinandi/smooth-scroll -->
<?php getImport('smooth-scroll','smooth-scroll.polyfills.min','16.1.0','js') ?>
<!-- 엔진코드:삭제하지마세요 -->
<?php include $g['path_core'].'engine/cssjs.engine.php' ?>
<!-- 레이아웃 스타일 -->
<link href="<?php echo $g['url_layout']?>/_css/style.css<?php echo $g['wcache']?>" rel="stylesheet">
<!-- 레이아웃 본문 컨텐츠 스타일 -->
<link href="<?php echo $g['s']?>/_core/css/article.css<?php echo $g['wcache']?>" rel="stylesheet">
<?php
if (file_exists($g['dir_layout'].'/_css/custom.css')) {
echo '<link href="'.$g['url_layout'].'/_css/custom.css'.$g['wcache'].'" rel="stylesheet">'; // 커스텀 레이아웃 스타일
}
?>
<!-- timeago : 상대시간 표기 -->
<?php getImport('jquery-timeago','jquery.timeago','1.6.7','js')?>
<?php getImport('jquery-timeago','locales/jquery.timeago.ko','1.6.7','js')?>

View File

@@ -0,0 +1,58 @@
<?php
// seo 데이타 -- 전송되는 타이틀 추출
$_MSEO = getDbData($table['s_seo'],'rel=1 and parent='.$_HM['uid'],'*');
$_PSEO = getDbData($table['s_seo'],'rel=2 and parent='.$_HP['uid'],'*');
$_WTIT=strip_tags($g['meta_tit']);
//$_link_domain = 'http'.($_SERVER['HTTPS']=='on'?'s':'').'://';
//$_link_url = $_link_domain.$_SERVER['REQUEST_URI']; // URL
$_link_url=$g['url_root'].$_SERVER['REQUEST_URI'];
?>
<ul class="list-inline mb-3">
<li data-toggle="tooltip" title="페이스북" class="list-inline-item">
<a href="" role="button">
<img src="<?php echo $g['img_core']?>/sns/facebook.png" alt="페이스북공유" class="rounded-circle" width="48">
</a>
</li>
<li data-toggle="tooltip" title="카카오스토리" class="list-inline-item">
<a href="" role="button">
<img src="<?php echo $g['img_core']?>/sns/kakaostory.png" alt="카카오스토리" class="rounded-circle" width="48">
</a>
</li>
<li data-toggle="tooltip" title="네이버" class="list-inline-item">
<a href="" role="button">
<img src="<?php echo $g['img_core']?>/sns/naver.png" alt="네이버" class="rounded-circle" width="48">
</a>
</li>
<li data-toggle="tooltip" title="트위터" class="list-inline-item">
<a href="" role="button">
<img src="<?php echo $g['img_core']?>/sns/twitter.png" alt="트위터" class="rounded-circle" width="48">
</a>
</li>
<li data-toggle="tooltip" title="메일보내기" class="list-inline-item">
<a href="mailto:<?php if($my['uid']):?><?php echo $my['email']?><?php endif?>?subject=경기방송%20기사공유-<?php echo $_WTIT?>&body=<?php echo $_link_url?>">
<img src="<?php echo $g['img_core']?>/sns/mail.png" alt="메일" class="rounded-circle" width="48">
</a>
</li>
</ul>
<script type="text/javascript">
// sns 이벤트
function snsWin(sns)
{
var snsset = new Array();
var enc_tit = "<?php echo urlencode($_HS['title'])?>";
var enc_sbj = "<?php echo urlencode($_WTIT)?>";
var enc_url = "<?php echo urlencode($_link_url)?>";
var enc_tag = "<?php echo urlencode(str_replace(',',' ',$R['tag']))?>";
snsset['t'] = 'https://twitter.com/intent/tweet?url=' + enc_url + '&text=' + enc_sbj;
snsset['f'] = 'http://www.facebook.com/sharer.php?u=' + enc_url;
snsset['n'] = 'http://share.naver.com/web/shareView.nhn?url=' + enc_url + '&title=' + enc_sbj;
snsset['ks'] = 'https://story.kakao.com/share?url=' + enc_url + '&title=' + enc_sbj;
window.open(snsset[sns]);
}
</script>

View File

@@ -0,0 +1,13 @@
<nav aria-label="breadcrumb" class="border-bottom">
<div class="<?php echo $d['layout']['sub_container'] ?> px-0">
<div class="d-flex justify-content-between align-items-center">
<ol class="breadcrumb mb-0">
<?php echo $g['location']?>
</ol>
<div class="">
</div>
</div>
</div>
</nav>

View File

@@ -0,0 +1,7 @@
<div class="d-flex d-flex justify-content-end">
<nav aria-label="breadcrumb">
<ol class="breadcrumb mb-0 py-0">
<?php echo $g['location']?>
</ol>
</nav>
</div>

View File

@@ -0,0 +1,349 @@
<!--
컴포넌트 모음
1. 일반모달 : 회원가입
2. 일반모달 : 로그인
3. 일반모달 : 알림
4. 일반모달 : 게시물 보기
5. 일반모달 : 게시물 쓰기
6. 포토모달 : 댓글형
7. 포토모달 : 갤러리형
8. 마크업 참조: 링크공유
-->
<!-- 1. 일반모달 : 회원가입 -->
<?php include_once $g['path_module'].'member/themes/'.$d['member']['theme_main'].'/join/component.php'; ?>
<!-- 2. 일반모달 : 로그인 -->
<?php include_once $g['path_module'].'member/themes/'.$d['member']['theme_main'].'/login/component.php'; ?>
<!-- 3. 일반모달 : 알림 -->
<?php include_once $g['path_module'].'member/themes/'.$d['member']['theme_main'].'/noti/component.php'; ?>
<!-- 4. 일반모달 : 게시물 보기-->
<div class="modal" id="modal-bbs-view" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
<input type="hidden" name="bid" value="">
<input type="hidden" name="uid" value="">
<div class="modal-dialog modal-lg" role="document" style="max-width: 95%">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" data-role="title">게시물 보기</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close" data-toggle="tooltip" title="닫기(Esc)">
<span aria-hidden="true">&times;</span>
</button>
</div>
<div class="modal-body p-0">
<div class="row no-gutters">
<main class="col-7">
<div data-role="article"></div>
</main>
<aside class="col-5 border-left">
<div class="commentting-container" data-role="comment-area"></div>
<div data-role="comment-alert" class="d-none">
<div class="d-flex align-items-center justify-content-center text-muted" style="height: calc(100vh - 9.5rem);">
댓글이 지원되지 않습니다.
</div>
</div>
</aside>
</div><!-- /.row -->
</div><!-- /.modal-body -->
</div>
</div>
</div>
<!-- 5. 일반모달 : 게시물 쓰기 -->
<?php
if ($m=='bbs') {
$bbs_component = $g['path_module'].'bbs/themes/'.$d['bbs']['skin'].'/component.php';
if (file_exists($bbs_component)) include_once $bbs_component;
}
?>
<!-- 6. 포토모달 : 댓글형 -->
<div class="pswp pswp-comment" tabindex="-1" role="dialog" aria-hidden="true">
<input type="hidden" name="uid" value="">
<input type="hidden" name="bid" value="">
<div class="pswp__bg"></div>
<!-- Slides wrapper with overflow:hidden. -->
<div class="pswp__scroll-wrap">
<!-- Container that holds slides.
PhotoSwipe keeps only 3 of them in the DOM to save memory.
Don't modify these 3 pswp__item elements, data is added later on. -->
<div class="pswp__container">
<div class="pswp__item"></div>
<div class="pswp__item"></div>
<div class="pswp__item"></div>
</div>
<!-- Default (PhotoSwipeUI_Default) interface on top of sliding area. Can be changed. -->
<div class="pswp__ui pswp__ui--hidden">
<div class="pswp__top-bar">
<!-- Controls are self-explanatory. Order can be changed. -->
<div class="pswp__subject">
<span data-role="category" class="text-primary"></span>
<span data-role="subject"></span>
</div>
<div class="pswp__counter"></div>
<button class="pswp__button pswp__button--fs" data-toggle="tooltip" title="전체 화면으로 보기"></button>
<!-- Preloader demo http://codepen.io/dimsemenov/pen/yyBWoR -->
<!-- element will get class pswp__preloader-active when preloader is running -->
<div class="pswp__preloader">
<div class="pswp__preloader__icn">
<div class="pswp__preloader__cut">
<div class="pswp__preloader__donut"></div>
</div>
</div>
</div>
</div>
<div class="pswp__share-modal pswp__share-modal--hidden pswp__single-tap">
<div class="pswp__share-tooltip"></div>
</div>
<button class="pswp__button pswp__button--arrow--left" title="이전">
</button>
<button class="pswp__button pswp__button--arrow--right" title="다음">
</button>
<div class="pswp__caption">
<div class="pswp__caption__center"></div>
</div>
</div>
</div>
<div class="rb__area">
<div data-role="article"></div>
<div class="commentting-container mt-4" data-role="comment-area"></div>
<div data-role="comment-alert" class="d-none">
<div class="d-flex align-items-center justify-content-center text-muted" style="height: calc(100vh - 27.5rem);">
댓글이 지원되지 않습니다.
</div>
</div>
</div>
<button class="pswp__button pswp__button--close" data-toggle="tooltip" title="닫기(Esc)"></button>
</div>
<!-- 7. 포토모달 : 갤러리형 -->
<div class="pswp pswp-gallery" tabindex="-1" role="dialog" aria-hidden="true">
<!-- Background of PhotoSwipe.
It's a separate element, as animating opacity is faster than rgba(). -->
<div class="pswp__bg"></div>
<!-- Slides wrapper with overflow:hidden. -->
<div class="pswp__scroll-wrap">
<!-- Container that holds slides. PhotoSwipe keeps only 3 slides in DOM to save memory. -->
<!-- don't modify these 3 pswp__item elements, data is added later on. -->
<div class="pswp__container">
<div class="pswp__item"></div>
<div class="pswp__item"></div>
<div class="pswp__item"></div>
</div>
<!-- Default (PhotoSwipeUI_Default) interface on top of sliding area. Can be changed. -->
<div class="pswp__ui pswp__ui--hidden">
<div class="pswp__top-bar">
<!-- Controls are self-explanatory. Order can be changed. -->
<div class="pswp__counter"></div>
<button class="pswp__button pswp__button--close" title="닫기 (Esc)"></button>
<button class="pswp__button pswp__button--fs" title="전체화면 보기"></button>
<button class="pswp__button pswp__button--zoom" title="Zoom in/out"></button>
<!-- Preloader demo https://codepen.io/dimsemenov/pen/yyBWoR -->
<!-- element will get class pswp__preloader-active when preloader is running -->
<div class="pswp__preloader">
<div class="pswp__preloader__icn">
<div class="pswp__preloader__cut">
<div class="pswp__preloader__donut"></div>
</div>
</div>
</div>
</div>
<div class="pswp__share-modal pswp__share-modal--hidden pswp__single-tap">
<div class="pswp__share-tooltip"></div>
</div>
<button class="pswp__button pswp__button--arrow--left" title="Previous (arrow left)">
</button>
<button class="pswp__button pswp__button--arrow--right" title="Next (arrow right)">
</button>
<div class="pswp__caption">
<div class="pswp__caption__center"></div>
</div>
</div>
</div>
</div>
<!-- 8. 마크업 참조 : 링크공유 -->
<div id="rb-share" hidden>
<ul class="share list-inline mt-2 mb-0 mx-2">
<li class="list-inline-item text-center">
<a href="" role="button" data-role="facebook" target="_blank" class="muted-link">
<img src="<?php echo $g['img_core']?>/sns/facebook.png" alt="페이스북공유" class="rounded-circle" style="width: 50px">
<p><small>페이스북</small></p>
</a>
</li>
<li class="list-inline-item text-center">
<a href="" role="button" data-role="kakaostory" target="_blank" class="muted-link">
<img src="<?php echo $g['img_core']?>/sns/kakaostory.png" alt="카카오스토리" class="rounded-circle" style="width: 50px">
<p><small>카카오스토리</small></p>
</a>
</li>
<li class="list-inline-item text-center">
<a href="" role="button" data-role="naver" target="_blank" class="muted-link">
<img src="<?php echo $g['img_core']?>/sns/naver.png" alt="네이버" class="rounded-circle" style="width: 50px">
<p><small>네이버</small></p>
</a>
</li>
<li class="list-inline-item text-center">
<a href="" role="button" data-role="twitter" target="_blank" class="muted-link">
<img src="<?php echo $g['img_core']?>/sns/twitter.png" alt="트위터" class="rounded-circle" style="width: 50px">
<p><small>트위터</small></p>
</a>
</li>
</ul>
<div class="input-group input-group-sm mb-2" hidden>
<input type="text" class="form-control" value="" readonly data-role="share" id="share-input">
<div class="input-group-append">
<button class="btn btn-light" type="button"
data-plugin="clipboard"
data-clipboard-target="#share-input"
data-toggle="tooltip" title="클립보드 복사">
<i class="fa fa-clipboard"></i>
</button>
</div>
</div>
</div>
<!-- 레이아웃 위젯 찾아보기 -->
<div class="modal" tabindex="-1" role="dialog" id="modal-widget-selector">
<div class="modal-dialog modal-dialog-centered modal-lg" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">위젯 찾아보기 <span class="badge badge-secondary align-middle"><?php echo $d['layout']['dir'] ?></span></h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
</div>
<div class="modal-body" style="min-height: 400px">
<div class="row">
<div class="col-4">
<div class="form-group">
<label class="small text-muted">레이아웃 위젯목록</label>
<select class="form-control custom-select" name="widget_selector" data-area="">
<option>선택하세요.</option>
<?php include $g['dir_layout'].'_var/_var.config.php'; ?>
<?php $_i=1;foreach($d['layout']['widget'] as $_key => $_val):$__i=sprintf('%02d',$_i)?>
<optgroup label="<?php echo $_val[0]?>">
<?php foreach($_val[1] as $_v):?>
<option value="<?php echo $_key ?>/<?php echo $_v[0]?>"><?php echo $_v[1]?></option>
<?php endforeach?>
</optgroup>
<?php $_i++;endforeach?>
</select>
</div><!-- /.form-group -->
<div data-role="readme"></div>
</div>
<div class="col-8 text-center">
<div data-role="none">
<div class="d-flex justify-content-center align-items-center bg-light" style="height:370px">
<div class="text-muted">
<i class="fa fa-puzzle-piece" aria-hidden="true" style="color: #ccc;font-size: 100px"></i>
<p>위젯을 선택해주세요.</p>
</div>
</div>
</div>
<img src="" alt="" data-role="thumb" class="img-fluid d-none">
</div>
</div><!-- /.row -->
</div>
<div class="modal-footer">
<button type="button" class="btn btn-white" data-dismiss="modal">취소</button>
<button type="button" class="btn btn-primary" data-act="submit">적용</button>
</div>
</div>
</div>
</div>
<!-- 메인화면 꾸미기 게시판생성 -->
<div class="modal" tabindex="-1" role="dialog" id="modal-widget-makebbs">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">새 게시판</h5>
</div>
<div class="modal-body">
<div class="form-group">
<label>게시판 아이디</label>
<input type="text" class="form-control" name="id" autocomplete="off">
<div class="invalid-feedback"></div>
</div>
<div class="form-group">
<label>게시판 이름</label>
<input type="text" class="form-control" name="name" autocomplete="off">
<div class="invalid-feedback"></div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-link" data-dismiss="modal">취소</button>
<button type="button" class="btn btn-primary" data-act="submit">만들기</button>
</div>
</div>
</div>
</div>
<!-- 메인화면 꾸미기 리스트 생성 -->
<div class="modal" tabindex="-1" role="dialog" id="modal-widget-makelist">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">새 리스트</h5>
</div>
<div class="modal-body">
<div class="form-group">
<label>리스트 이름</label>
<input type="text" class="form-control" name="name" autocomplete="off">
<div class="invalid-feedback"></div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-link" data-dismiss="modal">취소</button>
<button type="button" class="btn btn-primary" data-act="submit">만들기</button>
</div>
</div>
</div>
</div>

View File

@@ -0,0 +1,83 @@
<footer class="footer footer-<?php echo $d['layout']['footer_theme'] ?> mt-auto">
<div class="<?php echo $d['layout']['footer_container'] ?> px-0">
<div class="d-flex justify-content-between">
<div class="">
<?php echo getLayoutLogo($d['layout'],'footer')?>
<p>
<?php echo $d['layout']['company_name'] ?> <span class="split">|</span> 대표이사 : <?php echo $d['layout']['company_ceo'] ?> <span class="split">|</span> 개인정보 보호 최고책임자 : <?php echo $d['layout']['company_manager'] ?> <br>
사업자등록번호 : <?php echo $d['layout']['company_num'] ?> <span class="split">|</span> 통신판매업신고번호 <?php echo $d['layout']['company_num2'] ?> <br>
주소 : <?php echo $d['layout']['company_addr'] ?><br>
메일 : <?php echo $d['layout']['contact_email'] ?>
| 전화 : <?php echo $d['layout']['contact_tel'] ?>
<?php echo $d['layout']['contact_fax']?'| 팩스 : '.$d['layout']['contact_fax']:'' ?><br>
© <?php echo $d['layout']['company_name']?$d['layout']['company_name']:'company' ?> <?php echo $date['year']?></p>
</div>
<div class="text-right footer-contact">
<strong><?php echo $d['layout']['contact_tel'] ?></strong>
<p><?php echo $d['layout']['contact_hours'] ?></p>
<div class="sns">
<?php if ($d['layout']['sns_youtube']): ?>
<a href="<?php echo $d['layout']['sns_youtube'] ?>" target="_blank">
<img src="<?php echo $g['img_layout']?>/icon/ico_youtube.png" alt="">
</a>
<?php endif; ?>
<?php if ($d['layout']['sns_instagram']): ?>
<a href="<?php echo $d['layout']['sns_instagram'] ?>" target="_blank">
<img src="<?php echo $g['img_layout']?>/icon/ico_instagram.webp" alt="">
</a>
<?php endif; ?>
<?php if ($d['layout']['sns_facebook']): ?>
<a href="<?php echo $d['layout']['sns_facebook'] ?>" target="_blank">
<img src="<?php echo $g['img_layout']?>/icon/ico_facebook.webp" alt="">
</a>
<?php endif; ?>
<?php if ($d['layout']['sns_nblog']): ?>
<a href="<?php echo $d['layout']['sns_nblog'] ?>" target="_blank">
<img src="<?php echo $g['img_layout']?>/icon/ico_nblog.webp" alt="">
</a>
<?php endif; ?>
</div>
</div>
</div>
</div>
<div class="footer-quick">
<div class="<?php echo $d['layout']['footer_container'] ?> px-0">
<div class="d-flex justify-content-between align-items-center">
<ul class="list-inline mb-0">
<li class="list-inline-item">
<a href="<?php echo RW('mod=policy')?>" class="muted-link">이용약관</a>
</li>
<li class="list-inline-item">
<a href="<?php echo RW('mod=privacy')?>" class="muted-link">개인정보취급방침</a>
</li>
<?php if ($d['layout']['footer_link']) getWidget('bs4-default/site/menu/quickmenu/list-inline',array('smenu'=>$d['layout']['footer_link']));?>
</ul>
<!-- 스탠다드 라이센스 없이는 아래 킴스큐 로고를 삭제할 수 없습니다. -->
<div class="text-muted small">
powered by <a href="https://kimsq.com" target="_blank" class="text-reset ml-1"><i class="kf kf-bi-01 text-reset"></i></a>
</div>
<?php if ($d['layout']['footer_family']) getWidget('bs4-default/site/menu/quickmenu/dropdown-joint',array('smenu'=>$d['layout']['footer_family']));?>
</div><!-- /.d-flex -->
</div><!-- /.container -->
</div><!-- /.quick-menu -->
</footer>

View File

@@ -0,0 +1,85 @@
<footer class="footer footer-<?php echo $d['layout']['footer_theme'] ?> mt-auto">
<div class="<?php echo $d['layout']['footer_container'] ?> px-0">
<div class="d-flex justify-content-between align-items-center">
<?php echo getLayoutLogo($d['layout'],'footer') ?>
<div class="<?php echo $d['layout']['footer_logo']?'text-center':'' ?>">
<ul class="list-inline mb-3">
<li class="list-inline-item">
<a href="<?php echo RW('mod=policy')?>" class="muted-link">이용약관</a>
</li>
<li class="list-inline-item">
<a href="<?php echo RW('mod=privacy')?>" class="muted-link">개인정보취급방침</a>
</li>
<?php if ($d['layout']['footer_link']) getWidget('bs4-default/site/menu/quickmenu/list-inline',array('smenu'=>$d['layout']['footer_link']));?>
</ul>
<p>
<?php echo $d['layout']['company_name'] ?> <span class="split">|</span> 대표이사 : <?php echo $d['layout']['company_ceo'] ?> <span class="split">|</span> 개인정보 보호 최고책임자 : <?php echo $d['layout']['company_manager'] ?> <br>
사업자등록번호 : <?php echo $d['layout']['company_num'] ?> <span class="split">|</span> 통신판매업신고번호 <?php echo $d['layout']['company_num2'] ?> <br>
주소 : <?php echo $d['layout']['company_addr'] ?><br>
메일 : <?php echo $d['layout']['contact_email'] ?>
| 전화 : <?php echo $d['layout']['contact_tel'] ?>
<?php echo $d['layout']['contact_fax']?'| 팩스 : '.$d['layout']['contact_fax']:'' ?><br>
<span class="d-block text-muted mt-2">© <?php echo $d['layout']['company_name']?$d['layout']['company_name']:'company' ?> <?php echo $date['year']?></span>
</p>
</div>
<div class="text-right footer-contact">
<div class="sns">
<?php if ($d['layout']['sns_youtube']): ?>
<a href="<?php echo $d['layout']['sns_youtube'] ?>" target="_blank">
<img src="<?php echo $g['img_layout']?>/icon/ico_youtube.png" alt="">
</a>
<?php endif; ?>
<?php if ($d['layout']['sns_instagram']): ?>
<a href="<?php echo $d['layout']['sns_instagram'] ?>" target="_blank">
<img src="<?php echo $g['img_layout']?>/icon/ico_instagram.webp" alt="">
</a>
<?php endif; ?>
<?php if ($d['layout']['sns_facebook']): ?>
<a href="<?php echo $d['layout']['sns_facebook'] ?>" target="_blank">
<img src="<?php echo $g['img_layout']?>/icon/ico_facebook.webp" alt="">
</a>
<?php endif; ?>
<?php if ($d['layout']['sns_nblog']): ?>
<a href="<?php echo $d['layout']['sns_nblog'] ?>" target="_blank">
<img src="<?php echo $g['img_layout']?>/icon/ico_nblog.webp" alt="">
</a>
<?php endif; ?>
</div>
<?php if ($d['layout']['footer_family']): ?>
<!-- 패밀리 사이트 -->
<div class="mt-4">
<?php getWidget('bs4-default/site/menu/quickmenu/dropdown-joint',array('smenu'=>$d['layout']['footer_family']));?>
</div>
<?php endif; ?>
</div>
</div>
</div>
<!-- 스탠다드 라이센스 없이는 아래 킴스큐 로고를 삭제할 수 없습니다. -->
<div class="footer-quick">
<div class="<?php echo $d['layout']['footer_container'] ?> px-0">
<div class="text-center">
<div class="text-muted small">
powered by <a href="https://kimsq.com" target="_blank" class="text-reset ml-1"><i class="kf kf-bi-01 text-reset"></i></a>
</div>
</div><!-- /.d-flex -->
</div><!-- /.container -->
</div><!-- /.quick-menu -->
</footer>

View File

@@ -0,0 +1,44 @@
<footer class="footer footer-<?php echo $d['layout']['footer_theme'] ?> mt-auto border-top-0">
<div class="footer-quick">
<div class="<?php echo $d['layout']['footer_container'] ?> px-0">
<div class="d-flex justify-content-between align-items-center">
<ul class="list-inline mb-0">
<li class="list-inline-item">
<a href="<?php echo RW('mod=policy')?>" class="muted-link">이용약관</a>
</li>
<li class="list-inline-item">
<a href="<?php echo RW('mod=privacy')?>" class="muted-link">개인정보취급방침</a>
</li>
<?php if ($d['layout']['footer_link']) getWidget('bs4-default/site/menu/quickmenu/list-inline',array('smenu'=>$d['layout']['footer_link']));?>
</ul>
<!-- 스탠다드 라이센스 없이는 아래 킴스큐 로고를 삭제할 수 없습니다. -->
<div class="text-muted">
© <?php echo $d['layout']['company_name']?$d['layout']['company_name']:'company' ?> <?php echo $date['year']?>
</div>
<?php if ($d['layout']['footer_family']): ?>
<!-- 패밀리 사이트 -->
<?php getWidget('bs4-default/site/menu/quickmenu/dropdown-joint',array('smenu'=>$d['layout']['footer_family']));?>
<?php endif; ?>
</div><!-- /.d-flex -->
</div><!-- /.container -->
</div><!-- /.quick-menu -->
<!-- 스탠다드 라이센스 없이는 아래 킴스큐 로고를 삭제할 수 없습니다. -->
<div class="footer-quick">
<div class="<?php echo $d['layout']['footer_container'] ?> px-0">
<div class="text-center">
<div class="text-muted small">
powered by <a href="https://kimsq.com" target="_blank" class="text-reset ml-1"><i class="kf kf-bi-01 text-reset"></i></a>
</div>
</div><!-- /.d-flex -->
</div><!-- /.container -->
</div><!-- /.quick-menu -->
</footer>

View File

@@ -0,0 +1,41 @@
<header class="header">
<div class="container-fluid px-0">
<div class="d-flex justify-content-between align-items-center navbar p-0">
<h1 class="my-0 h5 font-weight-normal">
<a class="navbar-brand" href="<?php echo RW(0) ?>"
style="background-image:url(<?php echo $d['layout']['header_logo']?$g['url_var_site'].'/'.$d['layout']['header_logo'].$g['wcache']:''?>);background-size:<?php echo $d['layout']['header_logo_size'] ?>%">
<?php echo !$d['layout']['header_logo']?$d['layout']['header_title'] :'' ?>
</a>
</h1>
<div class="form-inline">
<?php if ($d['layout']['header_search']=='true'):?>
<form action="<?php echo $_HS['rewrite']? RW('m=search'):$g['s'].'/'?>" role="search">
<?php if (!$_HS['rewrite']): ?>
<input type="hidden" name="r" value="<?php echo $r ?>">
<input type="hidden" name="m" value="search">
<?php endif; ?>
<input class="form-control mr-sm-2" type="search" placeholder="통합검색" aria-label="Search" name="q" value="<?php echo $q ?>" autocomplete="off">
</form>
<?php endif?>
<ul class="nav">
<?php if ($my['uid']): ?>
<?php else: ?>
<?php if ($d['layout']['login_type']=='modal'): ?>
<a class="nav-link" href="#modal-login" data-toggle="modal">로그인</a>
<?php else: ?>
<a class="nav-link" href="<?php echo RW('mod=login')?>">로그인</a>
<?php endif; ?>
<?php endif; ?>
</ul>
</div>
</div><!-- /.d-flex -->
</div><!-- /.container -->
</header>

View File

@@ -0,0 +1,107 @@
<header class="header">
<div class="<?php echo $d['layout']['header_container'] ?> px-0">
<div class="d-flex align-items-center navbar p-0">
<?php echo getLayoutLogo($d['layout'],'header')?>
<div class="inner mr-auto flex-fill">
<ul class="nav" data-role="menu">
<?php if ($d['layout']['header_allcat']=='true'): ?>
<li class="nav-item">
<a class="nav-link" href="/c/1">
<i class="material-icons align-text-bottom">menu</i>
전체 카테고리
</a>
</li>
<?php endif; ?>
<?php getWidget('bs4-default/site/menu/navbar/'.$d['layout']['header_menu'],array('smenu'=>'0','limit'=>$d['layout']['header_menu_limit'],'dropdown'=>'1',));?>
</ul>
<?php if ($d['layout']['header_search']=='button'):?>
<form class="form-inline" action="<?php echo $_HS['rewrite']? RW('m=search'):$g['s'].'/'?>" role="search" data-role="searchbox">
<?php if (!$_HS['rewrite']): ?>
<input type="hidden" name="r" value="<?php echo $r ?>">
<input type="hidden" name="m" value="search">
<?php endif; ?>
<div class="input-group input-group-lg dropdown border-0 w-100">
<input type="text" name="q" class="form-control bg-white border-0 rounded-0" value="<?php echo $q ?>" data-plugin="autocomplete" autocomplete="off" required="" placeholder="검색어를 입력해주세요.">
</div>
</form>
<?php endif?>
</div>
<div class="form-inline">
<?php if ($d['layout']['header_search']=='input'):?>
<form action="<?php echo $_HS['rewrite']? RW('m=search'):$g['s'].'/'?>" role="search">
<?php if (!$_HS['rewrite']): ?>
<input type="hidden" name="r" value="<?php echo $r ?>">
<input type="hidden" name="m" value="search">
<?php endif; ?>
<input class="form-control mr-sm-2" type="search" placeholder="통합검색" aria-label="Search" name="q" value="<?php echo $q ?>" autocomplete="off">
</form>
<?php elseif ($d['layout']['header_search']=='button'): ?>
<button type="button" class="btn btn-link text-muted" data-toggle="searchbox">
<i class="fa fa-search fa-lg" aria-hidden="true"></i>
</button>
<?php endif?>
<?php if ($d['layout']['header_login']=='true'): ?>
<ul class="nav">
<?php if ($my['uid']): ?>
<div class="dropdown">
<button class="nav-link btn btn-link dropdown-toggle" type="button" id="dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<?php echo $my['email'] ?>
</button>
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="dropdownMenuButton">
<span class="dropdown-menu-arrow"></span>
<h6 class="dropdown-header"><?php echo $my['nic'] ?> 님</h6>
<?php if ($d['post']['writeperm']): ?>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="<?php echo RW('m=post&mod=write')?>">
새 포스트
</a>
<?php endif; ?>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="<?php echo RW('mod=dashboard')?>">
대시보드
</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="<?php echo getProfileLink($my['uid'])?>">
프로필
</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="<?php echo RW('mod=settings')?>">
설정
</a>
<button class="dropdown-item" type="button" data-act="logout" role="button">
로그아웃
</button>
<?php if ($my['admin']): ?>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="/admin" target="_top">관리자모드</a>
<?php endif; ?>
</div>
</div>
<?php else: ?>
<?php if ($d['layout']['login_type']=='modal'): ?>
<a class="nav-link" href="#modal-login" data-toggle="modal">로그인</a>
<?php else: ?>
<a class="nav-link" href="<?php echo RW('mod=login')?>">로그인</a>
<?php endif; ?>
<?php endif; ?>
</ul>
<?php endif; ?>
</div>
</div><!-- /.d-flex -->
</div><!-- /.container -->
</header>

View File

@@ -0,0 +1,123 @@
<header class="header">
<div class="border-bottom position-relative">
<div class="<?php echo $d['layout']['header_container'] ?> px-0">
<div class="d-flex justify-content-between align-items-center py-1">
<div class=""></div>
<div class="">
<nav class="nav top-nav">
<?php if ($d['layout']['header_login']=='true'): ?>
<?php if (!$my['uid']): ?>
<?php if ($d['layout']['login_type']=='modal'): ?>
<a class="nav-link" href="#modal-login" data-toggle="modal">로그인</a>
<?php else: ?>
<a class="nav-link" href="<?php echo RW('mod=login')?>">로그인</a>
<?php endif; ?>
<a class="nav-link" href="#modal-join" data-toggle="modal" data-backdrop="static">회원가입</a>
<?php else: ?>
<div class="dropdown">
<button class="nav-link btn btn-link dropdown-toggle" type="button" id="dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<?php echo $my['email'] ?>
</button>
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="dropdownMenuButton">
<span class="dropdown-menu-arrow"></span>
<h6 class="dropdown-header"><?php echo $my['nic'] ?> 님</h6>
<?php if ($d['post']['writeperm']): ?>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="<?php echo RW('m=post&mod=write')?>">
새 포스트
</a>
<?php endif; ?>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="<?php echo RW('mod=dashboard')?>">
대시보드
</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="<?php echo getProfileLink($my['uid'])?>">
프로필
</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="<?php echo RW('mod=settings')?>">
설정
</a>
<button class="dropdown-item" type="button" data-act="logout" role="button">
로그아웃
</button>
<?php if ($my['admin']): ?>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="/admin" target="_top">관리자모드</a>
<?php endif; ?>
</div>
</div>
<?php endif; ?>
<?php endif; ?>
<a class="nav-link" href="<?php echo RW('mod=cscenter')?>">고객센터</a>
</nav>
</div>
</div>
</div>
</div>
<div class="<?php echo $d['layout']['header_container'] ?> px-0">
<div class="d-flex align-items-center navbar p-0">
<?php echo getLayoutLogo($d['layout'],'header')?>
<div class="inner mr-auto flex-fill">
<ul class="nav" data-role="menu">
<?php if ($d['layout']['header_allcat']=='true'): ?>
<li class="nav-item">
<a class="nav-link" href="/c/1">
<i class="material-icons align-text-bottom">menu</i>
전체 카테고리
</a>
</li>
<?php endif; ?>
<?php getWidget('bs4-default/site/menu/navbar/'.$d['layout']['header_menu'],array('smenu'=>'0','limit'=>$d['layout']['header_menu_limit'],'dropdown'=>'1',));?>
</ul>
<?php if ($d['layout']['header_search']=='button'):?>
<form class="form-inline" action="<?php echo $_HS['rewrite']? RW('m=search'):$g['s'].'/'?>" role="search" data-role="searchbox">
<?php if (!$_HS['rewrite']): ?>
<input type="hidden" name="r" value="<?php echo $r ?>">
<input type="hidden" name="m" value="search">
<?php endif; ?>
<div class="input-group input-group-lg dropdown border-0 w-100">
<input type="text" name="q" class="form-control bg-white border-0 rounded-0" value="<?php echo $q ?>" data-plugin="autocomplete" autocomplete="off" required="" placeholder="검색어를 입력해주세요.">
</div>
</form>
<?php endif?>
</div>
<div class="form-inline">
<?php if ($d['layout']['header_search']=='input'):?>
<form action="<?php echo $_HS['rewrite']? RW('m=search'):$g['s'].'/'?>" role="search">
<?php if (!$_HS['rewrite']): ?>
<input type="hidden" name="r" value="<?php echo $r ?>">
<input type="hidden" name="m" value="search">
<?php endif; ?>
<input class="form-control mr-sm-2" type="search" placeholder="통합검색" aria-label="Search" name="q" value="<?php echo $q ?>" autocomplete="off">
</form>
<?php elseif ($d['layout']['header_search']=='button'): ?>
<button type="button" class="btn btn-link text-muted" data-toggle="searchbox">
<i class="fa fa-search fa-lg" aria-hidden="true"></i>
</button>
<?php endif?>
</div>
</div><!-- /.d-flex -->
</div><!-- /.container -->
</header>

View File

@@ -0,0 +1,112 @@
<header class="header">
<div class="<?php echo $d['layout']['header_container'] ?> px-0">
<div class="d-flex justify-content-between align-items-center pt-1">
<div class=""></div>
<div class="">
<nav class="nav top-nav">
<?php if (!$my['uid']): ?>
<?php if ($d['layout']['login_type']=='modal'): ?>
<a class="nav-link" href="#modal-login" data-toggle="modal">로그인</a>
<?php else: ?>
<a class="nav-link" href="<?php echo RW('mod=login')?>">로그인</a>
<?php endif; ?>
<a class="nav-link" href="#modal-join" data-toggle="modal" data-backdrop="static">회원가입</a>
<?php else: ?>
<div class="dropdown">
<button class="nav-link btn btn-link dropdown-toggle" type="button" id="dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<?php echo $my['email'] ?>
</button>
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="dropdownMenuButton">
<span class="dropdown-menu-arrow"></span>
<h6 class="dropdown-header"><?php echo $my['nic'] ?> 님</h6>
<?php if ($d['post']['writeperm']): ?>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="<?php echo RW('m=post&mod=write')?>">
새 포스트
</a>
<?php endif; ?>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="<?php echo RW('mod=dashboard')?>">
대시보드
</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="<?php echo getProfileLink($my['uid'])?>">
프로필
</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="<?php echo RW('mod=settings')?>">
설정
</a>
<button class="dropdown-item" type="button" data-act="logout" role="button">
로그아웃
</button>
<?php if ($my['admin']): ?>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="/admin" target="_top">관리자모드</a>
<?php endif; ?>
</div>
</div>
<?php endif; ?>
<a class="nav-link" href="<?php echo RW('mod=cscenter')?>">고객센터</a>
</nav>
</div>
</div>
</div>
<div class="<?php echo $d['layout']['header_container'] ?> px-0">
<div class="d-flex justify-content-start align-items-center navbar p-0">
<?php echo getLayoutLogo($d['layout'],'header')?>
<div class="ml-3" >
<form class="form-inline" action="<?php echo $_HS['rewrite']? RW('m=search'):$g['s'].'/'?>" role="search" data-role="searchform">
<?php if (!$_HS['rewrite']): ?>
<input type="hidden" name="r" value="<?php echo $r ?>">
<input type="hidden" name="m" value="search">
<?php endif; ?>
<div class="input-group input-group-lg dropdown shadow-sm">
<input type="search" name="q" class="form-control bg-white border-0 rounded-0" value="<?php echo $q ?>" data-plugin="autocomplete" autocomplete="off" required="">
<div class="input-group-append">
<button class="btn btn-white border-0 rounded-0" type="submit"><i class="fa fa-search"></i></button>
</div>
</div>
</form>
</div>
<div class="ml-auto">
<a href="https://pf.kakao.com/_XrQxkM" taget="_blank">
<img src="https://t1.daumcdn.net/daumtop_deco/banner/corona19_G.png" width="260" height="84" class="img_thumb" alt="광고 신종코로나바이러스감염증 예방수칙">
</a>
</div>
</div><!-- /.d-flex -->
</div><!-- /.container -->
<section class="border-top" style="margin-left:-15px;margin-right:-15px">
<div class="inner">
<div class="<?php echo $d['layout']['header_container'] ?> px-0">
<ul class="nav nav-fill" data-role="menu">
<?php if ($d['layout']['header_allcat']=='true'): ?>
<li class="nav-item">
<a class="nav-link" href="/c/1">
<i class="material-icons align-text-bottom">menu</i>
전체 카테고리
</a>
</li>
<?php endif; ?>
<?php getWidget('bs4-default/site/menu/navbar/'.$d['layout']['header_menu'],array('smenu'=>'0','limit'=>$d['layout']['header_menu_limit'],'dropdown'=>'1',));?>
</ul>
</div>
</div>
</section>
</header>

View File

@@ -0,0 +1,57 @@
<?php
// seo 데이타 -- 전송되는 타이틀 추출
$_MSEO = getDbData($table['s_seo'],'rel=1 and parent='.$_HM['uid'],'*');
$_PSEO = getDbData($table['s_seo'],'rel=2 and parent='.$_HP['uid'],'*');
$_WTIT=strip_tags($g['meta_tit']);
//$_link_domain = 'http'.($_SERVER['HTTPS']=='on'?'s':'').'://';
//$_link_url = $_link_domain.$_SERVER['REQUEST_URI']; // URL
$_link_url=$g['url_root'].$_SERVER['REQUEST_URI'];
?>
<ul class="list-inline mb-3">
<li data-toggle="tooltip" title="페이스북" class="list-inline-item">
<a href="" role="button">
<img src="<?php echo $g['img_core']?>/sns/facebook.png" alt="페이스북공유" class="rounded-circle" width="48">
</a>
</li>
<li data-toggle="tooltip" title="카카오스토리" class="list-inline-item">
<a href="" role="button">
<img src="<?php echo $g['img_core']?>/sns/kakaostory.png" alt="카카오스토리" class="rounded-circle" width="48">
</a>
</li>
<li data-toggle="tooltip" title="네이버" class="list-inline-item">
<a href="" role="button">
<img src="<?php echo $g['img_core']?>/sns/naver.png" alt="네이버" class="rounded-circle" width="48">
</a>
</li>
<li data-toggle="tooltip" title="트위터" class="list-inline-item">
<a href="" role="button">
<img src="<?php echo $g['img_core']?>/sns/twitter.png" alt="트위터" class="rounded-circle" width="48">
</a>
</li>
<li data-toggle="tooltip" title="메일보내기" class="list-inline-item">
<a href="mailto:<?php if($my['uid']):?><?php echo $my['email']?><?php endif?>?subject=경기방송%20기사공유-<?php echo $_WTIT?>&body=<?php echo $_link_url?>">
<img src="<?php echo $g['img_core']?>/sns/mail.png" alt="메일" class="rounded-circle" width="48">
</a>
</li>
</ul>
// sns 이벤트
function snsWin(sns)
{
var snsset = new Array();
var enc_tit = "<?php echo urlencode($_HS['title'])?>";
var enc_sbj = "<?php echo urlencode($_WTIT)?>";
var enc_url = "<?php echo urlencode($_link_url)?>";
var enc_tag = "<?php echo urlencode(str_replace(',',' ',$R['tag']))?>";
snsset['t'] = 'https://twitter.com/intent/tweet?url=' + enc_url + '&text=' + enc_sbj;
snsset['f'] = 'http://www.facebook.com/sharer.php?u=' + enc_url;
snsset['n'] = 'http://share.naver.com/web/shareView.nhn?url=' + enc_url + '&title=' + enc_sbj;
snsset['ks'] = 'https://story.kakao.com/share?url=' + enc_url + '&title=' + enc_sbj;
window.open(snsset[sns]);
}

View File

@@ -0,0 +1,12 @@
<!-- 알림수신을 위한 권한요청 (권한이 설정되지 않은 경우만 표시) -->
<div class="alert alert-light mb-0 rounded-0" role="alert" id="permission_alert" style="display: none">
<div class="d-flex justify-content-between">
<p class="f13 mb-0">
<i class="fa fa-bell fa-fw text-primary" aria-hidden="true"></i> 데스크탑 푸시알림을 수신하면 공지사항은 물론 회원님이 게시글에 대한 피드백 또는 내가 언급된 글에 대한 정보들을 실시간으로 받아보실 있습니다.
<a href="#" class="alert-link" onclick="requestPermission()"><u>권한 설정</u></a>
</p>
<button type="button" class="close" data-dismiss="alert" aria-label="Close" title="나중에 하기">
<span aria-hidden="true">&times;</span>
</button>
</div>
</div>

View File

@@ -0,0 +1,93 @@
<?php
$levelnum = getDbData($table['s_mbrlevel'],'gid=1','*');
$levelname= getDbData($table['s_mbrlevel'],'uid='.$my['level'],'*');
?>
<section class="pt-4 px-3">
<div class="text-reset text-center">
<a href="<?php echo getProfileLink($my['uid'])?>" class="d-inline-block" target="_blank">
<img src="<?php echo getAvatarSrc($my['uid'],'60') ?>" width="60" height="60" alt="" class="rounded-circle border">
</a>
<span class="d-block f16 mt-2">
<?php echo $my['nic'] ?>
</span>
</div>
<ul class="nav flex-column mt-3 py-3 border-top">
<li class="nav-item">
<a class="nav-link d-flex justify-content-between py-1 px-2 f13 text-reset" href="<?php echo RW('mod=dashboard&page=point')?>">
<span>포인트</span>
<span>
<strong class="text-primary"><?php echo number_format($my['point'])?> </strong> P
<i class="fa fa-angle-right text-muted ml-2" aria-hidden="true"></i>
</span>
</a>
</li>
<li class="nav-item">
<a class="nav-link d-flex justify-content-between py-1 px-2 f13 text-reset" href="<?php echo RW('mod=dashboard&page=point')?>">
<span>등급</span>
<span>
<?php echo $levelname['name']?>
<small>(<?php echo $my['level']?>/<?php echo $levelnum['uid']?>)</small>
<i class="fa fa-angle-right text-muted ml-2" aria-hidden="true"></i>
</span>
</a>
</li>
</ul>
</section>
<ul class="nav nav-menu flex-column border-bottom">
<li class="nav-item<?php echo $page=='main'?' active':'' ?>">
<a class="nav-link" href="<?php echo RW('mod=dashboard')?>">대시보드</a>
</li>
<li class="nav-item<?php echo $page=='feed' || $page=='follower' ?' active':'' ?>">
<a class="nav-link d-flex justify-content-between align-items-center" href="<?php echo RW('mod=dashboard&page=feed')?>">
피드 <i class="fa fa-plus mr-4" aria-hidden="true"></i>
</a>
<ul class="nav flex-column">
<li class="nav-item<?php echo $page=='feed'?' active':'' ?>">
<a class="nav-link" href="<?php echo RW('mod=dashboard&page=feed')?>">피드</a>
</li>
<li class="nav-item<?php echo $page=='follower'?' active':'' ?>">
<a class="nav-link" href="<?php echo RW('mod=dashboard&page=follower')?>">구독자 관리</a>
</li>
</ul>
</li>
<?php if ($d['post']['writeperm']): ?>
<li class="nav-item<?php echo $page=='post'|| $page=='list' || $page=='list_view'?' active':'' ?>">
<a class="nav-link d-flex justify-content-between align-items-center" href="<?php echo RW('mod=dashboard&page=post')?>">
포스트 관리 <i class="fa fa-plus mr-4" aria-hidden="true"></i>
</a>
<ul class="nav flex-column">
<li class="nav-item<?php echo $page=='post'?' active':'' ?>">
<a class="nav-link" href="<?php echo RW('mod=dashboard&page=post')?>">포스트 관리</a>
</li>
<li class="nav-item<?php echo $page=='list' || $page=='list_view'?' active':'' ?>">
<a class="nav-link" href="<?php echo RW('mod=dashboard&page=list')?>">리스트 관리</a>
</li>
</ul>
</li>
<?php else: ?>
<li class="nav-item<?php echo $page=='list' || $page=='list_view'?' active':'' ?>">
<a class="nav-link" href="<?php echo RW('mod=dashboard&page=list')?>">리스트 관리</a>
</li>
<?php endif; ?>
<li class="nav-item<?php echo $page=='noti'?' active':'' ?>">
<a class="nav-link" href="<?php echo RW('mod=dashboard&page=noti')?>">알림내역</a>
</li>
<li class="nav-item<?php echo $page=='saved'?' active':'' ?>">
<a class="nav-link" href="<?php echo RW('mod=dashboard&page=saved')?>">저장내역</a>
</li>
<li class="nav-item<?php echo $page=='point'?' active':'' ?>">
<a class="nav-link" href="<?php echo RW('mod=dashboard&page=point')?>">포인트내역</a>
</li>
<li class="nav-item d-none<?php echo $page=='order'?' active':'' ?>">
<a class="nav-link" href="<?php echo RW('mod=dashboard&page=order')?>">구매내역 <span class="badge badge-pill badge-light">준비중</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="<?php echo RW('mod=settings')?>">설정</a>
</li>
</ul>

View File

@@ -0,0 +1,6 @@
<div class="">
<h3 class="tit_subject"><?php echo $_HM['name'] ?></h3>
<?php if ($_HM['addinfo']): ?>
<p class="tit_desc"><?php echo $_HM['addinfo'] ?></p>
<?php endif; ?>
</div>

View File

@@ -0,0 +1,6 @@
<div class="border-bottom mb-4">
<h3 class="tit_subject pb-2"><?php echo $_HM['name'] ?></h3>
<?php if ($_HM['addinfo']): ?>
<p class="tit_desc"><?php echo $_HM['addinfo'] ?></p>
<?php endif; ?>
</div>

View File

@@ -0,0 +1,34 @@
<?php $_MENUS2=getDbSelect($table['s_menu'],'site='.$s.' and parent='.$_FHM['uid'].' and hidden=0 and depth=2 order by gid asc','*')?>
<?php $_MENUSN=db_num_rows($_MENUS2)?>
<?php if($_MENUN || $_CA[0]):?>
<?php if ($d['layout']['sidebar_titlebar']=='false'): ?>
<h3 class="page-nav-title bg-secondary text-white"><?php echo $_FHM['name'] ?></h3>
<?php endif; ?>
<ul class="nav flex-column">
<?php $_i=0;while($_M2=db_fetch_array($_MENUS2)):$_i++?>
<li class="nav-item<?php if($_MENUSN==$_i):?> _last<?php endif?>">
<a class="nav-link<?php if($_M2['id']==$_CA[1]):?> active<?php endif?>" href="<?php echo RW('c='.$_CA[0].'/'.$_M2['id'])?>" target="<?php echo $_M2['target']?>">
<?php echo $_M2['name']?>
</a>
<?php if(($_HM['uid']==$_M2['uid']||$_HM['parent']==$_M2['uid'])&&$_M2['is_child']):?>
<ul class="nav flex-column ml-2">
<?php $_MENUS3=getDbSelect($table['s_menu'],'site='.$s.' and parent='.$_M2['uid'].' and hidden=0 and depth=3 order by gid asc','*')?>
<?php while($_M3=db_fetch_array($_MENUS3)):?>
<li class="nav-item">
<a class="nav-link<?php if($_M3['uid']==$_HM['uid']):?> active<?php endif?>" href="<?php echo RW('c='.$_CA[0].'/'.$_CA[1].'/'.$_M3['id'])?>" target="<?php echo $_M3['target']?>">
<?php echo $_M3['name']?>
</a>
</li>
<?php endwhile?>
</ul>
<?php endif?>
</li>
<?php endwhile?>
<?php if(!$_MENUSN):?>
<li class="text-muted text-center p-5 border">서브메뉴가 없습니다.</li>
<?php endif?>
</ul>
<?php endif?>

View File

@@ -0,0 +1,12 @@
<section class="bg-light">
<div class="<?php echo $d['layout']['main_container'] ?> px-0">
<div class="py-5">
<h3 class="tit_subject"><?php echo $_FHM['name'] ?></h3>
<?php if ($_FHM['addinfo']): ?>
<p class="tit_desc"><?php echo $_FHM['addinfo'] ?></p>
<?php endif; ?>
</div>
</div>
</section>

View File

@@ -0,0 +1,13 @@
<section class="bg-light">
<div class="<?php echo $d['layout']['main_container'] ?> px-0">
<div class="py-5">
<h3 class="tit_subject"><?php echo $_HM['name'] ?></h3>
<?php if ($_HM['addinfo']): ?>
<p class="tit_desc"><?php echo $_HM['addinfo'] ?></p>
<?php endif; ?>
</div>
</div>
</section>