모바일 수정중
This commit is contained in:
1 parent
05a474714b
commit
08bbdb090a
4 files changed
+122
-102
No files matched your search
+15
-20
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
/* 초기화 */
|
/* 초기화 */
|
||||||
html {overflow-y:scroll;height:100%;min-width:320px}
|
html {overflow-y:scroll;height:100%;min-width:320px}
|
||||||
body {margin:0;padding:0;font-size:0.75em;background:#f1f1f1;height:100%}
|
body {margin:0;padding:0;font-size:0.75em;background:#e6e6e6;height:100%}
|
||||||
html, h1, h2, h3, h4, h5, h6, form, fieldset, img {margin:0;padding:0;border:0}
|
html, h1, h2, h3, h4, h5, h6, form, fieldset, img {margin:0;padding:0;border:0}
|
||||||
h1, h2, h3, h4, h5, h6 {font-size:1em}
|
h1, h2, h3, h4, h5, h6 {font-size:1em}
|
||||||
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {display:block}
|
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {display:block}
|
||||||
@@ -35,13 +35,13 @@ ul,li,dl,dt,dd{list-style:none;padding:0;margin:0}
|
|||||||
.hd_pops_footer button {margin-right:5px;padding:5px 10px;border:0;background:#393939;color:#fff}
|
.hd_pops_footer button {margin-right:5px;padding:5px 10px;border:0;background:#393939;color:#fff}
|
||||||
|
|
||||||
/* 상단 레이아웃 */
|
/* 상단 레이아웃 */
|
||||||
#hd {position:relative;background:#2040db}
|
#hd {position:relative;background:#333}
|
||||||
#hd:after {display:block;visibility:hidden;clear:both;content:""}
|
#hd:after {display:block;visibility:hidden;clear:both;content:""}
|
||||||
#hd_h1 {position:absolute;font-size:0;text-indent:-9999em;line-height:0;overflow:hidden}
|
#hd_h1 {position:absolute;font-size:0;text-indent:-9999em;line-height:0;overflow:hidden}
|
||||||
|
|
||||||
#logo {padding:15px 10px;height:50px;text-align:center}
|
#logo {padding:15px 10px;height:50px;text-align:center}
|
||||||
#logo img{vertical-align:middle}
|
#logo img{vertical-align:middle}
|
||||||
#gnb_open {position:absolute;top:10px;left:10px;padding:0 10px;height:30px;width:30px;border:0;background:url(../img/mobile/icon_menu.png) 50% 50% no-repeat;text-indent:-999px;overflow:hidden;background-size:70%;color:#fff;font-size:1em;letter-spacing:-0.1em}
|
#gnb_open {position:absolute;top:10px;left:10px;padding:0 10px;height:30px;width:30px;border:0;background-size:70%;color:#fff;background:none; font-size: 16px;}
|
||||||
#gnb {display:none;background:#262626;position:fixed;top:0;left:0;z-index:99999;height:100%;overflow-y:auto;width:300px;
|
#gnb {display:none;background:#262626;position:fixed;top:0;left:0;z-index:99999;height:100%;overflow-y:auto;width:300px;
|
||||||
-webkit-box-shadow:0 0 5px rgba(55,55,5,0.4));
|
-webkit-box-shadow:0 0 5px rgba(55,55,5,0.4));
|
||||||
-moz-box-shadow:0 0 5px rgba(55,55,5,0.4));
|
-moz-box-shadow:0 0 5px rgba(55,55,5,0.4));
|
||||||
@@ -64,9 +64,9 @@ box-shadow: 0 0 5px rgba(55,55,5,0.4);}
|
|||||||
#hd_sch h2 {position:absolute;font-size:0;text-indent:-9999em;line-height:0;overflow:hidden}
|
#hd_sch h2 {position:absolute;font-size:0;text-indent:-9999em;line-height:0;overflow:hidden}
|
||||||
#hd_sch form {position:relative;padding-right:40px;}
|
#hd_sch form {position:relative;padding-right:40px;}
|
||||||
#hd_sch #sch_stx {width:100%;height:45px;background:#464646;border:0;padding-left:10px;border-radius:3px 0 0 3px;color:#fff}
|
#hd_sch #sch_stx {width:100%;height:45px;background:#464646;border:0;padding-left:10px;border-radius:3px 0 0 3px;color:#fff}
|
||||||
#hd_sch #sch_submit {position:absolute;top:0;right:0;width:40px;height:45px;;border:0;border-radius:0 3px 3px 0;cursor:pointer;background:url(../img/mobile/gnb_sch.png) no-repeat 50% 50% #464646; background-size:15px;text-indent:-999px;overflow:hidden;}
|
#hd_sch #sch_submit {position:absolute;top:0;right:0;width:40px;height:45px;;border:0;border-radius:0 3px 3px 0;cursor:pointer;color:#fff;background:#464646;font-size:1.25em}
|
||||||
|
|
||||||
#user_btn {position:absolute;top:10px;right:10px;padding:0 10px;height:30px;width:30px;border:0;background:url(../img/mobile/icon_my.png) 50% 50% no-repeat;text-indent:-999px;overflow:hidden;background-size:70%;color:#fff;font-size:1em;letter-spacing:-0.1em}
|
#user_btn {position:absolute;top:10px;right:10px;padding:0 10px;height:30px;width:30px;border:0;;color:#fff;font-size:16px;background:none;letter-spacing:-0.1em}
|
||||||
#user_menu{display:none;position:fixed;top:0;right:0;height:100%;;overflow-y:auto;width:320px;z-index:9999;background:#fff;text-align:center;
|
#user_menu{display:none;position:fixed;top:0;right:0;height:100%;;overflow-y:auto;width:320px;z-index:9999;background:#fff;text-align:center;
|
||||||
-webkit-box-shadow:0 0 5px rgba(55,55,5,0.4));
|
-webkit-box-shadow:0 0 5px rgba(55,55,5,0.4));
|
||||||
-moz-box-shadow:0 0 5px rgba(55,55,5,0.4));
|
-moz-box-shadow:0 0 5px rgba(55,55,5,0.4));
|
||||||
@@ -101,12 +101,16 @@ box-shadow: 0 0 5px rgba(100,100,100,0.2);}
|
|||||||
|
|
||||||
#container {position:relative;min-height:300px}
|
#container {position:relative;min-height:300px}
|
||||||
#container:after {display:block;visibility:hidden;clear:both;content:""}
|
#container:after {display:block;visibility:hidden;clear:both;content:""}
|
||||||
#container_title {font-size:1.2em;font-weight:bold;height:50px;padding:10px;line-height:30px;background:#4162ff;color:#fff}
|
#container_title {font-size:1.2em;font-weight:bold;height:50px;padding:10px;line-height:30px;background:#fff;color:#333;
|
||||||
|
-webkit-box-shadow: 0 0 5px rgba(55,55,5,0.4));
|
||||||
|
-moz-box-shadow: 0 0 5px rgba(55,55,5,0.4));
|
||||||
|
box-shadow: 0 0 5px rgba(55,55,5,0.4);
|
||||||
|
}
|
||||||
.top{position:relative}
|
.top{position:relative}
|
||||||
.btn_top{position:absolute;top:0px;right:0px;z-index:999;padding:10px;}
|
.btn_top{position:absolute;top:0px;right:0px;z-index:999;padding:10px;}
|
||||||
.btn_top li{display:inline-block}
|
.btn_top li{display:inline-block}
|
||||||
.btn_top a,.btn_top .btn_submit{line-height:30px;padding: 0 10px;border-radius:3px}
|
.btn_top a,.btn_top .btn_submit{line-height:30px;padding: 0 10px;border-radius:3px}
|
||||||
.btn_top .btn_cancel,.btn_top .btn_b01{border:1px solid #fff;background:none;color:#fff;line-height:28px}
|
.btn_top .btn_cancel,.btn_top .btn_b01{border:1px solid #aaa;background:none;color:#666;line-height:28px;background:#fff}
|
||||||
.fixed{position:fixed;top:0;right:0;z-index:999;}
|
.fixed{position:fixed;top:0;right:0;z-index:999;}
|
||||||
#container_title.fixed{width:100%;}
|
#container_title.fixed{width:100%;}
|
||||||
|
|
||||||
@@ -124,8 +128,7 @@ box-shadow: 0 0 5px rgba(100,100,100,0.2);}
|
|||||||
#ft_copy b {color:inherit}
|
#ft_copy b {color:inherit}
|
||||||
#ft_copy a {color:inherit;text-decoration:none}
|
#ft_copy a {color:inherit;text-decoration:none}
|
||||||
|
|
||||||
#top_btn{position:fixed;bottom:10px;right:10px;width:40px;height:40px;overflow:hidden;text-indent:-999px;background:url(../img/btn_top.gif) no-repeat 50% 50% #9296a7;border-radius:50%;border:0;}
|
#top_btn {position:fixed;bottom:10px;right:10px;width:40px;height:40px;line-height:36px;border:2px solid #333;background:rgba(255,255,255,0.6);color:#333;text-align:center;font-size:15px;z-index:99}
|
||||||
|
|
||||||
#device_change {display:block;line-height:40px;border:1px solid #3a3a3a;border-radius:2em;color:#777;font-size:1em;text-decoration:none;text-align:center}
|
#device_change {display:block;line-height:40px;border:1px solid #3a3a3a;border-radius:2em;color:#777;font-size:1em;text-decoration:none;text-align:center}
|
||||||
|
|
||||||
/* 게시물 선택복사 선택이동 */
|
/* 게시물 선택복사 선택이동 */
|
||||||
@@ -148,18 +151,14 @@ box-shadow: 0 0 5px rgba(100,100,100,0.2);}
|
|||||||
#captcha {position:relative}
|
#captcha {position:relative}
|
||||||
#captcha legend {position:absolute;margin:0;padding:0;font-size:0;line-height:0;text-indent:-9999em;overflow:hidden;}
|
#captcha legend {position:absolute;margin:0;padding:0;font-size:0;line-height:0;text-indent:-9999em;overflow:hidden;}
|
||||||
#captcha #captcha_img {;height:40px;border:1px solid #898989;;vertical-align:top;padding:0;margin:0}
|
#captcha #captcha_img {;height:40px;border:1px solid #898989;;vertical-align:top;padding:0;margin:0}
|
||||||
#captcha #captcha_mp3 {;margin:0;padding:0;width:40px;height:40px;border:0;background:transparent;vertical-align:middle;overflow:hidden;cursor:pointer;width:40px;height:40px;background:url('../../../img/captcha.png') no-repeat;text-indent:-999px;;border-radius:3px}
|
#captcha #captcha_mp3 {;margin:0;padding:0;width:40px;height:40px;border:0;background:transparent;vertical-align:middle;overflow:hidden;cursor:pointer;width:40px;height:40px;background:url('../img/captcha.png') no-repeat;text-indent:-999px;;border-radius:3px}
|
||||||
#captcha #captcha_reload {margin:0;padding:0;width:40px;height:40px;border:0;background:transparent;vertical-align:middle;overflow:hidden;cursor:pointer;background:url('../../../img/captcha.png') no-repeat 0 -40px;text-indent:-999px;border-radius:3px}
|
#captcha #captcha_reload {margin:0;padding:0;width:40px;height:40px;border:0;background:transparent;vertical-align:middle;overflow:hidden;cursor:pointer;background:url('../img/captcha.png') no-repeat 0 -40px;text-indent:-999px;border-radius:3px}
|
||||||
#captcha #captcha_key {margin:0 0 0 3px;padding:0 5px;width:90px;height:40px;border:1px solid #ccc;background:#fff;font-size:1.333em;font-weight:bold;text-align:center;border-radius:3px;vertical-align:top}
|
#captcha #captcha_key {margin:0 0 0 3px;padding:0 5px;width:90px;height:40px;border:1px solid #ccc;background:#fff;font-size:1.333em;font-weight:bold;text-align:center;border-radius:3px;vertical-align:top}
|
||||||
#captcha #captcha_info {display:block;margin:3px 0 5px ;font-size:0.95em;letter-spacing:-0.1em}
|
#captcha #captcha_info {display:block;margin:3px 0 5px ;font-size:0.95em;letter-spacing:-0.1em}
|
||||||
|
|
||||||
/* 캡챠 자동등록(입력)방지 기본 - mobile */
|
/* 캡챠 자동등록(입력)방지 기본 - mobile */
|
||||||
#captcha.m_captcha audio {display:block;margin:0 0 5px}
|
#captcha.m_captcha audio {display:block;margin:0 0 5px}
|
||||||
|
|
||||||
/* 구글리캡챠 크기 조정 scale */
|
|
||||||
#captcha.recaptcha{width:213px;height:55px;overflow:hidden}
|
|
||||||
#rc-imageselect, .g-recaptcha {transform:scale(0.7);-webkit-transform:scale(0.7);transform-origin:0 0;-webkit-transform-origin:0 0;}
|
|
||||||
|
|
||||||
/*단축키일람 */
|
/*단축키일람 */
|
||||||
.cke_sc{text-align:right}
|
.cke_sc{text-align:right}
|
||||||
.btn_cke_sc{background:#333;color:#fff;padding:5px;border:none}
|
.btn_cke_sc{background:#333;color:#fff;padding:5px;border:none}
|
||||||
@@ -229,11 +228,7 @@ a.btn_admin:focus, a.btn_admin:hover {}
|
|||||||
|
|
||||||
/* 기본리스트 */
|
/* 기본리스트 */
|
||||||
.list_01{padding:0 10px;}
|
.list_01{padding:0 10px;}
|
||||||
.list_01 li{background:#fff;border-radius:3px;margin:10px 0;padding:10px 15px;
|
.list_01 li{background:#fff;border-radius:3px;margin:10px 0;padding:10px 15px;border-bottom:1px solid #ccc;}
|
||||||
-webkit-box-shadow: 0 1px 4px #cbd1df;
|
|
||||||
-moz-box-shadow: 0 1px 4px #cbd1df;
|
|
||||||
box-shadow: 0 1px 4px #cbd1df;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* 기본폼 */
|
/* 기본폼 */
|
||||||
.form_01{margin:10px}
|
.form_01{margin:10px}
|
||||||
|
|||||||
+73
-67
@@ -28,12 +28,14 @@ include_once(G5_LIB_PATH.'/popular.lib.php');
|
|||||||
<div id="hd_wrapper">
|
<div id="hd_wrapper">
|
||||||
|
|
||||||
<div id="logo">
|
<div id="logo">
|
||||||
<a href="<?php echo G5_URL ?>"><img src="<?php echo G5_IMG_URL ?>/logo.jpg" alt="<?php echo $config['cf_title']; ?>"></a>
|
<a href="<?php echo G5_URL ?>"><img src="<?php echo G5_IMG_URL ?>/m_logo.png" alt="<?php echo $config['cf_title']; ?>" height="15"></a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<button type="button" id="gnb_open" class="hd_opener">메뉴<span class="sound_only"> 열기</span></button>
|
<button type="button" id="gnb_open" class="hd_opener"><i class="fa fa-bars" aria-hidden="true"></i><span class="sound_only"> 메뉴열기</span></button>
|
||||||
|
|
||||||
<div id="gnb" class="hd_div">
|
<div id="gnb" class="hd_div">
|
||||||
|
<button type="button" id="gnb_close" class="hd_closer"><span class="sound_only">메뉴 </span>닫기</button>
|
||||||
|
|
||||||
<ul id="gnb_1dul">
|
<ul id="gnb_1dul">
|
||||||
<?php
|
<?php
|
||||||
$sql = " select *
|
$sql = " select *
|
||||||
@@ -58,7 +60,7 @@ include_once(G5_LIB_PATH.'/popular.lib.php');
|
|||||||
|
|
||||||
for ($k=0; $row2=sql_fetch_array($result2); $k++) {
|
for ($k=0; $row2=sql_fetch_array($result2); $k++) {
|
||||||
if($k == 0)
|
if($k == 0)
|
||||||
echo '<ul class="gnb_2dul">'.PHP_EOL;
|
echo '<button type="button" class="btn_gnb_op">하위분류</button><ul class="gnb_2dul">'.PHP_EOL;
|
||||||
?>
|
?>
|
||||||
<li class="gnb_2dli"><a href="<?php echo $row2['me_link']; ?>" target="_<?php echo $row2['me_target']; ?>" class="gnb_2da"><span></span><?php echo $row2['me_name'] ?></a></li>
|
<li class="gnb_2dli"><a href="<?php echo $row2['me_link']; ?>" target="_<?php echo $row2['me_target']; ?>" class="gnb_2da"><span></span><?php echo $row2['me_name'] ?></a></li>
|
||||||
<?php
|
<?php
|
||||||
@@ -74,49 +76,68 @@ include_once(G5_LIB_PATH.'/popular.lib.php');
|
|||||||
if ($i == 0) { ?>
|
if ($i == 0) { ?>
|
||||||
<li id="gnb_empty">메뉴 준비 중입니다.<?php if ($is_admin) { ?> <br><a href="<?php echo G5_ADMIN_URL; ?>/menu_list.php">관리자모드 > 환경설정 > 메뉴설정</a>에서 설정하세요.<?php } ?></li>
|
<li id="gnb_empty">메뉴 준비 중입니다.<?php if ($is_admin) { ?> <br><a href="<?php echo G5_ADMIN_URL; ?>/menu_list.php">관리자모드 > 환경설정 > 메뉴설정</a>에서 설정하세요.<?php } ?></li>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
<li class="gnb_1dli"><a href="<?php echo G5_SHOP_URL ?>" class="gnb_1da"> 쇼핑몰</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
<button type="button" id="gnb_close" class="hd_closer"><span class="sound_only">메뉴 </span>닫기</button>
|
|
||||||
|
<div id="hd_sch">
|
||||||
|
<h2>사이트 내 전체검색</h2>
|
||||||
|
<form name="fsearchbox" action="<?php echo G5_BBS_URL ?>/search.php" onsubmit="return fsearchbox_submit(this);" method="get">
|
||||||
|
<input type="hidden" name="sfl" value="wr_subject||wr_content">
|
||||||
|
<input type="hidden" name="sop" value="and">
|
||||||
|
<input type="text" name="stx" id="sch_stx" placeholder="검색어(필수)" required maxlength="20">
|
||||||
|
<button type="submit" value="검색" id="sch_submit"><i class="fa fa-search" aria-hidden="true"></i><span class="sound_only">검색</span></button>
|
||||||
|
</form>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
function fsearchbox_submit(f)
|
||||||
|
{
|
||||||
|
if (f.stx.value.length < 2) {
|
||||||
|
alert("검색어는 두글자 이상 입력하십시오.");
|
||||||
|
f.stx.select();
|
||||||
|
f.stx.focus();
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
// 검색에 많은 부하가 걸리는 경우 이 주석을 제거하세요.
|
||||||
|
var cnt = 0;
|
||||||
|
for (var i=0; i<f.stx.value.length; i++) {
|
||||||
|
if (f.stx.value.charAt(i) == ' ')
|
||||||
|
cnt++;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (cnt > 1) {
|
||||||
|
alert("빠른 검색을 위하여 검색어에 공백은 한개만 입력할 수 있습니다.");
|
||||||
|
f.stx.select();
|
||||||
|
f.stx.focus();
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<button type="button" id="hd_sch_open" class="hd_opener">검색<span class="sound_only"> 열기</span></button>
|
<button type="button" id="user_btn" class="hd_opener"><i class="fa fa-user" aria-hidden="true"></i><span class="sound_only">사용자메뉴</span></button>
|
||||||
|
<div class="hd_div" id="user_menu">
|
||||||
|
<button type="button" id="user_close" class="hd_closer"><span class="sound_only">메뉴 </span>닫기</button>
|
||||||
|
|
||||||
<div id="hd_sch" class="hd_div">
|
<?php echo outlogin('basic'); // 외부 로그인 ?>
|
||||||
<h2>사이트 내 전체검색</h2>
|
|
||||||
<form name="fsearchbox" action="<?php echo G5_BBS_URL ?>/search.php" onsubmit="return fsearchbox_submit(this);" method="get">
|
|
||||||
<input type="hidden" name="sfl" value="wr_subject||wr_content">
|
|
||||||
<input type="hidden" name="sop" value="and">
|
|
||||||
<input type="text" name="stx" id="sch_stx" placeholder="검색어(필수)" required class="required" maxlength="20">
|
|
||||||
<input type="submit" value="검색" id="sch_submit">
|
|
||||||
</form>
|
|
||||||
|
|
||||||
<script>
|
<ul id="hd_nb">
|
||||||
function fsearchbox_submit(f)
|
<li class="hd_nb1"><a href="<?php echo G5_BBS_URL ?>/qalist.php" id="snb_qa"><i class="fa fa-comments" aria-hidden="true"></i><br>1:1문의</a></li>
|
||||||
{
|
<li class="hd_nb2"><a href="<?php echo G5_BBS_URL ?>/faq.php" id="snb_faq"><i class="fa fa-question-circle" aria-hidden="true"></i><br>FAQ</a></li>
|
||||||
if (f.stx.value.length < 2) {
|
<li class="hd_nb3"><a href="<?php echo G5_BBS_URL ?>/current_connect.php" id="snb_cnt"><i class="fa fa-users" aria-hidden="true"></i><br>접속자 <span><?php echo connect('basic'); // 현재 접속자수 ?></span></a></li>
|
||||||
alert("검색어는 두글자 이상 입력하십시오.");
|
<li class="hd_nb4"><a href="<?php echo G5_BBS_URL ?>/new.php" id="snb_new"><i class="fa fa-history" aria-hidden="true"></i><br>새글</a></li>
|
||||||
f.stx.select();
|
|
||||||
f.stx.focus();
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
// 검색에 많은 부하가 걸리는 경우 이 주석을 제거하세요.
|
</ul>
|
||||||
var cnt = 0;
|
|
||||||
for (var i=0; i<f.stx.value.length; i++) {
|
|
||||||
if (f.stx.value.charAt(i) == ' ')
|
|
||||||
cnt++;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (cnt > 1) {
|
<div id="text_size">
|
||||||
alert("빠른 검색을 위하여 검색어에 공백은 한개만 입력할 수 있습니다.");
|
<!-- font_resize('엘리먼트id', '제거할 class', '추가할 class'); -->
|
||||||
f.stx.select();
|
<button id="size_down" onclick="font_resize('container', 'ts_up ts_up2', '');" class="select"><img src="<?php echo G5_URL; ?>/img/ts01.png" width="20" alt="기본"></button>
|
||||||
f.stx.focus();
|
<button id="size_def" onclick="font_resize('container', 'ts_up ts_up2', 'ts_up');"><img src="<?php echo G5_URL; ?>/img/ts02.png" width="20" alt="크게"></button>
|
||||||
return false;
|
<button id="size_up" onclick="font_resize('container', 'ts_up ts_up2', 'ts_up2');"><img src="<?php echo G5_URL; ?>/img/ts03.png" width="20" alt="더크게"></button>
|
||||||
}
|
</div>
|
||||||
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
<button type="button" id="sch_close" class="hd_closer"><span class="sound_only">검색 </span>닫기</button>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
@@ -138,6 +159,16 @@ include_once(G5_LIB_PATH.'/popular.lib.php');
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$("#container").on("click", function() {
|
||||||
|
$(".hd_div").hide();
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
$(".btn_gnb_op").click(function(){
|
||||||
|
$(this).toggleClass("btn_gnb_cl").next(".gnb_2dul").slideToggle(300);
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
$(".hd_closer").on("click", function() {
|
$(".hd_closer").on("click", function() {
|
||||||
var idx = $(".hd_closer").index($(this));
|
var idx = $(".hd_closer").index($(this));
|
||||||
$(".hd_div:visible").hide();
|
$(".hd_div:visible").hide();
|
||||||
@@ -146,37 +177,12 @@ include_once(G5_LIB_PATH.'/popular.lib.php');
|
|||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<ul id="hd_nb">
|
|
||||||
<li><a href="<?php echo G5_BBS_URL ?>/qalist.php" id="snb_new">1:1문의</a></li>
|
|
||||||
<li><a href="<?php echo G5_BBS_URL ?>/faq.php" id="snb_faq">FAQ</a></li>
|
|
||||||
<li><a href="<?php echo G5_BBS_URL ?>/current_connect.php" id="snb_cnt">접속자 <?php echo connect(); // 현재 접속자수 ?></a></li>
|
|
||||||
<li><a href="<?php echo G5_BBS_URL ?>/new.php" id="snb_new">새글</a></li>
|
|
||||||
<?php if ($is_member) { ?>
|
|
||||||
<?php if ($is_admin) { ?>
|
|
||||||
<li><a href="<?php echo G5_ADMIN_URL ?>" id="snb_adm"><b>관리자</b></a></li>
|
|
||||||
<?php } ?>
|
|
||||||
<li><a href="<?php echo G5_BBS_URL ?>/member_confirm.php?url=<?php echo G5_BBS_URL ?>/register_form.php" id="snb_modify">정보수정</a></li>
|
|
||||||
<li><a href="<?php echo G5_BBS_URL ?>/logout.php" id="snb_logout">로그아웃</a></li>
|
|
||||||
<?php } else { ?>
|
|
||||||
<li><a href="<?php echo G5_BBS_URL ?>/register.php" id="snb_join">회원가입</a></li>
|
|
||||||
<li><a href="<?php echo G5_BBS_URL ?>/login.php" id="snb_login">로그인</a></li>
|
|
||||||
<?php } ?>
|
|
||||||
</ul>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<hr>
|
|
||||||
|
|
||||||
<div id="wrapper">
|
<div id="wrapper">
|
||||||
<div id="aside">
|
|
||||||
<?php echo outlogin('basic'); // 외부 로그인 ?>
|
|
||||||
</div>
|
|
||||||
<div id="container">
|
<div id="container">
|
||||||
<?php if ((!$bo_table || $w == 's' ) && !defined("_INDEX_")) { ?><div id="container_title"><?php echo $g5['title'] ?></div><?php } ?>
|
<?php if (!defined("_INDEX_")) { ?><h2 id="container_title" class="top"><?php echo $g5['title'] ?></h2><?php } ?>
|
||||||
<div id="text_size">
|
|
||||||
<!-- font_resize('엘리먼트id', '제거할 class', '추가할 class'); -->
|
|
||||||
<button id="size_down" onclick="font_resize('container', 'ts_up ts_up2', '');"><img src="<?php echo G5_URL; ?>/img/ts01.gif" alt="기본"></button>
|
|
||||||
<button id="size_def" onclick="font_resize('container', 'ts_up ts_up2', 'ts_up');"><img src="<?php echo G5_URL; ?>/img/ts02.gif" alt="크게"></button>
|
|
||||||
<button id="size_up" onclick="font_resize('container', 'ts_up ts_up2', 'ts_up2');"><img src="<?php echo G5_URL; ?>/img/ts03.gif" alt="더크게"></button>
|
|
||||||
</div>
|
|
||||||
+1
-1
@@ -25,7 +25,7 @@ for ($i=0; $row=sql_fetch_array($result); $i++) {
|
|||||||
|
|
||||||
// 사용방법
|
// 사용방법
|
||||||
// latest(스킨, 게시판아이디, 출력라인, 글자수);
|
// latest(스킨, 게시판아이디, 출력라인, 글자수);
|
||||||
echo latest("basic", $row['bo_table'], 5, 25);
|
echo latest('basic', $row['bo_table'], 5, 25);
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
<!-- 메인화면 최신글 끝 -->
|
<!-- 메인화면 최신글 끝 -->
|
||||||
|
|||||||
+33
-14
@@ -9,15 +9,13 @@ if(defined('G5_THEME_PATH')) {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<hr>
|
|
||||||
|
|
||||||
<?php echo poll('basic'); // 설문조사 ?>
|
<?php echo poll('basic'); // 설문조사 ?>
|
||||||
|
<?php echo popular('basic'); // 인기검색어 ?>
|
||||||
|
<?php echo visit('basic'); // 방문자수 ?>
|
||||||
|
|
||||||
<hr>
|
|
||||||
|
|
||||||
<div id="ft">
|
<div id="ft">
|
||||||
<?php echo popular('basic'); // 인기검색어 ?>
|
|
||||||
<?php echo visit('basic'); // 방문자수 ?>
|
|
||||||
<div id="ft_copy">
|
<div id="ft_copy">
|
||||||
<div id="ft_company">
|
<div id="ft_company">
|
||||||
<a href="<?php echo G5_BBS_URL; ?>/content.php?co_id=company">회사소개</a>
|
<a href="<?php echo G5_BBS_URL; ?>/content.php?co_id=company">회사소개</a>
|
||||||
@@ -25,26 +23,47 @@ if(defined('G5_THEME_PATH')) {
|
|||||||
<a href="<?php echo G5_BBS_URL; ?>/content.php?co_id=provision">서비스이용약관</a>
|
<a href="<?php echo G5_BBS_URL; ?>/content.php?co_id=provision">서비스이용약관</a>
|
||||||
</div>
|
</div>
|
||||||
Copyright © <b>소유하신 도메인.</b> All rights reserved.<br>
|
Copyright © <b>소유하신 도메인.</b> All rights reserved.<br>
|
||||||
<a href="#">상단으로</a>
|
|
||||||
</div>
|
</div>
|
||||||
|
<button type="button" id="top_btn"><i class="fa fa-arrow-up" aria-hidden="true"></i><span class="sound_only">상단으로</span></button>
|
||||||
|
<?php
|
||||||
|
if(G5_DEVICE_BUTTON_DISPLAY && G5_IS_MOBILE) { ?>
|
||||||
|
<a href="<?php echo get_device_change_url(); ?>" id="device_change">PC 버전으로 보기</a>
|
||||||
|
<?php
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($config['cf_analytics']) {
|
||||||
|
echo $config['cf_analytics'];
|
||||||
|
}
|
||||||
|
?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php
|
|
||||||
if(G5_DEVICE_BUTTON_DISPLAY && G5_IS_MOBILE) { ?>
|
|
||||||
<a href="<?php echo get_device_change_url(); ?>" id="device_change">PC 버전으로 보기</a>
|
|
||||||
<?php
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($config['cf_analytics']) {
|
|
||||||
echo $config['cf_analytics'];
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
$(function() {
|
$(function() {
|
||||||
// 폰트 리사이즈 쿠키있으면 실행
|
// 폰트 리사이즈 쿠키있으면 실행
|
||||||
font_resize("container", get_cookie("ck_font_resize_rmv_class"), get_cookie("ck_font_resize_add_class"));
|
font_resize("container", get_cookie("ck_font_resize_rmv_class"), get_cookie("ck_font_resize_add_class"));
|
||||||
});
|
});
|
||||||
|
|
||||||
|
//상단고정
|
||||||
|
$( document ).ready( function() {
|
||||||
|
var jbOffset = $( '.top' ).offset();
|
||||||
|
$( window ).scroll( function() {
|
||||||
|
if ( $( document ).scrollTop() > jbOffset.top ) {
|
||||||
|
$( '.top' ).addClass( 'fixed' );
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
$( '.top' ).removeClass( 'fixed' );
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
//상단으로
|
||||||
|
$(function() {
|
||||||
|
$("#top_btn").on("click", function() {
|
||||||
|
$("html, body").animate({scrollTop:0}, '500');
|
||||||
|
return false;
|
||||||
|
});
|
||||||
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
|||||||
Reference in new issue
Block a user