146 lines
7.1 KiB
PHP
146 lines
7.1 KiB
PHP
<?php
|
|
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
|
|
|
$q = isset($_GET['q']) ? clean_xss_tags($_GET['q'], 1, 1) : '';
|
|
|
|
|
|
/********************/
|
|
|
|
if(G5_IS_MOBILE) {
|
|
include_once(G5_THEME_MSHOP_PATH.'/shop.head.php');
|
|
return;
|
|
}
|
|
|
|
include_once(G5_THEME_PATH.'/head.sub.php');
|
|
include_once(G5_LIB_PATH.'/outlogin.lib.php');
|
|
include_once(G5_LIB_PATH.'/poll.lib.php');
|
|
include_once(G5_LIB_PATH.'/visit.lib.php');
|
|
include_once(G5_LIB_PATH.'/connect.lib.php');
|
|
include_once(G5_LIB_PATH.'/popular.lib.php');
|
|
include_once(G5_LIB_PATH.'/latest.lib.php');
|
|
|
|
add_javascript('<script src="'.G5_JS_URL.'/owlcarousel/owl.carousel.min.js"></script>', 10);
|
|
add_stylesheet('<link rel="stylesheet" href="'.G5_JS_URL.'/owlcarousel/owl.carousel.css">', 0);
|
|
|
|
|
|
add_stylesheet('<link rel="stylesheet" href="'.G5_THEME_CSS_URL.'/style_prestige_1.css?ver='.$version_string.'">', 0);
|
|
add_stylesheet('<link rel="preconnect" href="https://fonts.googleapis.com">', 0);
|
|
add_stylesheet('<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>', 0);
|
|
add_stylesheet('<link href="https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;700;900&display=swap" rel="stylesheet">', 0);
|
|
add_stylesheet('<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css">', 0);
|
|
// add_stylesheet('<link rel="stylesheet" href="'.G5_THEME_URL.'/css/custom_header.css?ver='.$version_string.'">', 1);
|
|
add_stylesheet('<link rel="stylesheet" href="'.G5_THEME_URL.'/css/floating_ads.css?ver='.$version_string.'">', 2);
|
|
|
|
add_javascript('<script src="'.G5_THEME_JS_URL.'/script_trend_1.js?ver='.$version_string.'"></script>', 100);
|
|
add_javascript('<script src="'.G5_THEME_JS_URL.'/member/member.js?ver='.$version_string.'"></script>', 101);
|
|
add_javascript('<script src="'.G5_THEME_URL.'/js/module-helper.js?ver='.$version_string.'"></script>', 1);
|
|
|
|
|
|
/* 팝업 추가 2.1.5 { */
|
|
if(defined('_INDEX_')) { // index에서만 실행
|
|
include G5_BBS_PATH.'/newwin.inc.php'; // 팝업레이어
|
|
}
|
|
/* } */
|
|
|
|
// 사이드영역 숨김처리
|
|
$current_page = basename($_SERVER['PHP_SELF']);
|
|
if ($current_page === 'mypage.php' || $current_page === 'partner.php') {
|
|
echo '<style>#rb_sidemenu_shop {display:none;} #rb_sidemenu_float_shop {width:100% !important; float:none !important;}</style>';
|
|
}
|
|
|
|
?>
|
|
|
|
<?php
|
|
|
|
if (isset($rb_core['layout_hd_shop']) && $rb_core['layout_hd_shop'] == "") {
|
|
echo "<div class='no_data' style='padding:30px 0 !important; margin-top:0px; border:0px !important; background-color:#f9f9f9;'><span class='no_data_section_ul1 font-B color-000'>선택된 헤더 레이아웃이 없습니다.</span><br>환경설정 패널에서 먼저 헤더 레이아웃을 설정해주세요.</div>";
|
|
} else if (isset($rb_core['layout_hd_shop'])) {
|
|
// 레이아웃 인클루드
|
|
include_once(G5_THEME_SHOP_PATH . '/rb.layout_hd/' . $rb_core['layout_hd_shop'] . '/header.php');
|
|
} else {
|
|
echo "<div class='no_data' style='padding:30px 0 !important; margin-top:0px; border:0px !important; background-color:#f9f9f9;'>헤더 레이아웃 설정이 올바르지 않습니다.</span><br>환경설정 패널에서 먼저 헤더 레이아웃을 설정해주세요.</div>";
|
|
}
|
|
|
|
?>
|
|
|
|
|
|
<script>
|
|
function adjustContentPadding() {
|
|
// 💡 [수정] header ID가 #header 또는 #site-header 일 수 있음
|
|
var $header = $('#header').length ? $('#header') : $('#site-header');
|
|
|
|
if ($header.length) {
|
|
var height_header = $header.outerHeight();
|
|
var sticky_header = height_header + 30;
|
|
// contents_wrap 에 구해진 높이값 적용
|
|
$('#contents_wrap').css('padding-top', height_header + 'px');
|
|
$('#rb_sidemenu_shop').css('top', sticky_header + 'px');
|
|
}
|
|
}
|
|
|
|
$(document).ready(function() {
|
|
// 처음 페이지 로드 시 호출
|
|
adjustContentPadding();
|
|
|
|
// 브라우저 리사이즈 시 호출
|
|
$(window).resize(function() {
|
|
adjustContentPadding();
|
|
});
|
|
|
|
// 이미지 로드 등으로 높이가 변할 수 있으므로 잠시 후 한 번 더 실행
|
|
setTimeout(adjustContentPadding, 500);
|
|
});
|
|
</script>
|
|
|
|
<div class="contents_wrap" id="contents_wrap">
|
|
|
|
<?php if (!defined("_INDEX_")) { ?>
|
|
<?php include_once(G5_PATH.'/rb/rb.config/topvisual.shop.php'); ?>
|
|
<?php } ?>
|
|
|
|
<!-- $rb_core['sub_width'] 는 반드시 포함해주세요 (환경설정 > 서브가로폭) -->
|
|
<section class="<?php if (defined("_INDEX_")) { ?>index co_inner_padding_pc_<?php echo $rb_core['inner_padding_pc'] ?> co_gap_pc_<?php echo $rb_core['gap_pc'] ?><?php } else { ?>sub<?php } ?>" <?php if (!defined("_INDEX_")) { ?>style="width:<?php echo $rb_core['sub_width'] ?>px;"<?php } else { ?>style="width:<?php echo $rb_core['main_width'] ?>px;"<?php } ?>>
|
|
|
|
<?php if (!defined("_INDEX_")) { ?>
|
|
|
|
<?php
|
|
$side_float_shop = "";
|
|
if (isset($rb_core['sidemenu_shop']) && $rb_core['sidemenu_shop'] == "left") {
|
|
$side_float_shop = "float:right; width: calc(100% - ".$rb_core['sidemenu_width_shop']."px);";
|
|
} else if (isset($rb_core['sidemenu_shop']) && $rb_core['sidemenu_shop'] == "right") {
|
|
$side_float_shop = "float:left; width: calc(100% - ".$rb_core['sidemenu_width_shop']."px);";
|
|
}
|
|
?>
|
|
<?php if(isset($side_float_shop) && $side_float_shop) { ?>
|
|
<div id="rb_sidemenu_float_shop" style="<?php echo $side_float_shop ?>">
|
|
<?php } ?>
|
|
<?php } ?>
|
|
|
|
|
|
<?php if (!defined("_INDEX_")) { ?>
|
|
<?php if(isset($bo_table) && $bo_table) { ?>
|
|
<div class="rb_bo_top flex_box" data-layout="rb_bo_top_shop_<?php echo $bo_table ?>"></div>
|
|
<?php } ?>
|
|
<?php if(isset($co_id) && $co_id) { ?>
|
|
<div class="rb_co_top flex_box" data-layout="rb_co_top_shop_<?php echo $co_id ?>"></div>
|
|
<?php } ?>
|
|
<?php if(isset($_GET['ca_id']) && $_GET['ca_id']) { ?>
|
|
<div class="rb_ca_top flex_box" data-layout="rb_ca_top_shop_<?php echo $_GET['ca_id'] ?>"></div>
|
|
<?php } ?>
|
|
<?php if(isset($_GET['ev_id']) && $_GET['ev_id']) { ?>
|
|
<div class="rb_ev_top flex_box" data-layout="rb_ev_top_shop_<?php echo $_GET['ev_id'] ?>"></div>
|
|
<?php } ?>
|
|
<?php if(isset($it_id) && $it_id) { ?>
|
|
<div class="rb_it_top flex_box" data-layout="rb_it_top_shop_<?php echo $it_id ?>"></div>
|
|
<?php } ?>
|
|
|
|
|
|
|
|
<?php } ?>
|
|
|
|
<?php if (isset($rb_core['padding_top_shop']) && $rb_core['padding_top_shop'] == 1) { ?>
|
|
<?php if (defined("_INDEX_")) { ?><span style="margin-top:-70px;" class="pc"></span><?php } ?>
|
|
<?php } ?>
|
|
|
|
<?php if (!defined("_INDEX_")) { ?><h2 id="container_title"><?php echo get_head_title($g5['title']); ?></h2><?php } ?>
|