모바일 풋터 질문좀드리겠습니다
본문
안녕하세요 질문좀 드리겠습니다
모바일 헤더 부분은 이런식으로 게시판 상단을 할수있는데 푸터 부분은 어찌하나요
<?php
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
// 게시판 관리의 상단 내용
if (G5_IS_MOBILE) {
// 모바일의 경우 설정을 따르지 않는다.
if ($bo_table == 'customer' || $bo_table == 'tp' || $bo_table == 'tp2'|| $bo_table == 'tp3' || $bo_table == 'tp4' || $bo_table == 'tp5'|| $bo_table == 'z10' ) {
include_once(G5_THEME_MOBILE_PATH.'/head1.php');
} else {
include_once(G5_BBS_PATH.'/_head.php');
}
echo stripslashes($board['bo_mobile_content_head']);
} else {
@include ($board['bo_include_head']);
echo stripslashes($board['bo_content_head']);
}
?>
<?php
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
// 게시판 관리의 하단 파일 경로
if (G5_IS_MOBILE) {
echo stripslashes($board['bo_mobile_content_tail']);
// 모바일의 경우 설정을 따르지 않는다.
include_once(G5_BBS_PATH.'/_tail.php');
} else {
echo stripslashes($board['bo_content_tail']);
@include ($board['bo_include_tail']);
}
?>
답변 1
그냥 그대로 카피해서 넣으면 될듯싶네요.
if (G5_IS_MOBILE) {
// 모바일의 경우 설정을 따르지 않는다.
if ($bo_table == 'customer' || $bo_table == 'tp' || $bo_table == 'tp2'|| $bo_table == 'tp3' || $bo_table == 'tp4' || $bo_table == 'tp5'|| $bo_table == 'z10' ) {
include_once(G5_THEME_MOBILE_PATH.'/원하는 테일 php');
} else {
include_once(G5_BBS_PATH.'/_tail.php');
}
echo stripslashes($board['bo_mobile_content_tail']);
} else {
@include ($board['bo_include_tail']);
echo stripslashes($board['bo_content_tail']);
}
?>