테마 일부 수정

This commit is contained in:
thisgun
2017-09-01 11:45:50 +09:00
parent a20dc27a5a
commit dac658451e
6 changed files with 200 additions and 164 deletions
+94 -61
View File
@@ -44,46 +44,57 @@ border: 1px solid #558ab7 !important;
.placeholdersjs { color: #aaa !important; }
/* 팝업레이어 */
#hd_pop {z-index:1000;position:relative;margin:0 auto;width:940px;height:0}
#hd_pop {z-index:1000;position:relative;margin:0 auto;width:1080px;height:0}
#hd_pop h2 {position:absolute;font-size:0;line-height:0;overflow:hidden}
.hd_pops {position:absolute;border:1px solid #e9e9e9;background:#fff}
.hd_pops {position:absolute;border:1px solid #e9e9e9;background:#fff;}
.hd_pops img{max-width:100%}
.hd_pops_con {}
.hd_pops_footer {padding:10px 0;background:#000;color:#fff;text-align:right}
.hd_pops_footer button {margin-right:5px;padding:5px 10px;border:0;background:#393939;color:#fff}
.hd_pops_footer {padding: 0;background:#000;color:#fff;text-align:left;position:relative;}
.hd_pops_footer:after {display:block;visibility:hidden;clear:both;content:""}
.hd_pops_footer button {padding: 10px;border:0;color:#fff}
.hd_pops_footer .hd_pops_reject{background:#000;text-align:left}
.hd_pops_footer .hd_pops_close{background:#393939;position:absolute;top:0;right:0}
/* 상단 레이아웃 */
#hd {z-index:4;position:relative;min-width:940px;background:#fff;border-bottom:1px solid #d4d4d4;
-webkit-box-shadow: 0 1px 5px rgba(0,0,0,0.1);
-moz-box-shadow: 0 1px 5px rgba(0,0,0,0.1);
box-shadow: 0 1px 5px rgba(0,0,0,0.1);
}
.hd_zindex {z-index:10 !important}
#hd {min-width:1100px;}
#hd_h1 {position:absolute;font-size:0;line-height:0;overflow:hidden}
#hd_wrapper {position:relative;margin:0 auto;width:940px;height:70px;zoom:1}
#hd_wrapper {position:relative;margin:0 auto;padding:20px 0;height:115px;width:1080px;zoom:1}
#hd_wrapper:after {display:block;visibility:hidden;clear:both;content:""}
#logo {float:left;padding:25px 0 0}
#tnb {background:#eee;border-bottom:1px solid #d4d4d4;zoom:1}
.hd_sch_wr{position:absolute;top:35px;left:50%;width:431px;margin-left:-215px;}
/*#hd_sch {position:absolute;top:35px;left:50%;width:430px;margin-left:-215px;}*/
#hd_sch h3 {position:absolute;font-size:0;line-height:0;overflow:hidden}
#hd_sch form.fsearchbox {zoom:1}
#hd_sch form.fsearchbox:after {display:block;visibility:hidden;clear:both;content:""}
#hd_sch #sch_stx {padding-left:10px;height:45px;background:#fff;border:1px solid #000;width:370px;border-right:0;float:left;border-radius:5px 0 0 5px;font-size:1.25em}
#hd_sch #sch_submit {height:45px;border:0;background:#fff;border:1px solid #000;border-left:0;color:#333;width:50px;float:left;cursor:pointer;border-radius:0 5px 5px 0;font-size:18px}
#sbn_side{position:absolute;top:20px;right:0}
#tnb {border-bottom:1px solid #e9e9e9}
#tnb h3 {position:absolute;font-size:0;line-height:0;overflow:hidden}
#tnb ul {margin:0 auto;width:1080px;zoom:1}
#tnb ul:after {display:block;visibility:hidden;clear:both;content:""}
#tnb ul{margin:0 auto;max-width:940px;border-left:1px solid #d4d4d4;border-right:1px solid #d4d4d4}
#tnb li {float:left;height:33px;line-height:33px;border-right:1px solid #d4d4d4}
#tnb li i{font-size:13px}
#tnb a {padding:0 10px;font-size:0.92em}
#tnb li.tnb_right{float:right;border-left:1px solid #d4d4d4;border-right:0}
#tnb li .visit span{display:inline-block;line-height:18px;height:18px;padding:0 5px;background:#ffa74d;color:#fff;border-radius:9px}
#tnb li .tnb_admin{color:#d13f4a}
/* 전체 검색 */
.hd_sch_wr{position:absolute;top:0;right:0}
#sch_op_btn{height:50px;width:50px;border:0;margin-top:10px;background:none;font-size:18px}
#sch_cl_btn{height:50px;width:50px;text-indent:-999px;overflow:hidden;background:url(../img/close_btn.png) no-repeat 50% 50% ;border:0;}
#hd_sch {display:none;position:absolute;top:0;right:0;padding:0;background:#fff;z-index:99999;height:70px;padding:10px;width:800px;text-align:right}
#hd_sch form{}
#hd_sch legend {position:absolute;margin:0;padding:0;font-size:0;line-height:0;text-indent:-9999em;overflow:hidden}
#hd_sch #sch_stx {padding-left:5px;width:380px;height:24px;border:0;background:#dedede;border-radius:5px;height:40px;}
#hd_sch #sch_submit {position:absolute;top:50%;;right:65px;margin-top:-20px;height:40px;width:40px;cursor:pointer;;background:none;border:0;font-size:15px}
#tnb li {float:right;border-left:1px solid #e9e9e9;margin-bottom:-1px;font-size:0.92em}
#tnb a {display:inline-block;padding:0 10px;color:#646464;line-height:35px;border-bottom:1px solid #e9e9e9}
#tnb a:focus, #tnb a:hover {color:#333;border-bottom:1px solid #444}
#tnb .tnb_admin a{color:#ff0000;}
#tnb .tnb_left{float:left}
#tnb .tnb_left a{;padding:0 14px}
#tnb .tnb_cart{border-right:1px solid #e9e9e9;}
#tnb .tnb_community{border-right:1px solid #e9e9e9}
#tnb .tnb_community i{font-size:15px}
#tnb .tnb_community{background:#fff;font-weight:bold;}
#tnb .tnb_community:focus, #tnb .tnb_community:hover {color:#333;border-bottom:0}
#tnb .tnb_community a{color:#5865de;border-bottom:1px solid #fff;}
#hd_qnb{float:right;margin-top:20px}
#hd_qnb:after {display:block;visibility:hidden;clear:both;content:""}
#hd_qnb li{float:left;font-size:1.083em;padding:10px;line-height:20px;}
#hd_qnb .visit span{display:inline-block;line-height:18px;padding:0 5px;border-radius:10px;background:#bc5dce;color:#fff;font-size:10px}
/* 텍스트 크기 조절 */
#text_size{text-align:center;}
#text_size div{margin:20px auto 10px;text-align:center;display:inline-block;padding:7px 20px;background:#e6e7e9;border-radius:25px;height:48px;}
@@ -96,19 +107,20 @@ box-shadow: 0 0 5px rgba(100,100,100,0.2);}
.ts_up2 {font-size:1.3em !important}
/* 메인메뉴 */
#gnb {float:right;padding-right:70px}
#gnb h2 {position:absolute;font-size:0;line-height:0;overflow:hidden}
#gnb_1dul {margin:0 auto !important;padding:0;zoom:1}
#gnb_1dul:after {display:block;visibility:hidden;clear:both;content:""}
.gnb_1dli {z-index:10;position:relative;float:left;padding:0 15px;}
.gnb_1dli .bg{display:inline-block;width:10px;height:10px;overflow:hidden;background:url(../img/gnb_bg.gif) no-repeat 50% 50%;text-indent:-999px}
/*.gnb_1dli:hover{border-bottom:2px solid #959cdf}*/
.gnb_1dli:hover .bg{background:url(../img/gnb_bg2.gif) no-repeat 50% 50%;}
#gnb{background:#f2f2f2;border-top:1px solid #ddd;border-bottom:1px solid #ddd}
#gnb h2{position:absolute;font-size:0;line-height:0;overflow:hidden}
#gnb #gnb_1dul {margin:0 auto;width:1080px;font-size:1.083em;padding: 0;zoom:1}
#gnb ul:after {display:block;visibility:hidden;clear:both;content:""}
#gnb .gnb_1dli{float:left;line-height:44px;padding:0 25px 0 0;position:relative;}
.gnb_1dli:hover .gnb_1da{color :#7e85ce}
.gnb_1da {display:inline-block;font-weight:bold;text-decoration:none;line-height:70px}
.gnb_1dli:hover .bg{background:url(../img/gnb_bg2.gif) no-repeat 50% 50%;}
.gnb_1dli .bg{display:inline-block;width:10px;height:10px;overflow:hidden;background:url(../img/gnb_bg.gif) no-repeat 50% 50%;text-indent:-999px}
.gnb_1da {display:inline-block;font-weight:bold;text-decoration:none;}
.gnb_2dli{border-top:1px solid #eee}
.gnb_2dli:first-child{border:0}
.gnb_2dul {display:none;position:absolute;top:70px;min-width:140px;background:#fff;border:1px solid #d4d4d4;padding: 0;
.gnb_2dul {display:none;position:absolute;top:45px;min-width:140px;background:#fff;border:1px solid #d4d4d4;padding: 0;
-webkit-box-shadow: 0 1px 5px rgba(0,0,0,0.1);
-moz-box-shadow: 0 1px 5px rgba(0,0,0,0.1);
box-shadow: 0 1px 5px rgba(0,0,0,0.1);}
@@ -119,34 +131,46 @@ a.gnb_2da:hover{background:#f9f9f9;color:#000}
.gnb_2da:focus, .gnb_2da:hover {color:#959cdf}
.gnb_1dli_over .gnb_2dul {display:block;left:0;background:#fff}
.gnb_1dli_over2 .gnb_2dul {display:block;right:0;background:#fff}
#gnb_empty {padding:10px 0;width:100%;text-align:center;line-height:2em}
#gnb_empty a {text-decoration:underline}
/* 중간 레이아웃 */
#wrapper{}
#wrapper{min-width:1100px}
#container_wr:after {display:block;visibility:hidden;clear:both;content:""}
#container_wr {z-index:5;margin:0 auto;width:940px;height:100%;;zoom:1}
#aside {float:right;width:271px;padding:20px;border-left:1px solid #e8e8e8;margin-left:-1px;height:100%;}
#container_wr {z-index:5;margin:0 auto;width:1080px;height:100%;zoom:1;}
#aside {float:right;width:270px;height:100%;}
#aside .aside_inner{padding:20px;border-left:1px solid #e8e8e8;margin-left:-1px}
#container {z-index:4;position:relative;float:left;padding:20px 20px 20px 0;width:670px;border-right:1px solid #e8e8e8;min-height:500px;height:auto !important;height:500px;font-size:1em;zoom:1}
#container.aside_disable {float:none;width:100%;padding-right:0px;border-right:none 0}
#container:after {display:block;visibility:hidden;clear:both;content:""}
#container {z-index:4;position:relative;float:left;width:810px;min-height:500px;height:auto !important;height:500px;font-size:1em}
#container .container_inner{border-right:1px solid #e8e8e8;padding:20px 20px 20px 0}
#container_title {font-size:1.25em;;font-weight:bold;border-bottom:1px solid #e8e8e8}
#container_title span{margin:0 auto;display:block;width:940px;height:60px;line-height:30px;padding:15px 0;}
#container_title span{margin:0 auto;display:block;width:1080px;height:60px;line-height:30px;padding:15px 0;}
.latest_wrap {zoom:1;margin-left:-10px;margin-right:-10px;padding:0}
.latest_wrap:after {display:block;visibility:hidden;clear:both;content:""}
.latest_wrap .col-row{float:left}
.latest_wrap .box_clear{clear:both}
.latest_wrap .col-gn-0, .latest_wrap .col-gn-1{width:100%}
.latest_wrap .col-gn-2{width:50%}
.latest_wrap .col-gn-3{width:33.333%}
.latest_wrap .col-gn-4{width:25%}
.latest_wrap .col-gn-5{width:20%}
.lt_wr{width:49%}
.lt_wr:nth-child(2n+0){clear:both}
/* 하단 레이아웃 */
#ft {min-width:940px;border-top:1px solid #d4d4d4;background:#eee;padding-bottom:40px}
#ft {min-width:1100px;border-top:1px solid #d4d4d4;background:#eee;padding-bottom:40px}
#ft h1 {position:absolute;font-size:0;line-height:0;overflow:hidden}
#ft_wr {width:940px;margin:0 auto;position:relative;}
#ft_wr {width:1080px;margin:0 auto;position:relative;}
#ft_link{margin:30px 0 10px}
#ft_link a{border-left:1px solid #aaa;display:inline-block;padding:0 5px;line-height:1.083em;font-weight:bold}
#ft_link a:first-child{border:0}
#ft_catch{position:absolute;top:0;right:0}
#ft_copy{color:#555;font-size:0.92em}
#ft_totop{position:fixed;bottom:20px;right:20px;width:50px;height:50px;background:url(../img/btn_top.gif) no-repeat 50% 50% rgba(0,0,0,0.7);border-radius:50%;;text-indent:-999px;overflow:hidden;}
#top_btn {position:fixed;bottom:20px;right:20px;width:50px;height:50px;line-height:46px;border:2px solid #333;color:#333;text-align:center;font-size:15px;z-index:90;background:rgba(255,255,255,0.5)}
#top_btn:hover{border-color:#3059c7;background:#3059c7;color:#fff}
/* 게시물 선택복사 선택이동 */
#copymove {}
@@ -168,19 +192,19 @@ a.gnb_2da:hover{background:#f9f9f9;color:#000}
#captcha {display:inline-block;position:relative}
#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_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_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_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:5px 0 0;font-size:0.95em;letter-spacing:-0.1em}
/* 캡챠 자동등록(입력)방지 기본 - mobile */
#captcha.m_captcha audio {display:block;margin:0 0 5px;width:187px}
#captcha.m_captcha #captcha_img {width:160px;height:60px;border:1px solid #e9e9e9;margin-bottom:3px;margin-top:5px;display:block;}
#captcha.m_captcha #captcha_reload {position:static;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}
#captcha.m_captcha #captcha_reload {position:static;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}
#captcha.m_captcha #captcha_reload span{display:none;}
#captcha.m_captcha #captcha_key {margin:0;padding:0 5px;width:115px;height:29px;border:1px solid #b8c9c2;background:#f7f7f7;font-size:1.333em;font-weight:bold;text-align:center;line-height:29px;margin-left:3px}
#captcha.m_captcha #captcha_info {display:block;margin:5px 0 0;font-size:0.95em;letter-spacing:-0.1em}
#captcha.m_captcha #captcha_mp3 {width:31px;height:31px;background:url('../../../img/captcha.png') no-repeat 0 0 ; vertical-align:top;overflow:hidden;cursor:pointer;text-indent:-9999px;border:none}
#captcha.m_captcha #captcha_mp3 {width:31px;height:31px;background:url('../img/captcha.png') no-repeat 0 0 ; vertical-align:top;overflow:hidden;cursor:pointer;text-indent:-9999px;border:none}
/* ckeditor 단축키 */
.cke_sc {margin:0 0 5px;text-align:right}
@@ -228,18 +252,16 @@ a.btn_admin,.btn_admin {display:inline-block;background:#d13f4a;color:#fff;text-
.cnt_cmt {display:inline-block;margin:0 0 0 3px;font-weight:bold}
/* 기본테이블 */
.tbl_wrap table {width:100%;border-collapse:collapse;border-spacing: 0 5px}
.tbl_wrap table {width:100%;border-collapse:collapse;border-spacing: 0 5px;border-bottom:1px solid #ccc}
.tbl_wrap caption {padding:10px 0;font-weight:bold;text-align:left}
.tbl_head01 {margin:0 0 10px}
.tbl_head01 caption {padding:0;font-size:0;line-height:0;overflow:hidden}
.tbl_head01 thead th {padding:10px 0;font-weight:normal;text-align:center;border-bottom:2px solid #333;}
/*.tbl_head01 thead th:first-child{border-radius:3px 0 0 3px}*/
/*.tbl_head01 thead th:last-child{border-radius:0 3px 3px 0}*/
.tbl_head01 thead th {padding:10px 0;font-weight:normal;text-align:center;border-bottom:2px solid #333;font-size:0.92em;color:#444}
.tbl_head01 thead th a{color:#444;}
.tbl_head01 thead th input {vertical-align:top} /* middle 로 하면 게시판 읽기에서 목록 사용시 체크박스 라인 깨짐 */
.tbl_head01 tfoot th, .tbl_head01 tfoot td {padding:10px 0;border-top:1px solid #c1d1d5;border-bottom:1px solid #c1d1d5;background:#d7e0e2;text-align:center}
.tbl_head01 tbody th {padding:8px 0;border-bottom:1px solid #e8e8e8}
.tbl_head01 td {color:#888;background:#fff;;padding:12px 5px;border-bottom:1px solid #ecf0f1;line-height:1.4em;height:70px;word-break:break-all}
.tbl_head01 td {color:#888;background:#fff;;padding:12px 5px;border-top:1px solid #ecf0f1;line-height:1.4em;height:70px;word-break:break-all}
.tbl_head01 tbody tr:hover td{background:#fafafa;}
.tbl_head01 a {}
@@ -372,3 +394,14 @@ box-shadow: 2px 2px 3px 0px rgba(0,0,0,0.2);}
/* Mobile화면으로 */
#device_change {display:block;margin:0.3em;padding:0.5em 0;border:1px solid #eee;border-radius:2em;background:#fff;color:#000;font-size:2em;text-decoration:none;text-align:center}
@media all and (min-width:1217px) {
#hd_pop{width:1200px}
#hd_wrapper{width:1200px}
#tnb ul{width:1200px}
#gnb #gnb_1dul{width:1200px}
#container_wr{width:1200px}
#container_title span{width:1200px}
#ft{min-width:1200px}
#ft_wr{width:1200px}
#container{width:930px}
}
+10 -7
View File
@@ -16,32 +16,35 @@ include_once(G5_LIB_PATH.'/latest.lib.php');
<!-- 메인화면 최신글 시작 -->
<div class="latest_wrap">
<?php
// 최신글
$sql = " select bo_table, bo_subject
from {$g5[board_table]}
from {$g5['board_table']}
where gr_id = '{$gr_id}'
and bo_list_level <= '{$member[mb_level]}'
and bo_list_level <= '{$member['mb_level']}'
and bo_device <> 'mobile' ";
if(!$is_admin)
$sql .= " and bo_use_cert = '' ";
$sql .= " order by bo_order ";
$result = sql_query($sql);
for ($i=0; $row=sql_fetch_array($result); $i++) {
$lt_style = "";
if ($i%2==1) $lt_style = "margin-left:15px";
if ($i%2==0) $lt_style = "clear:both";
$mod_cnt = 2;
$lt_class = 'col-row col-gn-'.$mod_cnt;
$lt_class .= ($i % $mod_cnt === 0) ? ' box_clear' : '';
?>
<div style="float:left;<?php echo $lt_style ?>">
<div class="<?php echo $lt_class; ?>">
<?php
// 이 함수가 바로 최신글을 추출하는 역할을 합니다.
// 사용방법 : latest(스킨, 게시판아이디, 출력라인, 글자수);
echo latest('theme/basic', $row['bo_table'], 5, 70);
// 테마의 스킨을 사용하려면 theme/basic 과 같이 지정
echo latest('basic', $row['bo_table'], 5, 37);
?>
</div>
<?php
}
?>
</div>
<!-- 메인화면 최신글 끝 -->
<?php
+72 -85
View File
@@ -2,7 +2,7 @@
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
if (G5_IS_MOBILE) {
include_once(G5_THEME_MOBILE_PATH.'/head.php');
include_once(G5_MOBILE_PATH.'/head.php');
return;
}
@@ -15,6 +15,7 @@ include_once(G5_LIB_PATH.'/connect.lib.php');
include_once(G5_LIB_PATH.'/popular.lib.php');
?>
<!-- 상단 시작 { -->
<div id="hd">
<h1 id="hd_h1"><?php echo $g5['title'] ?></h1>
@@ -29,19 +30,17 @@ include_once(G5_LIB_PATH.'/popular.lib.php');
<div id="tnb">
<ul>
<?php if ($is_member) { ?>
<li><a href="<?php echo G5_BBS_URL ?>/member_confirm.php?url=<?php echo G5_BBS_URL ?>/register_form.php"><i class="fa fa-cog" aria-hidden="true"></i> 정보수정</a></li>
<li><a href="<?php echo G5_BBS_URL ?>/logout.php"><i class="fa fa-sign-out" aria-hidden="true"></i> 로그아웃</a></li>
<?php if ($is_admin) { ?>
<li class="tnb_right"><a href="<?php echo G5_ADMIN_URL ?>" class="tnb_admin"><b><i class="fa fa-user-circle" aria-hidden="true"></i> 관리자</b></a></li>
<li class="tnb_admin"><a href="<?php echo G5_ADMIN_URL ?>"><b><i class="fa fa-user-circle" aria-hidden="true"></i> 관리자</b></a></li>
<?php } ?>
<li class="tnb_right"><a href="<?php echo G5_BBS_URL ?>/member_confirm.php?url=<?php echo G5_BBS_URL ?>/register_form.php"><i class="fa fa-cog" aria-hidden="true"></i> 정보수정</a></li>
<li class="tnb_right"><a href="<?php echo G5_BBS_URL ?>/logout.php"><i class="fa fa-sign-out" aria-hidden="true"></i> 로그아웃</a></li>
<?php } else { ?>
<li class="tnb_right"><a href="<?php echo G5_BBS_URL ?>/register.php"><i class="fa fa-user-plus" aria-hidden="true"></i> 회원가입</a></li>
<li class="tnb_right"><a href="<?php echo G5_BBS_URL ?>/login.php"><b><i class="fa fa-sign-in" aria-hidden="true"></i> 로그인</b></a></li>
<li><a href="<?php echo G5_BBS_URL ?>/register.php"><i class="fa fa-user-plus" aria-hidden="true"></i> 회원가입</a></li>
<li><a href="<?php echo G5_BBS_URL ?>/login.php"><b><i class="fa fa-sign-in" aria-hidden="true"></i> 로그인</b></a></li>
<?php } ?>
<li><a href="<?php echo G5_BBS_URL ?>/faq.php"><i class="fa fa-question-circle" aria-hidden="true"></i> FAQ</a></li>
<li><a href="<?php echo G5_BBS_URL ?>/qalist.php"><i class="fa fa-comments" aria-hidden="true"></i> 1:1문의</a></li>
<li><a href="<?php echo G5_BBS_URL ?>/current_connect.php" class="visit"><i class="fa fa-users" aria-hidden="true"></i> 접속자 <span><?php echo connect('theme/basic'); // 현재 접속자수, 테마의 스킨을 사용하려면 스킨을 theme/basic 과 같이 지정 ?></span></a></li>
<li><a href="<?php echo G5_BBS_URL ?>/new.php"><i class="fa fa-history" aria-hidden="true"></i> 새글</a></li>
</ul>
</div>
@@ -51,63 +50,15 @@ include_once(G5_LIB_PATH.'/popular.lib.php');
<a href="<?php echo G5_URL ?>"><img src="<?php echo G5_IMG_URL ?>/logo.jpg" alt="<?php echo $config['cf_title']; ?>"></a>
</div>
<nav id="gnb">
<h2>메인메뉴</h2>
<ul id="gnb_1dul">
<?php
$sql = " select *
from {$g5['menu_table']}
where me_use = '1'
and length(me_code) = '2'
order by me_order, me_id ";
$result = sql_query($sql, false);
$gnb_zindex = 999; // gnb_1dli z-index 값 설정용
for ($i=0; $row=sql_fetch_array($result); $i++) {
?>
<li class="gnb_1dli" style="z-index:<?php echo $gnb_zindex--; ?>">
<a href="<?php echo $row['me_link']; ?>" target="_<?php echo $row['me_target']; ?>" class="gnb_1da"><?php echo $row['me_name'] ?></a>
<?php
$sql2 = " select *
from {$g5['menu_table']}
where me_use = '1'
and length(me_code) = '4'
and substring(me_code, 1, 2) = '{$row['me_code']}'
order by me_order, me_id ";
$result2 = sql_query($sql2);
for ($k=0; $row2=sql_fetch_array($result2); $k++) {
if($k == 0)
echo '<span class="bg">하위분류</span><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"><?php echo $row2['me_name'] ?></a></li>
<?php
}
if($k > 0)
echo '</ul>'.PHP_EOL;
?>
</li>
<?php
}
if ($i == 0) { ?>
<li id="gnb_empty">메뉴 준비 중입니다.<?php if ($is_admin) { ?> <br><a href="<?php echo G5_ADMIN_URL; ?>/menu_list.php">관리자모드 &gt; 환경설정 &gt; 메뉴설정</a>에서 설정하실 수 있습니다.<?php } ?></li>
<?php } ?>
</ul>
</nav>
<div class="hd_sch_wr">
<button type="button" id="sch_op_btn"><i class="fa fa-search" aria-hidden="true"></i><span class="sound_only">검색 열기</span></button>
<fieldset id="hd_sch" >
<legend>사이트 내 전체검색</legend>
<form name="fsearchbox" method="get" action="<?php echo G5_BBS_URL ?>/search.php" onsubmit="return fsearchbox_submit(this);">
<form name="fsearchbox" class="fsearchbox" method="get" action="<?php echo G5_BBS_URL ?>/search.php" onsubmit="return fsearchbox_submit(this);">
<input type="hidden" name="sfl" value="wr_subject||wr_content">
<input type="hidden" name="sop" value="and">
<label for="sch_stx" class="sound_only">검색어<strong class="sound_only"> 필수</strong></label>
<input type="text" name="stx" id="sch_stx" maxlength="20">
<button type="submit" id="sch_submit" value="검색"><i class="fa fa-search" aria-hidden="true"></i><span class="sound_only">검색</span></button>
<button type="button" id="sch_cl_btn">검색 닫기</button>
</form>
<script>
@@ -137,22 +88,67 @@ include_once(G5_LIB_PATH.'/popular.lib.php');
return true;
}
</script>
</fieldset>
<?php echo popular('basic'); // 인기검색어, 테마의 스킨을 사용하려면 스킨을 theme/basic 과 같이 지정 ?>
</div>
<ul id="hd_qnb">
<li><a href="<?php echo G5_BBS_URL ?>/faq.php"><i class="fa fa-question-circle" aria-hidden="true"></i> FAQ</a></li>
<li><a href="<?php echo G5_BBS_URL ?>/qalist.php"><i class="fa fa-comments" aria-hidden="true"></i> 1:1문의</a></li>
<li><a href="<?php echo G5_BBS_URL ?>/current_connect.php" class="visit"><i class="fa fa-users" aria-hidden="true"></i> 접속자 <span><?php echo connect('basic'); // 현재 접속자수, 테마의 스킨을 사용하려면 스킨을 theme/basic 과 같이 지정 ?></span></a></li>
<li><a href="<?php echo G5_BBS_URL ?>/new.php"><i class="fa fa-history" aria-hidden="true"></i> 새글</a></li>
</ul>
</div>
<nav id="gnb">
<h2>메인메뉴</h2>
<ul id="gnb_1dul">
<?php
$sql = " select *
from {$g5['menu_table']}
where me_use = '1'
and length(me_code) = '2'
order by me_order, me_id ";
$result = sql_query($sql, false);
$gnb_zindex = 999; // gnb_1dli z-index 값 설정용
for ($i=0; $row=sql_fetch_array($result); $i++) {
?>
<li class="gnb_1dli" style="z-index:<?php echo $gnb_zindex--; ?>">
<a href="<?php echo $row['me_link']; ?>" target="_<?php echo $row['me_target']; ?>" class="gnb_1da"><?php echo $row['me_name'] ?></a>
<?php
$sql2 = " select *
from {$g5['menu_table']}
where me_use = '1'
and length(me_code) = '4'
and substring(me_code, 1, 2) = '{$row['me_code']}'
order by me_order, me_id ";
$result2 = sql_query($sql2);
for ($k=0; $row2=sql_fetch_array($result2); $k++) {
if($k == 0)
echo '<span class="bg">하위분류</span><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"><?php echo $row2['me_name'] ?></a></li>
<?php
}
if($k > 0)
echo '</ul>'.PHP_EOL;
?>
</li>
<?php
}
if ($i == 0) { ?>
<li id="gnb_empty">메뉴 준비 중입니다.<?php if ($is_admin) { ?> <br><a href="<?php echo G5_ADMIN_URL; ?>/menu_list.php">관리자모드 &gt; 환경설정 &gt; 메뉴설정</a>에서 설정하실 수 있습니다.<?php } ?></li>
<?php } ?>
</ul>
</nav>
</div>
<!-- } 상단 끝 -->
<script>
jQuery(function($){
$("#sch_op_btn").on("click", function() {
$("#hd_sch").css("display","block");
});
$("#sch_cl_btn").on("click", function() {
$("#hd_sch").css("display","none");
});
});
</script>
<hr>
@@ -160,21 +156,12 @@ jQuery(function($){
<div id="wrapper">
<?php if (!defined("_INDEX_")) { ?><h2 id="container_title"><span><?php echo $g5['title'] ?></span></h2><?php } ?>
<div id="container_wr">
<?php if(!defined('ASIDE_DISABLE')) { ?>
<div id="aside">
<?php echo outlogin('theme/basic'); // 외부 로그인, 테마의 스킨을 사용하려면 스킨을 theme/basic 과 같이 지정 ?>
<?php echo poll('theme/basic'); // 설문조사, 테마의 스킨을 사용하려면 스킨을 theme/basic 과 같이 지정 ?>
<?php echo popular('theme/basic'); // 인기검색어, 테마의 스킨을 사용하려면 스킨을 theme/basic 과 같이 지정 ?>
<?php echo visit('theme/basic'); // 접속자집계, 테마의 스킨을 사용하려면 스킨을 theme/basic 과 같이 지정 ?>
<div id="text_size">
<div>
<!-- font_resize('엘리먼트id', '제거할 class', '추가할 class'); -->
<button id="size_down" onclick="font_resize('container', 'ts_up ts_up2', '');" class="select"><img src="<?php echo G5_URL; ?>/img/ts01.png" alt="기본" width="20"></button>
<button id="size_def" onclick="font_resize('container', 'ts_up ts_up2', 'ts_up');"><img src="<?php echo G5_URL; ?>/img/ts02.png" alt="크게" width="20"></button>
<button id="size_up" onclick="font_resize('container', 'ts_up ts_up2', 'ts_up2');"><img src="<?php echo G5_URL; ?>/img/ts03.png" alt="더크게" width="20"></button>
</div>
<div class="aside_inner">
<?php echo outlogin('basic'); // 외부 로그인, 테마의 스킨을 사용하려면 스킨을 theme/basic 과 같이 지정 ?>
<?php echo poll('basic'); // 설문조사, 테마의 스킨을 사용하려면 스킨을 theme/basic 과 같이 지정 ?>
<?php echo visit('basic'); // 접속자집계, 테마의 스킨을 사용하려면 스킨을 theme/basic 과 같이 지정 ?>
</div>
</div>
<?php } //end if ?>
<div id="container" class="<?php echo defined('ASIDE_DISABLE') ? 'aside_disable' : ''; ?>">
<div id="container">
<div class="container_inner">
+2 -1
View File
@@ -62,7 +62,8 @@ var g5_sca = "<?php echo isset($sca)?$sca:''; ?>";
var g5_editor = "<?php echo ($config['cf_editor'] && $board['bo_use_dhtml_editor'])?$config['cf_editor']:''; ?>";
var g5_cookie_domain = "<?php echo G5_COOKIE_DOMAIN ?>";
</script>
<script src="<?php echo G5_JS_URL ?>/jquery-1.8.3.min.js"></script>
<script src="<?php echo G5_JS_URL ?>/jquery-1.12.4.min.js"></script>
<script src="<?php echo G5_JS_URL ?>/jquery-migrate-1.4.1.min.js"></script>
<script src="<?php echo G5_JS_URL ?>/jquery.menu.js?ver=<?php echo G5_JS_VER; ?>"></script>
<script src="<?php echo G5_JS_URL ?>/common.js?ver=<?php echo G5_JS_VER; ?>"></script>
<script src="<?php echo G5_JS_URL ?>/wrest.js?ver=<?php echo G5_JS_VER; ?>"></script>
+7 -4
View File
@@ -12,6 +12,7 @@ include_once(G5_THEME_PATH.'/head.php');
<h2 class="sound_only">최신글</h2>
<!-- 최신글 시작 { -->
<div class="latest_wrap">
<?php
// 최신글
$sql = " select bo_table
@@ -22,20 +23,22 @@ if(!$is_admin)
$sql .= " order by b.gr_order, a.bo_order ";
$result = sql_query($sql);
for ($i=0; $row=sql_fetch_array($result); $i++) {
if ($i%2==1) $lt_style = "margin-left:15px";
else $lt_style = "";
$mod_cnt = 2;
$lt_class = 'col-row col-gn-'.$mod_cnt;
$lt_class .= ($i % $mod_cnt === 0) ? ' box_clear' : '';
?>
<div style="float:left;<?php echo $lt_style ?>" class="lt_wr">
<div class="<?php echo $lt_class; ?>">
<?php
// 이 함수가 바로 최신글을 추출하는 역할을 합니다.
// 사용방법 : latest(스킨, 게시판아이디, 출력라인, 글자수);
// 테마의 스킨을 사용하려면 theme/basic 과 같이 지정
echo latest('theme/basic', $row['bo_table'], 5, 17);
echo latest('basic', $row['bo_table'], 5, 37);
?>
</div>
<?php
}
?>
</div>
<!-- } 최신글 끝 -->
<?php
+15 -6
View File
@@ -6,10 +6,10 @@ if (G5_IS_MOBILE) {
return;
}
?>
</div>
</div>
</div>
</div> <?php /* end container_inner */ ?>
</div> <?php /* end container */ ?>
</div> <?php /* end container_wr */ ?>
</div> <?php /* end wrapper */ ?>
<!-- } 콘텐츠 끝 -->
<hr>
@@ -28,7 +28,16 @@ if (G5_IS_MOBILE) {
<div id="ft_copy">Copyright &copy; <b>소유하신 도메인.</b> All rights reserved.</div>
</div>
<a href="#hd" id="ft_totop">상단으로</a>
<button type="button" id="top_btn"><i class="fa fa-arrow-up" aria-hidden="true"></i><span class="sound_only">상단으로</span></button>
<script>
$(function() {
$("#top_btn").on("click", function() {
$("html, body").animate({scrollTop:0}, '500');
return false;
});
});
</script>
</div>
<?php
@@ -44,7 +53,7 @@ if ($config['cf_analytics']) {
<!-- } 하단 끝 -->
<script>
jQuery(function($) {
$(function() {
// 폰트 리사이즈 쿠키있으면 실행
font_resize("container", get_cookie("ck_font_resize_rmv_class"), get_cookie("ck_font_resize_add_class"));
});