사용자: 댓글 답글 관련 마크업 #150

This commit is contained in:
whitedot
2013-01-17 20:41:27 +09:00
parent 911efd90f4
commit ec5bcec264
2 changed files with 11 additions and 9 deletions

View File

@ -14,7 +14,7 @@ var char_max = parseInt(<?=$comment_max?>); // 최대
<?
for ($i=0; $i<count($list); $i++) {
$comment_id = $list[$i]['wr_id'];
$comment_depth = strlen($list[$i]['wr_comment_reply']);
$comment_depth = strlen($list[$i]['wr_comment_reply']) * 30;
if (strstr($list[$i]['wr_option'], "secret")) echo '비밀글';
$str = $list[$i]['content'];
if (strstr($list[$i]['wr_option'], "secret"))
@ -24,9 +24,10 @@ var char_max = parseInt(<?=$comment_max?>); // 최대
//$str = preg_replace("/\[\<a\s.*href\=\"(http|https|ftp)\:\/\/([^[:space:]]+)\.(swf)\".*\<\/a\>\]/i", "<script>doc_write(flash_movie('$1://$2.$3'));</script>", $str);
$str = preg_replace("/\[\<a\s*href\=\"(http|https|ftp)\:\/\/([^[:space:]]+)\.(gif|png|jpg|jpeg|bmp)\"\s*[^\>]*\>[^\s]*\<\/a\>\]/i", "<img src='$1://$2.$3' id='target_resize_image[]' onclick='image_window(this);'>", $str);
?>
<article id="c_<?=$comment_id?>">
<article id="c_<?=$comment_id?>" <?if ($comment_depth) {?>style="margin-left:<?=$comment_depth?>px"<?}?>>
<header>
<h1><?=$list[$i]['name']?><span class="sound_only">님의 댓글</span></h1>
<img src="" alt="댓글의 댓글">
<dl class="bo_vc_info">
<? if ($is_ip_view) { ?>
<dt>아이피</dt>