영카트 5.4 버전 내용 적용
This commit is contained in:
@ -34,56 +34,59 @@ include_once(G5_LIB_PATH.'/popular.lib.php');
|
||||
<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">
|
||||
<button type="button" id="gnb_close" class="hd_closer"><span class="sound_only">메뉴 </span>닫기</button>
|
||||
|
||||
<button type="button" id="gnb_close" class="hd_closer"><span class="sound_only">메뉴 닫기</span><i class="fa fa-times" aria-hidden="true"></i></button>
|
||||
<?php echo outlogin('basic'); // 외부 로그인 ?>
|
||||
<ul id="gnb_1dul">
|
||||
<?php
|
||||
$sql = " select *
|
||||
from {$g5['menu_table']}
|
||||
where me_mobile_use = '1'
|
||||
and length(me_code) = '2'
|
||||
order by me_order, me_id ";
|
||||
$result = sql_query($sql, false);
|
||||
|
||||
for($i=0; $row=sql_fetch_array($result); $i++) {
|
||||
$menu_datas = get_menu_db(1, true);
|
||||
$i = 0;
|
||||
foreach( $menu_datas as $row ){
|
||||
if( empty($row) ) continue;
|
||||
?>
|
||||
<li class="gnb_1dli">
|
||||
<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_mobile_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++) {
|
||||
$k = 0;
|
||||
foreach( (array) $row['sub'] as $row2 ){
|
||||
if( empty($row2) ) continue;
|
||||
if($k == 0)
|
||||
echo '<button type="button" class="btn_gnb_op">하위분류</button><ul class="gnb_2dul">'.PHP_EOL;
|
||||
echo '<button type="button" class="btn_gnb_op"><span class="sound_only">하위분류</span></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>
|
||||
<?php
|
||||
}
|
||||
$k++;
|
||||
} //end foreach $row2
|
||||
|
||||
if($k > 0)
|
||||
echo '</ul>'.PHP_EOL;
|
||||
?>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
$i++;
|
||||
} //end foreach $row
|
||||
|
||||
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>
|
||||
<?php } ?>
|
||||
<li class="gnb_1dli"><a href="<?php echo G5_SHOP_URL ?>" class="gnb_1da"> 쇼핑몰</a></li>
|
||||
</ul>
|
||||
<ul id="hd_nb">
|
||||
<li class="hd_nb1"><a href="<?php echo G5_BBS_URL ?>/faq.php" id="snb_faq"><i class="fa fa-question" aria-hidden="true"></i>FAQ</a></li>
|
||||
<li class="hd_nb2"><a href="<?php echo G5_BBS_URL ?>/qalist.php" id="snb_qa"><i class="fa fa-comments" aria-hidden="true"></i>1:1문의</a></li>
|
||||
<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>접속자 <span><?php echo connect('basic'); // 현재 접속자수 ?></span></a></li>
|
||||
<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>새글</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<button type="button" id="user_btn" class="hd_opener"><i class="fa fa-search" 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><i class="fa fa-times" aria-hidden="true"></i></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">
|
||||
<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>
|
||||
|
||||
@ -115,22 +118,7 @@ include_once(G5_LIB_PATH.'/popular.lib.php');
|
||||
}
|
||||
</script>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<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>
|
||||
|
||||
<?php echo outlogin('basic'); // 외부 로그인 ?>
|
||||
|
||||
<ul id="hd_nb">
|
||||
<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>
|
||||
<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>
|
||||
<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>
|
||||
|
||||
</ul>
|
||||
|
||||
<?php echo popular('basic'); // 인기검색어 ?>
|
||||
<div id="text_size">
|
||||
<!-- font_resize('엘리먼트id', '제거할 class', '추가할 class'); -->
|
||||
<button id="size_down" onclick="font_resize('container', 'ts_up ts_up2', '', this);" class="select"><img src="<?php echo G5_URL; ?>/img/ts01.png" width="20" alt="기본"></button>
|
||||
@ -140,7 +128,7 @@ include_once(G5_LIB_PATH.'/popular.lib.php');
|
||||
</div>
|
||||
|
||||
<script>
|
||||
jQuery(function ($) {
|
||||
$(function () {
|
||||
//폰트 크기 조정 위치 지정
|
||||
var font_resize_class = get_cookie("ck_font_resize_add_class");
|
||||
if( font_resize_class == 'ts_up' ){
|
||||
@ -151,7 +139,7 @@ include_once(G5_LIB_PATH.'/popular.lib.php');
|
||||
$("#size_up").addClass("select");
|
||||
}
|
||||
|
||||
$(".hd_opener").on("click", function(e) {
|
||||
$(".hd_opener").on("click", function() {
|
||||
var $this = $(this);
|
||||
var $hd_layer = $this.next(".hd_div");
|
||||
|
||||
@ -168,30 +156,17 @@ include_once(G5_LIB_PATH.'/popular.lib.php');
|
||||
}
|
||||
});
|
||||
|
||||
$("#container").on("click", function(e) {
|
||||
$("#container").on("click", function() {
|
||||
$(".hd_div").hide();
|
||||
}).on("click_font_resize", function(e) {
|
||||
|
||||
var $this = $(this),
|
||||
$text_size_button = $("#text_size button");
|
||||
|
||||
$text_size_button.removeClass("select");
|
||||
|
||||
if( $this.hasClass("ts_up") ){
|
||||
$text_size_button.eq(1).addClass("select");
|
||||
} else if ( $this.hasClass("ts_up2") ) {
|
||||
$text_size_button.eq(2).addClass("select");
|
||||
} else {
|
||||
$text_size_button.eq(0).addClass("select");
|
||||
}
|
||||
});
|
||||
|
||||
$(".btn_gnb_op").click(function(e){
|
||||
$(".btn_gnb_op").click(function(){
|
||||
$(this).toggleClass("btn_gnb_cl").next(".gnb_2dul").slideToggle(300);
|
||||
|
||||
});
|
||||
|
||||
$(".hd_closer").on("click", function(e) {
|
||||
$(".hd_closer").on("click", function() {
|
||||
var idx = $(".hd_closer").index($(this));
|
||||
$(".hd_div:visible").hide();
|
||||
$(".hd_opener:eq("+idx+")").find("span").text("열기");
|
||||
@ -207,4 +182,8 @@ include_once(G5_LIB_PATH.'/popular.lib.php');
|
||||
<div id="wrapper">
|
||||
|
||||
<div id="container">
|
||||
<?php if (!defined("_INDEX_")) { ?><h2 id="container_title" class="top" title="<?php echo get_text($g5['title']); ?>"><?php echo get_head_title($g5['title']); ?></h2><?php } ?>
|
||||
<?php if (!defined("_INDEX_")) { ?>
|
||||
<h2 id="container_title" class="top" title="<?php echo get_text($g5['title']); ?>">
|
||||
<a href="javascript:history.back();"><i class="fa fa-chevron-left" aria-hidden="true"></i><span class="sound_only">뒤로가기</span></a> <?php echo get_head_title($g5['title']); ?>
|
||||
</h2>
|
||||
<?php } ?>
|
||||
|
||||
Reference in New Issue
Block a user