86 lines
3.3 KiB
PHP
86 lines
3.3 KiB
PHP
<?php
|
|
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
|
|
|
if (G5_IS_MOBILE) {
|
|
include_once(G5_THEME_MOBILE_PATH.'/head.php');
|
|
return;
|
|
}
|
|
|
|
if(G5_COMMUNITY_USE === false) {
|
|
define('G5_IS_COMMUNITY_PAGE', true);
|
|
include_once(G5_THEME_SHOP_PATH.'/shop.head.php');
|
|
return;
|
|
}
|
|
include_once(G5_THEME_PATH.'/head.sub.php');
|
|
include_once(G5_LIB_PATH.'/latest.lib.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');
|
|
|
|
if(defined('_INDEX_')) { // index에서만 실행
|
|
include G5_BBS_PATH.'/newwin.inc.php'; // 팝업레이어
|
|
}
|
|
|
|
include_once(G5_PATH.'/rb/rb.mod/alarm/alarm.php'); // 실시간 알림
|
|
?>
|
|
|
|
|
|
<?php
|
|
|
|
if (isset($rb_core['layout_hd']) && $rb_core['layout_hd'] == "") {
|
|
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'])) {
|
|
// 레이아웃 인클루드
|
|
include_once(G5_THEME_PATH . '/rb.layout_hd/' . $rb_core['layout_hd'] . '/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>
|
|
$(document).ready(function() {
|
|
// header의 높이 구하기
|
|
var height_header = $('#header').outerHeight();
|
|
// contents_wrap 에 구해진 높이값 적용
|
|
$('#contents_wrap').css('padding-top', height_header + 'px');
|
|
});
|
|
</script>
|
|
<?php if (defined("_INDEX_")) { ?>
|
|
<style>
|
|
#contents_wrap {padding-top: 0px !important;}
|
|
</style>
|
|
<?php } ?>
|
|
|
|
<div class="contents_wrap" id="contents_wrap">
|
|
|
|
<!--
|
|
$rb_core['sub_width'] 는 반드시 포함해주세요 (환경설정 > 서브가로폭)
|
|
모듈박스 스타일 설정
|
|
md_border_ : (solid, dashed)
|
|
md_radius_ : (0~30)
|
|
co_inner_padding_ : (0~30)
|
|
co_gap_ : (0~30)
|
|
-->
|
|
<section class="<?php if (defined("_INDEX_")) { ?>index 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 (isset($rb_core['padding_top']) && $rb_core['padding_top'] == 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']); ?>
|
|
<?php if(isset($bo_table) && $bo_table) { ?>
|
|
<span class="font-R"><?php echo $board['bo_mobile_subject']; ?></span>
|
|
<?php } ?>
|
|
</h2>
|
|
<?php } ?>
|
|
|
|
|
|
|
|
|