mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 10:41:40 +09:00
게시글/댓글에서 이 게시물을../ 이 댓글을.. 을 조절하는 인자값의 출력결과를 변경
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@3186 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
43f2a35467
commit
cb60a769f2
2 changed files with 46 additions and 20 deletions
|
|
@ -164,17 +164,30 @@
|
||||||
|
|
||||||
// url에 대해서 정규표현식으로 치환
|
// url에 대해서 정규표현식으로 치환
|
||||||
$content = preg_replace('!([^>^"^\'^=])(http|https|ftp|mms):\/\/([^ ^<^"^\']*)!is','$1<a href="$2://$3" onclick="window.open(this.href);return false;">$2://$3</a>',' '.$content);
|
$content = preg_replace('!([^>^"^\'^=])(http|https|ftp|mms):\/\/([^ ^<^"^\']*)!is','$1<a href="$2://$3" onclick="window.open(this.href);return false;">$2://$3</a>',' '.$content);
|
||||||
if(!$add_comment_info) return $content;
|
|
||||||
|
|
||||||
$content = sprintf(
|
// 추가 정보 출력을 하지 않는 경우
|
||||||
'<!--BeforeComment(%d,%d)--><div class="comment_%d_%d">%s</div><div class="comment_popup_menu"><span class="comment_popup_menu comment_%d">%s</span></div><!--AfterComment(%d,%d)-->',
|
if(!$add_comment_info) {
|
||||||
$this->comment_srl, $this->get('member_srl'),
|
$content = sprintf(
|
||||||
$this->comment_srl, $this->get('member_srl'),
|
'<!--BeforeComment(%d,%d)--><div class="comment_%d_%d">%s</div><!--AfterComment(%d,%d)-->',
|
||||||
$content,
|
$this->comment_srl, $this->get('member_srl'),
|
||||||
$this->comment_srl, Context::getLang('cmd_comment_do'),
|
$this->comment_srl, $this->get('member_srl'),
|
||||||
$this->comment_srl, $this->get('member_srl'),
|
$content,
|
||||||
$this->comment_srl, $this->get('member_srl')
|
$this->comment_srl, $this->get('member_srl'),
|
||||||
);
|
$this->comment_srl, $this->get('member_srl')
|
||||||
|
);
|
||||||
|
// 추가 정보 출력을 하지 않는 경우 "이 댓글을.." 메뉴 추가
|
||||||
|
} else {
|
||||||
|
$content = sprintf(
|
||||||
|
'<!--BeforeComment(%d,%d)--><div class="comment_%d_%d">%s</div><div class="comment_popup_menu"><span class="comment_popup_menu comment_%d">%s</span></div><!--AfterComment(%d,%d)-->',
|
||||||
|
$this->comment_srl, $this->get('member_srl'),
|
||||||
|
$this->comment_srl, $this->get('member_srl'),
|
||||||
|
$content,
|
||||||
|
$this->comment_srl, Context::getLang('cmd_comment_do'),
|
||||||
|
$this->comment_srl, $this->get('member_srl'),
|
||||||
|
$this->comment_srl, $this->get('member_srl')
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
return $content;
|
return $content;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -209,22 +209,35 @@
|
||||||
|
|
||||||
$content = $this->get('content');
|
$content = $this->get('content');
|
||||||
|
|
||||||
|
|
||||||
// OL/LI 태그를 위한 치환 처리
|
// OL/LI 태그를 위한 치환 처리
|
||||||
$content = preg_replace('!<(ol|ul|blockquote)>!is','<\\1 style="margin-left:40px;">',$content);
|
$content = preg_replace('!<(ol|ul|blockquote)>!is','<\\1 style="margin-left:40px;">',$content);
|
||||||
|
|
||||||
// url에 대해서 정규표현식으로 치환
|
// url에 대해서 정규표현식으로 치환
|
||||||
$content = preg_replace('!([^>^"^\'^=])(http|https|ftp|mms):\/\/([^ ^<^"^\']*)!is','$1<a href="$2://$3" onclick="window.open(this.href);return false;">$2://$3</a>',' '.$content);
|
$content = preg_replace('!([^>^"^\'^=])(http|https|ftp|mms):\/\/([^ ^<^"^\']*)!is','$1<a href="$2://$3" onclick="window.open(this.href);return false;">$2://$3</a>',' '.$content);
|
||||||
if(!$add_document_info) return $content;
|
|
||||||
|
|
||||||
$content = sprintf(
|
// 추가 정보 출력을 하지 않는 경우
|
||||||
'<!--BeforeDocument(%d,%d)--><div class="document_%d_%d">%s</div><div class="document_popup_menu"><span class="document_popup_menu document_%d">%s</span></div><!--AfterDocument(%d,%d)-->',
|
if(!$add_document_info) {
|
||||||
$this->document_srl, $this->get('member_srl'),
|
$content = sprintf(
|
||||||
$this->document_srl, $this->get('member_srl'),
|
'<!--BeforeDocument(%d,%d)--><div class="document_%d_%d">%s</div><!--AfterDocument(%d,%d)-->',
|
||||||
$content,
|
$this->document_srl, $this->get('member_srl'),
|
||||||
$this->document_srl, Context::getLang('cmd_document_do'),
|
$this->document_srl, $this->get('member_srl'),
|
||||||
$this->document_srl, $this->get('member_srl'),
|
$content,
|
||||||
$this->document_srl, $this->get('member_srl')
|
$this->document_srl, $this->get('member_srl'),
|
||||||
);
|
$this->document_srl, $this->get('member_srl')
|
||||||
|
);
|
||||||
|
// 추가 정보를 출력시 "이 게시물을..'이라는 메뉴 추가
|
||||||
|
} else {
|
||||||
|
$content = sprintf(
|
||||||
|
'<!--BeforeDocument(%d,%d)--><div class="document_%d_%d">%s</div><div class="document_popup_menu"><span class="document_popup_menu document_%d">%s</span></div><!--AfterDocument(%d,%d)-->',
|
||||||
|
$this->document_srl, $this->get('member_srl'),
|
||||||
|
$this->document_srl, $this->get('member_srl'),
|
||||||
|
$content,
|
||||||
|
$this->document_srl, Context::getLang('cmd_document_do'),
|
||||||
|
$this->document_srl, $this->get('member_srl'),
|
||||||
|
$this->document_srl, $this->get('member_srl')
|
||||||
|
);
|
||||||
|
}
|
||||||
return $content;
|
return $content;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue