[해결중] 아녕하세요 코딩 관련 질문 드립니다.
본문
현제 shop/shop.head.html.php 파일에 아래와 같이 코딩이 되어 있는데요
제가 잘 몰라서 여쭤 보는 것이니 소중한 답변 부탁 드립니다
아래 코드를 아래와 같이 나누고자 합니다. 그런데 나누려고 보니 모바일 하고 PC 버전 하고 다 통합으로 되어 있어서 좀 나누가기 어려운 점이 있어서요
사실 저 같은 경우에는 모바일 PC 좀 나누어서 코딩을 하는 스타일 입니다.
그리고 예를 들어 파일을 몇개 들어서 인클루드 하는 형태 입니다.
예를 들어
topbar.php / topmenu.php /m_menu.php / submenu.php / mainbanner.php 뭐 이런 식으로 나누어서 인클루드를 하려고 하는데요
그런데 여기서 어떻게 덜어 내서 넣어야 할지 잘 몰라서요
혹시 아시는 분 알려 주실 수 있는지해서요
그리고 위 처럼 하게 되면 각각 페이지에서 스타일 수정이 용이 하고 오히려 수정 하기도 더 쉬워서요
기존 그누보드는 그렇게 해서 사용을 하고 있는데 현제 여기 있는 여러 가지 기능 들이 좀 필요해서 여기서 하려고 하는데 좀 많은 어려움이 있습니다.
혹시 아시는 분은 답변을 좀 부탁을 드립니다,.
감사합니다.
<?php
/**
* theme file : /theme/THEME_NAME/shop/shop.head.html.php
*/
if (!defined('_EYOOM_')) exit;
if ($eyoom['is_responsive'] == '1' || G5_IS_MOBILE) { // 반응형 또는 모바일일때
add_stylesheet('<link rel="stylesheet" href="'.EYOOM_THEME_URL.'/plugins/bootstrap/css/bootstrap.min.css" type="text/css" media="screen">',0);
} else if ($eyoom['is_responsive'] == '0' && !G5_IS_MOBILE) { // 비반응형이면서 PC버전일때
add_stylesheet('<link rel="stylesheet" href="'.EYOOM_THEME_URL.'/plugins/bootstrap/css/bootstrap-nr.min.css" type="text/css" media="screen">',0);
}
add_stylesheet('<link rel="stylesheet" href="'.EYOOM_THEME_URL.'/plugins/fontawesome5/css/fontawesome-all.min.css" type="text/css" media="screen">',0);
if ($eyoom['is_responsive'] == '1' || G5_IS_MOBILE) { // 반응형 또는 모바일일때
add_stylesheet('<link rel="stylesheet" href="'.EYOOM_THEME_URL.'/plugins/eyoom-form/css/eyoom-form.min.css" type="text/css" media="screen">',0);
add_stylesheet('<link rel="stylesheet" href="'.EYOOM_THEME_URL.'/css/common.css" type="text/css" media="screen">',0);
add_stylesheet('<link rel="stylesheet" href="'.EYOOM_THEME_URL.'/skin/shop/'.$eyoom['shop_skin'].'/css/shop_style.css" type="text/css" media="screen">',0);
} else if ($eyoom['is_responsive'] == '0' && !G5_IS_MOBILE) { // 비반응형이면서 PC버전일때
add_stylesheet('<link rel="stylesheet" href="'.EYOOM_THEME_URL.'/plugins/eyoom-form/css/eyoom-form-nr.min.css" type="text/css" media="screen">',0);
add_stylesheet('<link rel="stylesheet" href="'.EYOOM_THEME_URL.'/css/common-nr.css" type="text/css" media="screen">',0);
add_stylesheet('<link rel="stylesheet" href="'.EYOOM_THEME_URL.'/skin/shop/'.$eyoom['shop_skin'].'/css/shop_style_nr.css" type="text/css" media="screen">',0);
}
add_stylesheet('<link rel="stylesheet" href="'.EYOOM_THEME_URL.'/css/custom.css" type="text/css" media="screen">',0);
/**
* 로고 타입 : 'image' || 'text'
*/
$logo = 'image';
/**
* 상품 이미지 미리보기 종류 : 'zoom' || 'slider'
*/
$item_view = 'zoom';
?>
<?php if (!$wmode) { ?>
<div class="wrapper">
<?php
// 팝업창
if(defined('_INDEX_') && $newwin_contents) { // index에서만 실행
echo $newwin_contents;
}
?>
<?php /* Header Topbar */ ?>
<header class="header-topbar">
<div class="container position-relative">
<div class="topbar-left">
<ul class="list-unstyled left-menu">
<li><a href="<?php echo G5_SHOP_URL; ?>" class="active">쇼핑몰</a></li>
<?php if ($eyoom['use_shop_index'] == 'n') { ?>
<li><a href="<?php echo G5_URL; ?>">커뮤니티</a></li>
<?php } ?>
<?php if (!G5_IS_MOBILE) { ?>
<li>
<a id="bookmarkme" href="javascript:void(0);" rel="sidebar" title="bookmark this page">북마크</a>
<script>
$(function() {
$("#bookmarkme").click(function() {
// Mozilla Firefox Bookmark
if ('sidebar' in window && 'addPanel' in window.sidebar) {
window.sidebar.addPanel(location.href,document.title,"");
} else if( /*@cc_on!@*/false) { // IE Favorite
window.external.AddFavorite(location.href,document.title);
} else { // webkit - safari/chrome
alert('단축키 ' + (navigator.userAgent.toLowerCase().indexOf('mac') != - 1 ? 'Command' : 'CTRL') + ' + D를 눌러 북마크에 추가하세요.');
}
});
});
</script>
</li>
<?php } ?>
</ul>
</div>
<ul class="topbar-right list-unstyled">
<div class="member-menu">
<?php if ($is_admin) { // 관리자일 경우 ?>
<li>
<div class="eyoom-form">
<input type="hidden" name="edit_mode" id="edit_mode" value="<?php echo $eyoom_default['edit_mode']; ?>">
<label class="toggle red-toggle">
<input type="checkbox" id="btn_edit_mode" <?php echo $eyoom_default['edit_mode'] == 'on' ? 'checked':''; ?>><i></i><span class="color-grey font-size-12">편집모드</span>
</label>
</div>
</li>
<li><a href="<?php echo G5_ADMIN_URL; ?>"><i class="fas fa-cog margin-right-5"></i>관리자</a></li>
<?php } ?>
<?php if ($is_member) { // 회원일 경우 ?>
<li><a href="<?php echo G5_BBS_URL; ?>/logout.php"><i class="fas fa-sign-out-alt margin-right-5"></i>로그아웃</a></li>
<li><a href="<?php echo G5_SHOP_URL; ?>/mypage.php"><i class="fas fa-user-circle margin-right-5"></i>마이페이지</a></li>
<?php } else { ?>
<li><a href="<?php echo G5_BBS_URL; ?>/register.php"><i class="fas fa-user-plus margin-right-5"></i>회원가입</a></li>
<li><a href="<?php echo G5_BBS_URL; ?>/login.php"><i class="fas fa-unlock-alt margin-right-5"></i>로그인</a></li>
<?php } ?>
<li class="topbar-add-menu">
<a href="#" data-toggle="dropdown" data-hover="dropdown"><i class="fas fa-plus-circle margin-right-5"></i>추가메뉴</a>
<ul class="dropdown-menu" role="menu">
<li><a href="<?php echo G5_SHOP_URL; ?>/cart.php">장바구니</a></li>
<li><a href="<?php echo G5_SHOP_URL; ?>/wishlist.php">위시리스트</a></li>
<li><a href="<?php echo G5_SHOP_URL; ?>/orderinquiry.php">주문/배송조회</a></li>
<li><a href="<?php echo G5_SHOP_URL; ?>/couponzone.php">쿠폰존</a></li>
<li><a href="<?php echo G5_SHOP_URL; ?>/personalpay.php">개인결제</a></li>
<li><a href="<?php echo G5_SHOP_URL; ?>/itemuselist.php">사용후기</a></li>
<li class="divider"></li>
<li><a href="<?php echo G5_BBS_URL; ?>/faq.php">FAQ</a></li>
<li><a href="<?php echo G5_BBS_URL; ?>/qalist.php">1:1문의</a></li>
<?php if ($is_member) { // 회원일 경우 ?>
<li><a href="<?php echo G5_BBS_URL; ?>/member_confirm.php?url=register_form.php">회원정보수정</a></li>
<?php } ?>
</ul>
</li>
</div>
<li class="mobile-nav-trigger">
<a href="#" class="sidebar-left-trigger" data-action="toggle" data-side="left">
<span class="sr-only">Toggle navigation</span>
<span class="fas fa-search margin-right-10"></span>
<span class="fas fa-bars"></span>
</a>
</li>
</ul>
</div>
</header>
<?php /* End Header Topbar */ ?>
<?php if ($eyoom['layout'] == 'wide') { ?>
<div <?php if ($eyoom['sticky'] == 'y') echo 'id="header-fixed"'; ?> class="basic-layout <?php if (defined('_INDEX_')) echo 'fixed-main'; ?>">
<?php } else if ($eyoom['layout'] == 'boxed') { ?>
<div <?php if ($eyoom['sticky'] == 'y') echo 'id="header-fixed"'; ?> class="boxed-layout container <?php if (defined('_INDEX_')) echo 'fixed-main'; ?>">
<?php } ?>
<?php /* Header Title */ ?>
<div class="header-title">
<div class="header-title-in">
<div class="container position-relative">
<?php if ($is_admin == 'super' && !G5_IS_MOBILE) { ?>
<div class="adm-edit-btn btn-edit-mode hidden-xs hidden-sm" style="top:-2px;left:15px;text-align:left">
<div class="btn-group">
<a href="<?php echo G5_ADMIN_URL; ?>/?dir=theme&pid=biz_info&amode=shoplogo&thema=<?php echo $theme; ?>&wmode=1" onclick="eb_admset_modal(this.href); return false;" class="btn-e btn-e-xs btn-e-red btn-e-split"><i class="far fa-edit"></i> 로고 설정</a>
<a href="<?php echo G5_ADMIN_URL; ?>/?dir=theme&pid=biz_info&amode=shoplogo&thema=<?php echo $theme; ?>" target="_blank" class="btn-e btn-e-xs btn-e-red btn-e-split-red dropdown-toggle" title="새창 열기">
<i class="far fa-window-maximize"></i>
</a>
</div>
</div>
<?php } ?>
<a href="<?php echo G5_SHOP_URL; ?>">
<?php if ($logo == 'text') { ?>
<h1><?php echo $config['cf_title']; ?></h1>
<?php } else if ($logo == 'image') { ?>
<?php if (!G5_IS_MOBILE) { ?>
<?php if (file_exists($top_logo) && !is_dir($top_logo)) { ?>
<img src="<?php echo $logo_src['top']; ?>" class="title-logo-image" alt="<?php echo $config['cf_title']; ?>">
<?php } else { ?>
<img src="<?php echo EYOOM_THEME_URL; ?>/image/site_logo.png" class="title-logo-image" alt="<?php echo $config['cf_title']; ?>">
<?php } ?>
<?php } else { ?>
<?php if (file_exists($top_mobile_logo) && !is_dir($top_mobile_logo)) { ?>
<img src="<?php echo $logo_src['mobile_top']; ?>" class="title-logo-image" alt="<?php echo $config['cf_title']; ?>">
<?php } else { ?>
<img src="<?php echo EYOOM_THEME_URL; ?>/image/site_logo.png" class="title-logo-image" alt="<?php echo $config['cf_title']; ?>">
<?php } ?>
<?php } ?>
<?php } ?>
</a>
<div class="header-title-search hidden-sm hidden-xs">
<form name="frmsearch1" action="<?php echo G5_SHOP_URL; ?>/search.php" onsubmit="return search_submit(this);" class="eyoom-form">
<input type="hidden" name="sfl" value="wr_subject||wr_content">
<input type="hidden" name="sop" value="and">
<label for="head_sch_str" class="sound_only">검색어 입력 필수</strong></label>
<div class="input input-button">
<input type="text" name="q" value="<?php echo stripslashes(get_text(get_search_string($q))); ?>" id="head_sch_str" class="sch_stx" placeholder="상품 검색어 입력" required>
<div class="button"><input type="submit"><i class="fa fa-search"></i></div>
</div>
</form>
<?php echo eb_latest('1526255599'); ?>
</div>
<div class="header-title-banner">
<div class="title-banner-icon">
<a href="<?php echo G5_SHOP_URL; ?>/wishlist.php">
<div class="banner-icon-cart-btn">
<i class="fas fa-heart"></i>
<span class="icon-text">위시리스트</span>
<span class="badge badge-red rounded"><?php echo get_wishlist_datas_count(); ?></span>
</div>
</a>
</div>
<div class="title-banner-icon">
<a href="<?php echo G5_SHOP_URL; ?>/cart.php">
<div class="banner-icon-cart-btn">
<i class="fas fa-shopping-basket"></i>
<span class="icon-text">장바구니</span>
<span class="badge badge-red rounded"><?php echo get_boxcart_datas_count(); ?></span>
</div>
</a>
</div>
<div class="clearfix"></div>
</div>
</div>
</div>
</div>
<?php /* End Header Title */ ?>
<?php /* Header Nav */ ?>
<div class="header-nav header-sticky">
<div class="navbar" role="navigation">
<div class="container">
<?php /* ---------- 공지사항 시작 // 991픽셀 이하에서만 출력 ---------- */ ?>
<div class="nav-center hidden-md hidden-lg">
<?php echo eb_latest('1520321978'); ?>
</div>
<?php /* ---------- 공지사항 끝 ---------- */ ?>
<nav class="sidebar left">
<div class="sidebar-left-content">
<?php /* ---------- 모바일용 컨텐츠 시작 // 991픽셀 이하에서만 출력 ---------- */ ?>
<div class="sidebar-member-menu">
<form name="frmsearch1" action="<?php echo G5_SHOP_URL; ?>/search.php" onsubmit="return search_submit(this);" class="eyoom-form margin-bottom-20">
<input type="hidden" name="sfl" value="wr_subject||wr_content">
<input type="hidden" name="sop" value="and">
<label for="side_sch_str" class="sound_only">검색어 입력 필수</strong></label>
<div class="input input-button">
<input type="text" name="q" value="<?php echo stripslashes(get_text(get_search_string($q))); ?>" id="side_sch_str" placeholder="상품 검색어 입력" required>
<div class="button"><input type="submit">검색</div>
</div>
</form>
<?php if ($eyoom['is_shop_theme'] == 'y') { ?>
<a href="<?php echo G5_URL; ?>" class="sidebar-lg-btn btn-e btn-e-lg btn-e-red btn-e-block">
커뮤니티 메인
</a>
<?php } ?>
<?php if ($is_admin) { // 관리자일 경우 ?>
<a href="<?php echo G5_ADMIN_URL; ?>" class="sidebar-lg-btn btn-e btn-e-lg btn-e-yellow btn-e-block">
관리자 페이지
</a>
<?php } ?>
<a href="<?php echo G5_SHOP_URL; ?>/cart.php" class="sidebar-member-btn-box">
<div class="sidebar-other-btn">장바구니</div>
</a>
<a href="<?php echo G5_SHOP_URL; ?>/orderinquiry.php" class="sidebar-member-btn-box">
<div class="sidebar-other-btn pull-right">주문/배송조회</div>
</a>
<div class="margin-bottom-10"></div>
<?php if ($is_member) { // 회원일 경우 ?>
<a href="<?php echo G5_SHOP_URL; ?>/wishlist.php" class="sidebar-member-btn-box">
<div class="sidebar-other-btn">위시리스트</div>
</a>
<a href="<?php echo G5_SHOP_URL; ?>/mypage.php" class="sidebar-member-btn-box">
<div class="sidebar-other-btn pull-right">마이페이지</div>
</a>
<div class="margin-bottom-10"></div>
<a href="<?php echo G5_BBS_URL; ?>/member_confirm.php?url=register_form.php" class="sidebar-member-btn-box">
<div class="sidebar-member-btn">정보수정</div>
</a>
<a href="<?php echo G5_BBS_URL; ?>/logout.php" class="sidebar-member-btn-box">
<div class="sidebar-member-btn pull-right">로그아웃</div>
</a>
<?php } else { // 비회원일 경우 ?>
<a href="<?php echo G5_BBS_URL; ?>/register.php" class="sidebar-member-btn-box">
<div class="sidebar-member-btn">회원가입</div>
</a>
<a href="<?php echo G5_BBS_URL; ?>/login.php" class="sidebar-member-btn-box">
<div class="sidebar-member-btn pull-right">로그인</div>
</a>
<?php } ?>
<div class="clearfix"></div>
</div>
<?php /* ---------- 모바일용 컨텐츠 끝 ---------- */ ?>
<ul class="nav navbar-nav <?php if (defined('_INDEX_')) { ?>navbar-nav-main<?php } ?>">
<?php if ($is_admin == 'super' && !G5_IS_MOBILE) { ?>
<div class="adm-edit-btn btn-edit-mode hidden-xs hidden-sm" style="top:-2px;left:0;text-align:inherit;width:auto">
<div class="btn-group">
<a href="<?php echo $shopmenu_link; ?>&wmode=1" onclick="eb_admset_modal(this.href); return false;" class="btn-e btn-e-xs btn-e-red btn-e-split"><i class="far fa-edit"></i> 쇼핑몰 메뉴 설정</a>
<a href="<?php echo $shopmenu_link; ?>" target="_blank" class="btn-e btn-e-xs btn-e-red btn-e-split-red dropdown-toggle" title="새창 열기">
<i class="far fa-window-maximize"></i>
</a>
</div>
</div>
<?php } ?>
<li id="nav_category" class="nav-category dropdown <?php if (defined('_INDEX_')) { ?>nav-category-main<?php } ?>">
<a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="fa fa-ellipsis-v nav-icon-pre hidden-xs hidden-sm"></i>CATEGORY</a>
<ul class="dropdown-menu">
<?php if ($eyoom['use_eyoom_shopmenu'] == 'n') { // 영카트 분류가 쇼핑몰 메뉴 출력 ?>
<?php if (is_array($menu)) { ?>
<?php foreach ($menu as $key => $menu_1) { ?>
<li class="item-vertical <?php if ($menu_1['active']) echo 'active'; ?> dropdown">
<a href="<?php echo $menu_1['href']; ?>" class="dropdown-toggle" <?php echo G5_IS_MOBILE ? 'data-toggle="dropdown"': 'data-hover="dropdown"'; ?>>
<?php echo $menu_1['ca_name']; ?>
</a>
<?php $index2 = 0; $size2 = count($menu_1['submenu']); ?>
<?php if (is_array($menu_1['submenu'])) { ?>
<?php foreach ($menu_1['submenu'] as $subkey => $menu_2) { ?>
<?php if ($index2 == 0) { ?>
<ul class="dropdown-menu">
<?php } ?>
<li class="<?php if ($menu_2['active']) echo 'active';?>">
<a href="<?php echo $menu_2['href']; ?>"><?php echo $menu_2['ca_name']; ?></a>
</li>
<?php if ($index2 == $size2 - 1) { ?>
</ul>
<?php } ?>
<?php $index2++; } ?>
<?php } ?>
</li>
<?php } ?>
<?php } ?>
<?php } else if ($eyoom['use_eyoom_shopmenu'] == 'y') { // 이윰 쇼핑몰 메뉴 출력 ?>
<?php if (is_array($menu)) { ?>
<?php foreach ($menu as $key => $menu_1) { ?>
<li class="item-vertical <?php if ($menu_1['active']) echo 'active';?> <?php if ($menu_1['submenu']) echo 'dropdown'; ?>">
<a href="<?php echo $menu_1['me_link']; ?>" target="_<?php echo $menu_1['me_target']; ?>" class="dropdown-toggle disabled" <?php echo G5_IS_MOBILE && $menu_1['submenu'] ? 'data-toggle="dropdown"' : 'data-hover="dropdown"';?>>
<?php if ($menu_1['me_icon']) { ?><i class="<?php echo $menu_1['me_icon']; ?> nav-cate-icon margin-right-5"></i><?php } ?>
<?php echo $menu_1['me_name']?>
</a>
<?php if (is_array($menu_1['submenu'])) { ?>
<a href="#" class="cate-dropdown-open dorpdown-toggle hidden-lg hidden-md" data-toggle="dropdown"></a>
<?php } ?>
<?php $index2 = 0; $size2 = count($menu_1['submenu']); ?>
<?php if (is_array($menu_1['submenu'])) { ?>
<?php foreach ($menu_1['submenu'] as $subkey => $menu_2) { ?>
<?php if ($index2 == 0) { ?>
<ul class="dropdown-menu">
<?php } ?>
<li class="dropdown-submenu <?php if ($menu_2['active']) echo 'active';?>">
<a href="<?php echo $menu_2['me_link']; ?>" target="_<?php echo $menu_2['me_target']; ?>">
<span class="submenu-marker"></span>
<?php if ($menu_2['me_icon']) { ?>
<i class="<?php echo $menu_2['me_icon']; ?> margin-right-5"></i>
<?php } ?>
<?php echo $menu_2['me_name']; ?>
<?php if ($menu_2['new']) { ?>
<i class="far fa-check-circle color-red margin-left-5"></i>
<?php } ?>
<?php if ($menu_2['sub'] == 'on') { ?>
<i class="fas fa-angle-right sub-caret hidden-sm hidden-xs"></i><i class="fas fa-angle-down sub-caret hidden-md hidden-lg"></i>
<?php } ?>
</a>
<?php $index3 = 0; $size3 = count($menu_2['subsub']); ?>
<?php if (is_array($menu_2['subsub'])) { ?>
<?php foreach ($menu_2['subsub'] as $ssubkey => $menu_3) { ?>
<?php if ($index3 == 0) { ?>
<ul class="dropdown-menu">
<?php } ?>
<li class="dropdown-submenu <?php if ($menu_3['active']) echo 'active';?>">
<a href="<?php echo $menu_3['me_link']; ?>" target="_<?php echo $menu_3['me_target']; ?>">
<span class="submenu-marker"></span>
<?php if ($menu_3['me_icon']) { ?>
<i class="<?php echo $menu_3['me_icon']; ?> margin-right-5"></i>
<?php } ?>
<?php echo $menu_3['me_name']; ?>
<?php if ($menu_3['new']) { ?>
<i class="far fa-check-circle color-red margin-left-5"></i>
<?php } ?>
<?php if ($menu_3['sub'] == 'on') { ?>
<i class="fas fa-angle-right sub-caret hidden-sm hidden-xs"></i><i class="fas fa-angle-down sub-caret hidden-md hidden-lg"></i>
<?php } ?>
</a>
</li>
<?php if ($index3 == $size3 - 1) { ?>
</ul>
<?php } ?>
<?php $index3++; } ?>
<?php } ?>
</li>
<?php if ($index2 == $size2 - 1) { ?>
</ul>
<?php } ?>
<?php $index2++; } ?>
<?php } ?>
</li>
<?php } ?>
<?php } ?>
<?php } ?>
</ul>
</li>
<li class="visible-xs visible-sm nav-li-space"></li>
<li class="nav-mo-half"><a href="<?php echo G5_SHOP_URL; ?>/listtype.php?type=1">히트상품</a></li>
<li class="nav-mo-half board-right-none"><a href="<?php echo G5_SHOP_URL; ?>/listtype.php?type=2">추천상품</a></li>
<div class="clearfix visible-xs visible-sm "></div>
<li class="nav-mo-half"><a href="<?php echo G5_SHOP_URL; ?>/listtype.php?type=3">최신상품</a></li>
<li class="nav-mo-half board-right-none"><a href="<?php echo G5_SHOP_URL; ?>/listtype.php?type=4">인기상품</a></li>
<div class="clearfix visible-xs visible-sm "></div>
<li class="nav-mo-half"><a href="<?php echo G5_SHOP_URL; ?>/listtype.php?type=5">할인상품</a></li>
<li class="nav-mo-half board-right-none"><a href="<?php echo G5_SHOP_URL; ?>/couponzone.php">쿠폰존</a></li>
<div class="clearfix"></div>
<?php /* ---------- 모바일용 컨텐츠 시작 // 991픽셀 이하에서만 출력 ---------- */ ?>
<li class="visible-xs visible-sm nav-li-space"></li>
<li class="visible-xs visible-sm nav-mo-half"><a href="<?php echo G5_SHOP_URL; ?>/personalpay.php">개인결제</a></li>
<li class="visible-xs visible-sm nav-mo-half board-right-none"><a href="<?php echo G5_SHOP_URL; ?>/itemuselist.php">사용후기</a></li>
<div class="clearfix"></div>
<li class="visible-xs visible-sm nav-mo-half"><a href="<?php echo G5_BBS_URL; ?>/faq.php">FAQ</a></li>
<li class="visible-xs visible-sm nav-mo-half board-right-none"><a href="<?php echo G5_BBS_URL; ?>/qalist.php">1:1문의</a></li>
<div class="clearfix"></div>
<?php /* ---------- 모바일용 컨텐츠 끝 ---------- */ ?>
</ul>
</div>
</nav>
</div>
</div>
<?php /* End Navbar */ ?>
</div>
<?php /* End Header Nav */ ?>
<div class="header-sticky-space"></div>
<?php if (!defined('_INDEX_')) { ?>
<div class="page-title-wrap">
<div class="container">
<?php if (!defined('_EYOOM_MYPAGE_')) { ?>
<h2 class="pull-left">
<i class="fas fa-map-marker-alt"></i> <?php echo $subinfo['title']; ?>
</h2>
<?php if (!$it_id) { ?>
<ul class="breadcrumb pull-right hidden-xs">
<?php echo $subinfo['path']; ?>
</ul>
<?php } ?>
<div class="clearfix"></div>
<?php } else { ?>
<h2><i class="fas fa-map-marker-alt"></i> 마이페이지</h2>
<?php } ?>
</div>
</div>
<?php } ?>
<?php /* Basic Body */ ?>
<div class="basic-body container <?php if (!defined('_INDEX_')) { echo 'page-padding'; if ($footer_top == 'yes') { echo ' ft-padding'; }} ?>">
<?php if (!defined('_INDEX_')) { ?>
<div class="basic-body-page">
<?php /* 페이지 카테고리 시작, 서브페이지 사이드 레이아웃 사용 + 991px 이하에서만 출력 */ ?>
<?php if ($side_layout['use'] == 'yes') { ?>
<div class="category-mobile-area">
<?php if ($sidemenu) { ?>
<div class="tab-scroll-page-category">
<div class="scrollbar">
<div class="handle">
<div class="mousearea"></div>
</div>
</div>
<div id="tab-page-category">
<div class="page-category-list">
<?php foreach ($sidemenu as $smenu) { ?>
<span <?php if ($smenu['active']) echo 'active'; ?>><a href="<?php echo $smenu['me_link']; ?>" target="_<?php echo $smenu['me_target']; ?>"><?php echo $smenu['me_name']; ?></a></span>
<?php } ?>
<span class="fake-span"></span>
</div>
<div class="controls">
<button class="btn prev"><i class="fas fa-caret-left"></i></button>
<button class="btn next"><i class="fas fa-caret-right"></i></button>
</div>
</div>
<div class="tab-page-category-divider"></div>
</div>
<?php } ?>
</div>
<?php } ?>
<?php /* 페이지 카테고리 끝 */ ?>
<?php } ?>
<div class="row">
<?php if ($side_layout['use'] == 'yes') { ?>
<?php
if ($side_layout['pos'] == 'left') {
/* 사이드영역 시작 */
include_once(EYOOM_THEME_SHOP_PATH . '/shop.side.html.php');
/* 사이드영역 끝 */
}
?>
<section class="basic-body-main <?php if (!defined('_INDEX_')) { echo 'page-padding'; } else { if ($footer_top == 'yes') { echo 'ft-padding';}} ?> <?php if ($side_layout['pos'] == 'left') { echo 'right'; } else { echo 'left'; }?>-main col-md-9">
<?php } else { ?>
<section class="basic-body-main col-md-12 <?php if ($footer_top == 'yes') echo 'ft-padding'; ?>">
<?php } ?>
<?php } ?>
댓글목록1
이윰IN님의 댓글
모바일과 PC 따로 파일을 생성하여 각각 상황에 따라 include 하는 방식으로 테마에서 직접 수정하여 얼마든지 다양하게 구현하실 수 있습니다.
즐작하세요. ^^