first commit 2
This commit is contained in:
@@ -0,0 +1,89 @@
|
||||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
|
||||
/**
|
||||
* skin/nav/lwd_basic/nav.skin.php
|
||||
* LWD 미디어 스타일 메뉴 스킨 (복원)
|
||||
*/
|
||||
|
||||
// 메뉴 데이터 가져오기 (그누보드 공통 함수 사용)
|
||||
$menu_datas = get_menu_db(0, true);
|
||||
?>
|
||||
|
||||
<div class="lwd-header-wrap">
|
||||
<!-- 1. 상단 유틸리티 바 (로그인, 회원가입 등) -->
|
||||
<div class="header-top">
|
||||
<div class="container">
|
||||
<ul class="top-util">
|
||||
<?php if ($is_member) { ?>
|
||||
<li><a href="<?php echo G5_BBS_URL ?>/logout.php">로그아웃</a></li>
|
||||
<li><a href="<?php echo G5_BBS_URL ?>/member_confirm.php?url=<?php echo G5_BBS_URL ?>/register_form.php">정보수정</a></li>
|
||||
<?php } else { ?>
|
||||
<li><a href="<?php echo G5_BBS_URL ?>/login.php">로그인</a></li>
|
||||
<li><a href="<?php echo G5_BBS_URL ?>/register.php">회원가입</a></li>
|
||||
<?php } ?>
|
||||
<li><a href="<?php echo G5_BBS_URL ?>/faq.php">고객센터</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 2. 메인 헤더 (로고, 검색창) -->
|
||||
<div class="header-main">
|
||||
<div class="container">
|
||||
<h1 class="logo">
|
||||
<a href="<?php echo G5_URL ?>">
|
||||
<!-- 💡 [핵심] 공통 이미지 폴더의 로고를 참조합니다. -->
|
||||
<img src="<?php echo G5_THEME_URL ?>/img/logo/logo.jpg" alt="<?php echo $config['cf_title']; ?>">
|
||||
</a>
|
||||
</h1>
|
||||
|
||||
<div class="header-search">
|
||||
<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">
|
||||
<input type="hidden" name="sop" value="and">
|
||||
<input type="text" name="stx" id="sch_stx" maxlength="20" placeholder="검색어를 입력해주세요">
|
||||
<button type="submit" id="sch_submit"><i class="fa fa-search" aria-hidden="true"></i></button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 3. GNB 네비게이션 -->
|
||||
<nav class="gnb-wrap">
|
||||
<div class="container">
|
||||
<ul class="gnb">
|
||||
<?php foreach ($menu_datas as $row) { ?>
|
||||
<li class="gnb-item <?php echo isset($row['sub']) && count($row['sub']) > 0 ? 'has-sub' : ''; ?>">
|
||||
<a href="<?php echo $row['me_link']; ?>" target="_<?php echo $row['me_target']; ?>" class="gnb-link">
|
||||
<?php echo $row['me_name'] ?>
|
||||
</a>
|
||||
<?php if (isset($row['sub']) && count($row['sub']) > 0) { ?>
|
||||
<ul class="gnb-sub">
|
||||
<?php foreach ($row['sub'] as $sub) { ?>
|
||||
<li>
|
||||
<a href="<?php echo $sub['me_link']; ?>" target="_<?php echo $sub['me_target']; ?>">
|
||||
<?php echo $sub['me_name'] ?>
|
||||
</a>
|
||||
</li>
|
||||
<?php } ?>
|
||||
</ul>
|
||||
<?php } ?>
|
||||
</li>
|
||||
<?php } ?>
|
||||
</ul>
|
||||
</div>
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
function fsearchbox_submit(f)
|
||||
{
|
||||
if (f.stx.value.length < 2) {
|
||||
alert("검색어는 두글자 이상 입력하십시오.");
|
||||
f.stx.select();
|
||||
f.stx.focus();
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
</script>
|
||||
@@ -0,0 +1,150 @@
|
||||
@charset "utf-8";
|
||||
|
||||
/* LWD Basic 메뉴 스킨 스타일 */
|
||||
|
||||
.lwd-header-wrap {
|
||||
width: 100%;
|
||||
background: #fff;
|
||||
border-bottom: 1px solid #ddd;
|
||||
}
|
||||
|
||||
.lwd-header-wrap .container {
|
||||
max-width: 1200px;
|
||||
margin: 0 auto;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
/* 1. 상단 유틸리티 바 */
|
||||
.header-top {
|
||||
background: #f8f9fa;
|
||||
border-bottom: 1px solid #eee;
|
||||
height: 35px;
|
||||
line-height: 35px;
|
||||
}
|
||||
|
||||
.header-top .top-util {
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
list-style: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.header-top .top-util li {
|
||||
margin-left: 15px;
|
||||
font-size: 12px;
|
||||
color: #666;
|
||||
}
|
||||
|
||||
.header-top .top-util li a {
|
||||
color: #666;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
/* 2. 메인 헤더 */
|
||||
.header-main {
|
||||
padding: 25px 0;
|
||||
}
|
||||
|
||||
.header-main .container {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.header-main .logo img {
|
||||
max-height: 50px;
|
||||
}
|
||||
|
||||
.header-search {
|
||||
position: relative;
|
||||
width: 300px;
|
||||
}
|
||||
|
||||
.header-search input[type="text"] {
|
||||
width: 100%;
|
||||
height: 40px;
|
||||
border: 2px solid #0056b3;
|
||||
padding: 0 40px 0 15px;
|
||||
font-size: 14px;
|
||||
border-radius: 20px;
|
||||
}
|
||||
|
||||
.header-search button {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
background: none;
|
||||
border: none;
|
||||
color: #0056b3;
|
||||
font-size: 18px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
/* 3. GNB 네비게이션 */
|
||||
.gnb-wrap {
|
||||
background: #0056b3;
|
||||
}
|
||||
|
||||
.gnb {
|
||||
display: flex;
|
||||
list-style: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.gnb-item {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.gnb-link {
|
||||
display: block;
|
||||
padding: 0 25px;
|
||||
height: 50px;
|
||||
line-height: 50px;
|
||||
color: #fff;
|
||||
font-size: 16px;
|
||||
font-weight: 500;
|
||||
text-decoration: none;
|
||||
transition: background-color 0.2s;
|
||||
}
|
||||
|
||||
.gnb-item:hover .gnb-link {
|
||||
background-color: #004494;
|
||||
}
|
||||
|
||||
/* 서브 메뉴 */
|
||||
.gnb-sub {
|
||||
display: none;
|
||||
position: absolute;
|
||||
top: 50px;
|
||||
left: 0;
|
||||
min-width: 180px;
|
||||
background: #fff;
|
||||
border: 1px solid #ddd;
|
||||
box-shadow: 0 5px 10px rgba(0,0,0,0.1);
|
||||
z-index: 999;
|
||||
list-style: none;
|
||||
padding: 10px 0;
|
||||
}
|
||||
|
||||
.gnb-item:hover .gnb-sub {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.gnb-sub li a {
|
||||
display: block;
|
||||
padding: 10px 20px;
|
||||
color: #333;
|
||||
font-size: 14px;
|
||||
text-decoration: none;
|
||||
transition: background-color 0.2s, color 0.2s; /* 💡 [추가] 부드러운 전환 효과 */
|
||||
}
|
||||
|
||||
/* 💡 [핵심] 하위 메뉴 호버 효과 추가 */
|
||||
.gnb-sub li a:hover {
|
||||
background-color: #f0f2f5; /* 밝은 회색 배경 */
|
||||
color: #0056b3; /* 메인 테마 색상 */
|
||||
}
|
||||
Reference in New Issue
Block a user