영카트 5.4 버전 내용 적용
This commit is contained in:
@ -7,6 +7,7 @@ if (G5_IS_MOBILE) {
|
||||
}
|
||||
|
||||
if(G5_COMMUNITY_USE === false) {
|
||||
define('G5_IS_COMMUNITY_PAGE', true);
|
||||
include_once(G5_THEME_SHOP_PATH.'/shop.head.php');
|
||||
return;
|
||||
}
|
||||
@ -22,7 +23,6 @@ include_once(G5_LIB_PATH.'/popular.lib.php');
|
||||
<!-- 상단 시작 { -->
|
||||
<div id="hd">
|
||||
<h1 id="hd_h1"><?php echo $g5['title'] ?></h1>
|
||||
|
||||
<div id="skip_to_container"><a href="#container">본문 바로가기</a></div>
|
||||
|
||||
<?php
|
||||
@ -31,26 +31,20 @@ 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_admin"><a href="<?php echo G5_ADMIN_URL ?>"><b><i class="fa fa-user-circle" aria-hidden="true"></i> 관리자</b></a></li>
|
||||
<?php } ?>
|
||||
<?php } else { ?>
|
||||
<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 } ?>
|
||||
|
||||
<div class="inner">
|
||||
<?php if(G5_COMMUNITY_USE) { ?>
|
||||
<li class="tnb_left tnb_shop"><a href="<?php echo G5_SHOP_URL; ?>/"><i class="fa fa-shopping-bag" aria-hidden="true"></i> 쇼핑몰</a></li>
|
||||
<li class="tnb_left tnb_community"><a href="<?php echo G5_URL; ?>/"><i class="fa fa-home" aria-hidden="true"></i> 커뮤니티</a></li>
|
||||
<ul id="hd_define">
|
||||
<li class="active"><a href="<?php echo G5_URL ?>/">커뮤니티</a></li>
|
||||
<li><a href="<?php echo G5_SHOP_URL ?>/">쇼핑몰</a></li>
|
||||
</ul>
|
||||
<?php } ?>
|
||||
|
||||
</ul>
|
||||
|
||||
<ul id="hd_qnb">
|
||||
<li><a href="<?php echo G5_BBS_URL ?>/faq.php">FAQ</a></li>
|
||||
<li><a href="<?php echo G5_BBS_URL ?>/qalist.php">Q&A</a></li>
|
||||
<li><a href="<?php echo G5_BBS_URL ?>/new.php">새글</a></li>
|
||||
<li><a href="<?php echo G5_BBS_URL ?>/current_connect.php" class="visit">접속자<strong class="visit-num"><?php echo connect('theme/basic'); // 현재 접속자수, 테마의 스킨을 사용하려면 스킨을 theme/basic 과 같이 지정 ?></strong></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div id="hd_wrapper">
|
||||
|
||||
@ -59,7 +53,7 @@ include_once(G5_LIB_PATH.'/popular.lib.php');
|
||||
</div>
|
||||
|
||||
<div class="hd_sch_wr">
|
||||
<fieldset id="hd_sch" >
|
||||
<fieldset id="hd_sch">
|
||||
<legend>사이트 내 전체검색</legend>
|
||||
<form name="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">
|
||||
@ -101,11 +95,18 @@ include_once(G5_LIB_PATH.'/popular.lib.php');
|
||||
|
||||
<?php echo popular('theme/basic'); // 인기검색어, 테마의 스킨을 사용하려면 스킨을 theme/basic 과 같이 지정 ?>
|
||||
</div>
|
||||
<ul id="hd_qnb">
|
||||
<li><a href="<?php echo G5_BBS_URL ?>/faq.php"><i class="fa fa-question" aria-hidden="true"></i><span>FAQ</span></a></li>
|
||||
<li><a href="<?php echo G5_BBS_URL ?>/qalist.php"><i class="fa fa-comments" aria-hidden="true"></i><span>1:1문의</span></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>접속자</span><strong class="visit-num"><?php echo connect('theme/basic'); // 현재 접속자수, 테마의 스킨을 사용하려면 스킨을 theme/basic 과 같이 지정 ?></strong></a></li>
|
||||
<li><a href="<?php echo G5_BBS_URL ?>/new.php"><i class="fa fa-history" aria-hidden="true"></i><span>새글</span></a></li>
|
||||
<ul class="hd_login">
|
||||
<?php if ($is_member) { ?>
|
||||
<li><a href="<?php echo G5_BBS_URL ?>/member_confirm.php?url=<?php echo G5_BBS_URL ?>/register_form.php">정보수정</a></li>
|
||||
<li><a href="<?php echo G5_BBS_URL ?>/logout.php">로그아웃</a></li>
|
||||
<?php if ($is_admin) { ?>
|
||||
<li class="tnb_admin"><a href="<?php echo correct_goto_url(G5_ADMIN_URL); ?>">관리자</a></li>
|
||||
<?php } ?>
|
||||
<?php } else { ?>
|
||||
<li><a href="<?php echo G5_BBS_URL ?>/register.php">회원가입</a></li>
|
||||
<li><a href="<?php echo G5_BBS_URL ?>/login.php">로그인</a></li>
|
||||
<?php } ?>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
@ -113,38 +114,16 @@ include_once(G5_LIB_PATH.'/popular.lib.php');
|
||||
<h2>메인메뉴</h2>
|
||||
<div class="gnb_wrap">
|
||||
<ul id="gnb_1dul">
|
||||
<li class="gnb_1dli gnb_mnal"><button type="button" class="gnb_menu_btn"><i class="fa fa-bars" aria-hidden="true"></i><span class="sound_only">전체메뉴열기</span></button></li>
|
||||
<li class="gnb_1dli gnb_mnal"><button type="button" class="gnb_menu_btn" title="전체메뉴"><i class="fa fa-bars" aria-hidden="true"></i><span class="sound_only">전체메뉴열기</span></button></li>
|
||||
<?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 값 설정용
|
||||
$menu_datas = array();
|
||||
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++) {
|
||||
$menu_datas[$i] = $row;
|
||||
|
||||
$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++) {
|
||||
$menu_datas[$i]['sub'][$k] = $row2;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
$menu_datas = get_menu_db(0, true);
|
||||
$gnb_zindex = 999; // gnb_1dli z-index 값 설정용
|
||||
$i = 0;
|
||||
foreach( $menu_datas as $row ){
|
||||
if( empty($row) ) continue;
|
||||
if( empty($row) ) continue;
|
||||
$add_class = (isset($row['sub']) && $row['sub']) ? 'gnb_al_li_plus' : '';
|
||||
?>
|
||||
<li class="gnb_1dli" style="z-index:<?php echo $gnb_zindex--; ?>">
|
||||
<li class="gnb_1dli <?php echo $add_class; ?>" 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
|
||||
$k = 0;
|
||||
@ -153,7 +132,7 @@ include_once(G5_LIB_PATH.'/popular.lib.php');
|
||||
if( empty($row2) ) continue;
|
||||
|
||||
if($k == 0)
|
||||
echo '<span class="bg">하위분류</span><ul class="gnb_2dul">'.PHP_EOL;
|
||||
echo '<span class="bg">하위분류</span><div class="gnb_2dul"><ul class="gnb_2dul_box">'.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
|
||||
@ -161,7 +140,7 @@ include_once(G5_LIB_PATH.'/popular.lib.php');
|
||||
} //end foreach $row2
|
||||
|
||||
if($k > 0)
|
||||
echo '</ul>'.PHP_EOL;
|
||||
echo '</ul></div>'.PHP_EOL;
|
||||
?>
|
||||
</li>
|
||||
<?php
|
||||
@ -188,7 +167,7 @@ include_once(G5_LIB_PATH.'/popular.lib.php');
|
||||
if($k == 0)
|
||||
echo '<ul>'.PHP_EOL;
|
||||
?>
|
||||
<li><a href="<?php echo $row2['me_link']; ?>" target="_<?php echo $row2['me_target']; ?>"><i class="fa fa-caret-right" aria-hidden="true"></i> <?php echo $row2['me_name'] ?></a></li>
|
||||
<li><a href="<?php echo $row2['me_link']; ?>" target="_<?php echo $row2['me_target']; ?>"><?php echo $row2['me_name'] ?></a></li>
|
||||
<?php
|
||||
$k++;
|
||||
} //end foreach $row2
|
||||
@ -207,16 +186,17 @@ include_once(G5_LIB_PATH.'/popular.lib.php');
|
||||
</ul>
|
||||
<button type="button" class="gnb_close_btn"><i class="fa fa-times" aria-hidden="true"></i></button>
|
||||
</div>
|
||||
<div id="gnb_all_bg"></div>
|
||||
</div>
|
||||
</nav>
|
||||
<script>
|
||||
|
||||
$(function(){
|
||||
$(".gnb_menu_btn").click(function(){
|
||||
$("#gnb_all").show();
|
||||
$("#gnb_all, #gnb_all_bg").show();
|
||||
});
|
||||
$(".gnb_close_btn").click(function(){
|
||||
$("#gnb_all").hide();
|
||||
$(".gnb_close_btn, #gnb_all_bg").click(function(){
|
||||
$("#gnb_all, #gnb_all_bg").hide();
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user