1:1문의 상단 하단 설정 항목 추가
This commit is contained in:
18
bbs/qahead.php
Normal file
18
bbs/qahead.php
Normal file
@ -0,0 +1,18 @@
|
||||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
|
||||
$qa_skin_path = (G5_IS_MOBILE ? G5_MOBILE_PATH : G5_PATH).'/'.G5_SKIN_DIR.'/qa/'.$qaconfig['qa_skin'];
|
||||
$qa_skin_url = (G5_IS_MOBILE ? G5_MOBILE_URL : G5_URL).'/'.G5_SKIN_DIR.'/qa/'.$qaconfig['qa_skin'];
|
||||
|
||||
if (G5_IS_MOBILE) {
|
||||
// 모바일의 경우 설정을 따르지 않는다.
|
||||
include_once('./_head.php');
|
||||
echo stripslashes($qaconfig['qa_mobile_content_head']);
|
||||
} else {
|
||||
if($qaconfig['qa_include_head'])
|
||||
@include ($qaconfig['qa_include_head']);
|
||||
else
|
||||
include ('./_head.php');
|
||||
echo stripslashes($qaconfig['qa_content_head']);
|
||||
}
|
||||
?>
|
||||
@ -7,10 +7,8 @@ if($is_guest)
|
||||
$qaconfig = get_qa_config();
|
||||
|
||||
$g5['title'] = $qaconfig['qa_title'];
|
||||
include_once('./_head.php');
|
||||
include_once('./qahead.php');
|
||||
|
||||
$qa_skin_path = (G5_IS_MOBILE ? G5_MOBILE_PATH : G5_PATH).'/'.G5_SKIN_DIR.'/qa/'.$qaconfig['qa_skin'];
|
||||
$qa_skin_url = (G5_IS_MOBILE ? G5_MOBILE_URL : G5_URL).'/'.G5_SKIN_DIR.'/qa/'.$qaconfig['qa_skin'];
|
||||
$skin_file = $qa_skin_path.'/list.skin.php';
|
||||
|
||||
$category_option = '';
|
||||
@ -120,5 +118,5 @@ if(is_file($skin_file)) {
|
||||
echo '<div>'.str_replace(G5_PATH.'/', '', $skin_file).'이 존재하지 않습니다.</div>';
|
||||
}
|
||||
|
||||
include_once('./_tail.php');
|
||||
include_once('./qatail.php');
|
||||
?>
|
||||
15
bbs/qatail.php
Normal file
15
bbs/qatail.php
Normal file
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
|
||||
if (G5_IS_MOBILE) {
|
||||
echo stripslashes($qaconfig['qa_mobile_content_tail']);
|
||||
// 모바일의 경우 설정을 따르지 않는다.
|
||||
include_once('./_tail.php');
|
||||
} else {
|
||||
echo stripslashes($qaconfig['qa_mobile_content_tail']);
|
||||
if($qaconfig['qa_include_tail'])
|
||||
@include ($board['bo_include_tail']);
|
||||
else
|
||||
include ('./_tail.php');
|
||||
}
|
||||
?>
|
||||
@ -8,10 +8,8 @@ if($is_guest)
|
||||
$qaconfig = get_qa_config();
|
||||
|
||||
$g5['title'] = $qaconfig['qa_title'];
|
||||
include_once('./_head.php');
|
||||
include_once('./qahead.php');
|
||||
|
||||
$qa_skin_path = (G5_IS_MOBILE ? G5_MOBILE_PATH : G5_PATH).'/'.G5_SKIN_DIR.'/qa/'.$qaconfig['qa_skin'];
|
||||
$qa_skin_url = (G5_IS_MOBILE ? G5_MOBILE_URL : G5_URL).'/'.G5_SKIN_DIR.'/qa/'.$qaconfig['qa_skin'];
|
||||
$skin_file = $qa_skin_path.'/view.skin.php';
|
||||
|
||||
if(is_file($skin_file)) {
|
||||
@ -173,5 +171,5 @@ if(is_file($skin_file)) {
|
||||
echo '<div>'.str_replace(G5_PATH.'/', '', $skin_file).'이 존재하지 않습니다.</div>';
|
||||
}
|
||||
|
||||
include_once('./_tail.php');
|
||||
include_once('./qatail.php');
|
||||
?>
|
||||
@ -12,10 +12,8 @@ if($is_guest)
|
||||
$qaconfig = get_qa_config();
|
||||
|
||||
$g5['title'] = $qaconfig['qa_title'];
|
||||
include_once('./_head.php');
|
||||
include_once('./qahead.php');
|
||||
|
||||
$qa_skin_path = (G5_IS_MOBILE ? G5_MOBILE_PATH : G5_PATH).'/'.G5_SKIN_DIR.'/qa/'.$qaconfig['qa_skin'];
|
||||
$qa_skin_url = (G5_IS_MOBILE ? G5_MOBILE_URL : G5_URL).'/'.G5_SKIN_DIR.'/qa/'.$qaconfig['qa_skin'];
|
||||
$skin_file = $qa_skin_path.'/write.skin.php';
|
||||
|
||||
if(is_file($skin_file)) {
|
||||
@ -137,5 +135,5 @@ if(is_file($skin_file)) {
|
||||
echo '<div>'.str_replace(G5_PATH.'/', '', $skin_file).'이 존재하지 않습니다.</div>';
|
||||
}
|
||||
|
||||
include_once('./_tail.php');
|
||||
include_once('./qatail.php');
|
||||
?>
|
||||
Reference in New Issue
Block a user