모바일: 게시판스킨 읽기 충돌 수정
This commit is contained in:
@ -96,7 +96,6 @@ include_once(G4_LIB_PATH.'/popular.lib.php');
|
||||
<div id="wrapper">
|
||||
<div id="side_nb">
|
||||
<?=(G4_IS_MOBILE?outlogin('basic'):outlogin('basic')); // 외부 로그인 ?>
|
||||
<?=(G4_IS_MOBILE?poll('basic'):poll('basic')); // 설문조사 ?>
|
||||
</div>
|
||||
<div id="container">
|
||||
<? if ((!$bo_table || $w == 's' ) && !defined("_INDEX_")) {?><h1 id="wrapper_title"><?=$g4['title']?></h1><?}?>
|
||||
|
||||
@ -137,15 +137,21 @@ include_once(G4_LIB_PATH.'/thumbnail.lib.php');
|
||||
|
||||
<div id="bo_v_con"><?=get_view_thumbnail($view['content']);?></div>
|
||||
<?//echo $view[rich_content]; // {이미지:0} 과 같은 코드를 사용할 경우?>
|
||||
<!-- 테러 태그 방지용 --></xml></xmp><a href=""></a><a href=''></a>
|
||||
|
||||
<? if ($is_signature) { ?><p><?=$signature?></p><? } ?>
|
||||
|
||||
<? if ($scrap_href || $good_href || $nogood_href) { ?>
|
||||
<div id="bo_v_act">
|
||||
<? if ($scrap_href) { ?><a href="<?=$scrap_href; ?>" target="_blank" class="btn_b01" onclick="win_scrap(this.href); return false;">스크랩</a><? } ?>
|
||||
<? if ($good_href) {?><a href="<?=$good_href?>" target="hiddenframe" class="btn_b01">추천 <strong><?=number_format($view['wr_good'])?></strong></a><? } ?>
|
||||
<? if ($nogood_href) {?><a href="<?=$nogood_href?>" target="hiddenframe" class="btn_b01">비추천 <strong><?=number_format($view['wr_nogood'])?></strong></a><? } ?>
|
||||
|
||||
<? if ($good_href) {?>
|
||||
<a href="<?=$good_href.'&'.$qstr?>" id="good_button" class="btn_b01">추천 <strong><?=number_format($view['wr_good'])?></strong></a>
|
||||
<b id="bo_v_act_good"></b>
|
||||
<? } ?>
|
||||
<? if ($nogood_href) {?>
|
||||
<a href="<?=$nogood_href.'&'.$qstr?>" id="nogood_button" class="btn_b01">비추천 <strong><?=number_format($view['wr_nogood'])?></strong></a>
|
||||
<b id="bo_v_act_nogood"></b>
|
||||
<? } ?>
|
||||
</div>
|
||||
<? } else {
|
||||
if($board['bo_use_good'] || $board['bo_use_nogood']) {
|
||||
@ -201,6 +207,18 @@ $(function() {
|
||||
window.open(this.href, "large_image", "top=10,left=10,width=10,height=10,resizable=yes,scrollbars=no,status=no");
|
||||
return false;
|
||||
});
|
||||
|
||||
// 추천, 비추천
|
||||
$("#good_button, #nogood_button").click(function() {
|
||||
var $tx;
|
||||
if(this.id == "good_button")
|
||||
$tx = $("#bo_v_act_good");
|
||||
else
|
||||
$tx = $("#bo_v_act_nogood");
|
||||
|
||||
excute_good(this.href, $(this), $tx);
|
||||
return false;
|
||||
});
|
||||
});
|
||||
|
||||
function view_image_resize()
|
||||
@ -218,4 +236,27 @@ function view_image_resize()
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function excute_good(href, $el, $tx)
|
||||
{
|
||||
$.post(
|
||||
href,
|
||||
{ js: "on" },
|
||||
function(data) {
|
||||
if(data.error) {
|
||||
alert(data.error);
|
||||
return false;
|
||||
}
|
||||
|
||||
if(data.count) {
|
||||
$el.find("strong").text(number_format(String(data.count)));
|
||||
if($tx.attr("id").search("nogood") > -1) {
|
||||
$tx.text("이 글을 비추천하셨습니다.");
|
||||
} else {
|
||||
$tx.text("이 글을 추천하셨습니다.");
|
||||
}
|
||||
}
|
||||
}, "json"
|
||||
);
|
||||
}
|
||||
</script>
|
||||
@ -1,4 +1,4 @@
|
||||
<?
|
||||
<?
|
||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
include_once(G4_LIB_PATH.'/thumbnail.lib.php');
|
||||
?>
|
||||
@ -14,10 +14,10 @@ include_once(G4_LIB_PATH.'/thumbnail.lib.php');
|
||||
|
||||
<section id="bo_v_info">
|
||||
<h2>게시물 정보</h2>
|
||||
작성자 <strong><?=$view['name']?><? if ($is_ip_view) { echo " ($ip)"; } ?></strong>
|
||||
<span class="sound_only">작성일</span><strong><?=date("y-m-d H:i", strtotime($view['wr_datetime']))?></strong>
|
||||
조회<strong><?=number_format($view['wr_hit'])?>회</strong>
|
||||
댓글<strong><?=number_format($view['wr_comment'])?>건</strong>
|
||||
작성자 <strong><?=$view['wr_name']?><? if ($is_ip_view) { echo " ($ip)"; } ?></strong><br>
|
||||
작성일 <strong><?=date("y-m-d H:i", strtotime($view['wr_datetime']))?></strong><br>
|
||||
조회 <strong><?=number_format($view['wr_hit'])?>회</strong><br>
|
||||
댓글 <strong><?=number_format($view['wr_comment'])?>건</strong>
|
||||
</section>
|
||||
|
||||
<?
|
||||
@ -137,15 +137,20 @@ include_once(G4_LIB_PATH.'/thumbnail.lib.php');
|
||||
|
||||
<div id="bo_v_con"><?=get_view_thumbnail($view['content']);?></div>
|
||||
<?//echo $view[rich_content]; // {이미지:0} 과 같은 코드를 사용할 경우?>
|
||||
<!-- 테러 태그 방지용 --></xml></xmp><a href=""></a><a href=''></a>
|
||||
|
||||
<? if ($is_signature) { ?><p><?=$signature?></p><? } ?>
|
||||
|
||||
<? if ($scrap_href || $good_href || $nogood_href) { ?>
|
||||
<div id="bo_v_act">
|
||||
<? if ($scrap_href) { ?><a href="<?=$scrap_href; ?>" target="_blank" class="btn_b01" onclick="win_scrap(this.href); return false;">스크랩</a><? } ?>
|
||||
<? if ($good_href) {?><a href="<?=$good_href?>" target="hiddenframe" class="btn_b01">추천 <strong><?=number_format($view['wr_good'])?></strong></a><? } ?>
|
||||
<? if ($nogood_href) {?><a href="<?=$nogood_href?>" target="hiddenframe" class="btn_b01">비추천 <strong><?=number_format($view['wr_nogood'])?></strong></a><? } ?>
|
||||
<? if ($good_href) {?>
|
||||
<a href="<?=$good_href.'&'.$qstr?>" id="good_button" class="btn_b01">추천 <strong><?=number_format($view['wr_good'])?></strong></a>
|
||||
<b id="bo_v_act_good"></b>
|
||||
<? } ?>
|
||||
<? if ($nogood_href) {?>
|
||||
<a href="<?=$nogood_href.'&'.$qstr?>" id="nogood_button" class="btn_b01">비추천 <strong><?=number_format($view['wr_nogood'])?></strong></a>
|
||||
<b id="bo_v_act_nogood"></b>
|
||||
<? } ?>
|
||||
</div>
|
||||
<? } else {
|
||||
if($board['bo_use_good'] || $board['bo_use_nogood']) {
|
||||
@ -201,6 +206,18 @@ $(function() {
|
||||
window.open(this.href, "large_image", "top=10,left=10,width=10,height=10,resizable=yes,scrollbars=no,status=no");
|
||||
return false;
|
||||
});
|
||||
|
||||
// 추천, 비추천
|
||||
$("#good_button, #nogood_button").click(function() {
|
||||
var $tx;
|
||||
if(this.id == "good_button")
|
||||
$tx = $("#bo_v_act_good");
|
||||
else
|
||||
$tx = $("#bo_v_act_nogood");
|
||||
|
||||
excute_good(this.href, $(this), $tx);
|
||||
return false;
|
||||
});
|
||||
});
|
||||
|
||||
function view_image_resize()
|
||||
@ -218,4 +235,27 @@ function view_image_resize()
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function excute_good(href, $el, $tx)
|
||||
{
|
||||
$.post(
|
||||
href,
|
||||
{ js: "on" },
|
||||
function(data) {
|
||||
if(data.error) {
|
||||
alert(data.error);
|
||||
return false;
|
||||
}
|
||||
|
||||
if(data.count) {
|
||||
$el.find("strong").text(number_format(String(data.count)));
|
||||
if($tx.attr("id").search("nogood") > -1) {
|
||||
$tx.text("이 글을 비추천하셨습니다.");
|
||||
} else {
|
||||
$tx.text("이 글을 추천하셨습니다.");
|
||||
}
|
||||
}
|
||||
}, "json"
|
||||
);
|
||||
}
|
||||
</script>
|
||||
@ -22,6 +22,10 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
|
||||
<hr>
|
||||
|
||||
<?=(G4_IS_MOBILE?poll('basic'):poll('basic')); // 설문조사 ?>
|
||||
|
||||
<hr>
|
||||
|
||||
<footer id="ft">
|
||||
<h1><?=$config['cf_title']?> 정보</h1>
|
||||
<?=popular('basic'); // 인기검색어 ?>
|
||||
|
||||
Reference in New Issue
Block a user