그누보드 5.0.23 수정 내역 적용
This commit is contained in:
@ -10,13 +10,13 @@ if (!$co['co_id'])
|
||||
$g5['title'] = $co['co_subject'];
|
||||
include_once('./_head.php');
|
||||
|
||||
$str = conv_content($co['co_content'], $co['co_html'], $co['co_tag_filter_use']);
|
||||
$co_content = $co['co_mobile_content'] ? $co['co_mobile_content'] : $co['co_content'];
|
||||
$str = conv_content($co_content, $co['co_html'], $co['co_tag_filter_use']);
|
||||
|
||||
// $src 를 $dst 로 변환
|
||||
unset($src);
|
||||
unset($dst);
|
||||
$src[] = "/{{쇼핑몰명}}|{{홈페이지제목}}/";
|
||||
//$dst[] = $default[de_subject];
|
||||
$dst[] = $config['cf_title'];
|
||||
$src[] = "/{{회사명}}|{{상호}}/";
|
||||
$dst[] = $default['de_admin_company_name'];
|
||||
@ -44,21 +44,20 @@ $src[] = "/{{정보관리책임자e-mail}}|{{정보책임자e-mail}}/i";
|
||||
$dst[] = $default['de_admin_info_email'];
|
||||
|
||||
$str = preg_replace($src, $dst, $str);
|
||||
?>
|
||||
|
||||
<!-- 등록내용 시작 { -->
|
||||
<article id="ctt" class="ctt_<?php echo $co_id; ?>">
|
||||
<header>
|
||||
<h1><?php echo $g5['title']; ?></h1>
|
||||
</header>
|
||||
// 스킨경로
|
||||
if(trim($co['co_mobile_skin']) == '')
|
||||
$co['co_mobile_skin'] = 'basic';
|
||||
|
||||
<div id="ctt_con">
|
||||
<?php echo $str; ?>
|
||||
</div>
|
||||
$content_skin_path = G5_MOBILE_PATH .'/'.G5_SKIN_DIR.'/content/'.$co['co_mobile_skin'];
|
||||
$content_skin_url = G5_MOBILE_URL .'/'.G5_SKIN_DIR.'/content/'.$co['co_mobile_skin'];
|
||||
$skin_file = $content_skin_path.'/content.skin.php';
|
||||
|
||||
</article>
|
||||
<!-- } 등록내용 끝 -->
|
||||
if(is_file($skin_file)) {
|
||||
include($skin_file);
|
||||
} else {
|
||||
echo '<p>'.str_replace(G5_PATH.'/', '', $skin_file).'이 존재하지 않습니다.</p>';
|
||||
}
|
||||
|
||||
<?php
|
||||
include_once('./_tail.php');
|
||||
?>
|
||||
|
||||
18
mobile/skin/content/basic/content.skin.php
Normal file
18
mobile/skin/content/basic/content.skin.php
Normal file
@ -0,0 +1,18 @@
|
||||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
|
||||
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
|
||||
add_stylesheet('<link rel="stylesheet" href="'.$content_skin_url.'/style.css">', 0);
|
||||
|
||||
?>
|
||||
|
||||
<article id="ctt" class="ctt_<?php echo $co_id; ?>">
|
||||
<header>
|
||||
<h1><?php echo $g5['title']; ?></h1>
|
||||
</header>
|
||||
|
||||
<div id="ctt_con">
|
||||
<?php echo $str; ?>
|
||||
</div>
|
||||
|
||||
</article>
|
||||
8
mobile/skin/content/basic/style.css
Normal file
8
mobile/skin/content/basic/style.css
Normal file
@ -0,0 +1,8 @@
|
||||
@charset "utf-8";
|
||||
|
||||
/* 내용관리 */
|
||||
#ctt {margin:10px 0;padding:10px;border-top:1px solid #e9e9e9;border-bottom:1px solid #e9e9e9}
|
||||
.ctt_admin {margin:0 5px;text-align:right}
|
||||
#ctt header h1 {position:absolute;font-size:0;line-height:0;overflow:hidden}
|
||||
#ctt_con {padding:10px 0}
|
||||
.ctt_img {text-align:center}
|
||||
@ -6,7 +6,7 @@ add_stylesheet('<link rel="stylesheet" href="'.$latest_skin_url.'/style.css">',
|
||||
?>
|
||||
|
||||
<div class="lt">
|
||||
<a href="<?php echo G5_BBS_URL ?>/board.php?bo_table=<?php echo $bo_table ?>" class="lt_title" onclick="return false"><strong><?php echo $bo_subject ?></strong></a>
|
||||
<a href="<?php echo G5_BBS_URL ?>/board.php?bo_table=<?php echo $bo_table ?>" class="lt_title"><strong><?php echo $bo_subject ?></strong></a>
|
||||
<ul>
|
||||
<?php for ($i=0; $i<count($list); $i++) { ?>
|
||||
<li>
|
||||
|
||||
@ -52,6 +52,15 @@ if(G5_DEVICE_BUTTON_DISPLAY && G5_IS_MOBILE) {
|
||||
if ($config['cf_analytics']) {
|
||||
echo $config['cf_analytics'];
|
||||
}
|
||||
?>
|
||||
|
||||
<script>
|
||||
$(function() {
|
||||
// 폰트 리사이즈 쿠키있으면 실행
|
||||
font_resize("container", get_cookie("ck_font_resize_rmv_class"), get_cookie("ck_font_resize_add_class"));
|
||||
});
|
||||
</script>
|
||||
|
||||
<?php
|
||||
include_once(G5_PATH."/tail.sub.php");
|
||||
?>
|
||||
Reference in New Issue
Block a user