first
This commit is contained in:
19
layouts/bs4-starter/_includes/_import.control.php
Normal file
19
layouts/bs4-starter/_includes/_import.control.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<?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';
|
||||
|
||||
if ($layoutPage) {
|
||||
$g['main'] = $g['path_layout'].$d['site_layout'].'/_pages/'.$layoutPage.'.php';
|
||||
}
|
||||
?>
|
||||
53
layouts/bs4-starter/_includes/_import.foot.php
Normal file
53
layouts/bs4-starter/_includes/_import.foot.php
Normal 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'): ?>
|
||||
<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"></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?>
|
||||
66
layouts/bs4-starter/_includes/_import.head.php
Normal file
66
layouts/bs4-starter/_includes/_import.head.php
Normal file
@@ -0,0 +1,66 @@
|
||||
<meta charset="utf-8">
|
||||
|
||||
<!-- 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']?>
|
||||
|
||||
<!-- 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')?>
|
||||
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
|
||||
|
||||
<!-- 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['url_layout']?>/_css/article.css" 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')?>
|
||||
58
layouts/bs4-starter/_includes/_linkshare.php
Normal file
58
layouts/bs4-starter/_includes/_linkshare.php
Normal 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>
|
||||
349
layouts/bs4-starter/_includes/component.php
Normal file
349
layouts/bs4-starter/_includes/component.php
Normal 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">×</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">×</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>
|
||||
41
layouts/bs4-starter/_includes/footer.php
Normal file
41
layouts/bs4-starter/_includes/footer.php
Normal file
@@ -0,0 +1,41 @@
|
||||
<footer class="container my-5 border-top py-4">
|
||||
|
||||
<div class="d-flex justify-content-between">
|
||||
<span class="text-muted">© <?php echo $d['layout']['company_name']?$d['layout']['company_name']:'company' ?> <?php echo $date['year']?></span>
|
||||
|
||||
<ul class="list-inline">
|
||||
<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 ($my['uid']): ?>
|
||||
<li class="list-inline-item">
|
||||
<a href="#" data-act="logout" class="muted-link" title="">
|
||||
로그아웃
|
||||
</a>
|
||||
</li>
|
||||
<?php else: ?>
|
||||
<li class="list-inline-item">
|
||||
<a href="<?php echo RW('mod=login')?>" class="muted-link" title="페이지형 로그인">
|
||||
로그인<span class="badge badge-pill badge-light align-middle">P</span>
|
||||
</a>
|
||||
</li>
|
||||
<li class="list-inline-item">
|
||||
<a href="#modal-login" data-toggle="modal" class="muted-link" title="모달형 로그인">
|
||||
로그인<span class="badge badge-pill badge-light align-middle">M</span>
|
||||
</a>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<!-- 스탠다드 라이센스 없이는 아래 킴스큐 로고를 삭제할 수 없습니다. -->
|
||||
<div class="text-center 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>
|
||||
|
||||
</footer>
|
||||
210
layouts/bs4-starter/_includes/header.php
Normal file
210
layouts/bs4-starter/_includes/header.php
Normal file
@@ -0,0 +1,210 @@
|
||||
<!-- 알림수신을 위한 권한요청 (권한이 설정되지 않은 경우만 표시) -->
|
||||
<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">×</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<nav class="navbar navbar-expand navbar-dark bg-dark mb-3">
|
||||
<div class="container">
|
||||
<a class="navbar-brand" href="<?php echo RW(0) ?>">
|
||||
<?php echo $d['layout']['header_file']?'<img src="'.$g['url_layout'].'/_var/'.$d['layout']['header_file'].'">':stripslashes($d['layout']['header_title'])?>
|
||||
</a>
|
||||
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarsDefault" aria-controls="navbarsDefault" aria-expanded="false" aria-label="Toggle navigation">
|
||||
<span class="navbar-toggler-icon"></span>
|
||||
</button>
|
||||
|
||||
<div class="collapse navbar-collapse" id="navbarsDefault">
|
||||
<ul class="navbar-nav mr-auto">
|
||||
<!-- 관리자모드 > 위젯코드 추출기를 활용하세요. -->
|
||||
<?php getWidget('menu/bs4-navbar-nav',array('smenu'=>'0','limit'=>'2','link'=>'link','dropdown'=>'1',))?>
|
||||
</ul>
|
||||
|
||||
<?php if($d['layout']['header_search']=='true'):?>
|
||||
<form class="form-inline my-2 my-lg-0 mr-3" 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?>
|
||||
|
||||
<?php if($d['layout']['header_login']=='true'):?>
|
||||
<ul class="navbar-nav">
|
||||
<?php if ($my['uid']): ?>
|
||||
<li class="nav-item dropdown js-tooltip mr-2" title="알림" id="navbarPopoverNoti">
|
||||
<a class="nav-link notification-indicator" href="/" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
||||
<span class="badge badge-danger noti-status" data-role="noti-status"><?php echo $my['num_notice']==0?'':$my['num_notice']?></span>
|
||||
<i class="fa fa-bell" aria-hidden="true"></i>
|
||||
</a>
|
||||
<div class="dropdown-menu dropdown-menu-right py-0" >
|
||||
|
||||
<h6 class="dropdown-header d-flex justify-content-between align-items-center py-2 f13">
|
||||
<strong>새 알림</strong>
|
||||
<ul class="list-inline small">
|
||||
<li class="list-inline-item">
|
||||
<span role="presentation" aria-hidden="true"> · </span>
|
||||
<a href="/?r=<?php echo $r ?>&mod=settings&page=noti" class="muted-link">설정</a>
|
||||
</li>
|
||||
</ul>
|
||||
</h6>
|
||||
|
||||
<div class="list-group list-group-flush" data-role="noti-list" style="max-height: 435px;overflow: auto;">
|
||||
<!-- 드롭다운이 열릴때, 여기에 알림정보를 받아옴 -->
|
||||
</div><!-- /.list-group -->
|
||||
|
||||
<a class="btn btn-block btn-link muted-link f13 py-2 border-top" href="<?php echo RW('mod=noti')?>">모두보기</a>
|
||||
|
||||
</div><!-- /.dropdown-menu -->
|
||||
</li>
|
||||
<li class="nav-item dropdown">
|
||||
<a class="nav-link dropdown-toggle" href="" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" data-role="tooltip" title="프로필보기 및 회원계정관리">
|
||||
<img src="<?php echo getAvatarSrc($my['uid'],'20') ?>" width="20" height="20" alt="" class="rounded d-inline-block align-top">
|
||||
<?php echo $my['nic'] ?>
|
||||
</a>
|
||||
<div class="dropdown-menu dropdown-menu-right">
|
||||
<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="<?php echo $g['s'].'/?r='.$r.'&layoutPage=settings' ?>">레이아웃 편집</a>
|
||||
<a class="dropdown-item" href="<?php echo $g['s'].'/?r='.$r.'&layoutPage=settings&type=mainedit' ?>">메인 꾸미기</a>
|
||||
<div class="dropdown-divider"></div>
|
||||
<a class="dropdown-item" href="/admin" target="_top">관리자모드</a>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</li>
|
||||
<?php else: ?>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="#modal-join" data-toggle="modal" data-backdrop="static">회원가입</a>
|
||||
</li>
|
||||
<li class="nav-item position-relative" id="navbarPopoverLogin">
|
||||
<a class="nav-link dropdown-toggle" href="#" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" title="드롭다운형 로그인">
|
||||
로그인
|
||||
</a>
|
||||
<div class="dropdown-menu dropdown-menu-right">
|
||||
|
||||
<?php if ($d['member']['login_emailid']): ?>
|
||||
<form class="px-4 py-3" id="popover-loginform" action="<?php echo $g['s']?>/" method="post" style="width:250px">
|
||||
<input type="hidden" name="r" value="<?php echo $r?>">
|
||||
<input type="hidden" name="a" value="login">
|
||||
<input type="hidden" name="form" value="">
|
||||
|
||||
<div class="form-group position-relative">
|
||||
<label for="">이메일<?php echo $d['member']['join_byPhone']?' 또는 휴대폰 번호':'' ?></label>
|
||||
<input type="text" class="form-control" name="id" placeholder="" tabindex="1" autocorrect="off" autocapitalize="off" required tabindex="1">
|
||||
<div class="invalid-tooltip" data-role="idErrorBlock"></div>
|
||||
</div>
|
||||
<div class="form-group position-relative">
|
||||
<label for="">패스워드</label>
|
||||
<input type="password" class="form-control" name="pw" tabindex="2" required tabindex="2">
|
||||
<div class="invalid-tooltip" data-role="passwordErrorBlock"></div>
|
||||
</div>
|
||||
|
||||
<?php if ($d['member']['login_cookie']): ?>
|
||||
<div class="custom-control custom-checkbox" data-toggle="collapse" data-target="#popover-collapsealert">
|
||||
<input type="checkbox" class="custom-control-input" id="popover-loginCookie" name="login_cookie" value="checked">
|
||||
<label class="custom-control-label" for="popover-loginCookie">로그인 상태 유지</label>
|
||||
</div>
|
||||
<div class="collapse" id="popover-collapsealert">
|
||||
<div class="alert alert-light border f12 mt-3">
|
||||
개인정보 보호를 위해, 개인 PC에서만 사용해 주세요.
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<button type="submit" class="btn btn-primary btn-block mt-2" data-role="submit" tabindex="3">
|
||||
<span class="not-loading">로그인</span>
|
||||
<span class="is-loading"><i class="fa fa-spinner fa-lg fa-spin fa-fw"></i> 로그인중 ...</span>
|
||||
</button>
|
||||
</form>
|
||||
|
||||
<div class="dropdown-divider"></div>
|
||||
<a class="dropdown-item" href="#modal-join" data-toggle="modal" data-backdrop="static">회원가입</a>
|
||||
<a class="dropdown-item" href="#modal-pwReset" data-toggle="modal" data-backdrop="static">비밀번호를 잊으셨나요?</a>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($d['member']['login_emailid'] && $d['member']['login_social']): ?>
|
||||
<span class="section-divider"><span>또는</span></span>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($d['member']['login_social']): ?>
|
||||
<div class="px-2 mt-2">
|
||||
|
||||
<?php if ($d['connect']['use_k']): ?>
|
||||
<button type="button" class="btn btn-block btn-social btn-kakao" data-connect="kakao" role="button">
|
||||
<span></span>
|
||||
카카오톡으로 로그인
|
||||
</button>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($d['connect']['use_n']): ?>
|
||||
<button type="button" class="btn btn-block btn-social btn-naver" data-connect="naver" role="button">
|
||||
<span></span>
|
||||
네이버로 로그인
|
||||
</button>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($d['connect']['use_g']): ?>
|
||||
<button type="button" class="btn btn-block btn-social btn-google" data-connect="google" role="button">
|
||||
<span class="fa fa-google"></span>
|
||||
구글로 로그인
|
||||
</button>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($d['connect']['use_f']): ?>
|
||||
<button type="button" class="btn btn-block btn-social btn-facebook" data-connect="facebook" role="button">
|
||||
<span class="fa fa-facebook"></span>
|
||||
페이스북으로 로그인
|
||||
</button>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($d['connect']['use_i']): ?>
|
||||
<button type="button" class="btn btn-block btn-social btn-instagram" data-connect="instagram" role="button">
|
||||
<span class="fa fa-instagram"></span>
|
||||
인스타그램으로 로그인
|
||||
</button>
|
||||
<?php endif; ?>
|
||||
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<?php endif; ?>
|
||||
</ul>
|
||||
<?php endif?>
|
||||
</div>
|
||||
</div><!-- /.container -->
|
||||
</nav>
|
||||
57
layouts/bs4-starter/_includes/linkshare.php
Normal file
57
layouts/bs4-starter/_includes/linkshare.php
Normal 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]);
|
||||
}
|
||||
14
layouts/bs4-starter/_includes/settings-nav.php
Normal file
14
layouts/bs4-starter/_includes/settings-nav.php
Normal file
@@ -0,0 +1,14 @@
|
||||
<ul class="nav nav-tabs mb-4">
|
||||
<li class="nav-item">
|
||||
<a class="nav-link rounded-0<?php echo $layoutPage=='settings' && !$type?' active':''?>"
|
||||
href="<?php echo $g['s'].'/?r='.$r.'&layoutPage=settings'?>">
|
||||
레이아웃 편집
|
||||
</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link rounded-0<?php echo $layoutPage=='settings' && $type?' active':''?>"
|
||||
href="<?php echo $g['s'].'/?r='.$r.'&layoutPage=settings&type=mainedit'?>">
|
||||
메인 꾸미기
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
93
layouts/bs4-starter/_includes/sidebar-dashboard.php
Normal file
93
layouts/bs4-starter/_includes/sidebar-dashboard.php
Normal 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>
|
||||
32
layouts/bs4-starter/_includes/subnav.php
Normal file
32
layouts/bs4-starter/_includes/subnav.php
Normal file
@@ -0,0 +1,32 @@
|
||||
<?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]):?>
|
||||
|
||||
<h3><?php echo $_FHM['name'] ?></h3>
|
||||
|
||||
<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 small bg-light">서브메뉴가 없습니다.</li>
|
||||
<?php endif?>
|
||||
</ul>
|
||||
|
||||
<?php endif?>
|
||||
Reference in New Issue
Block a user