mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-05 09: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
|
|
@ -209,22 +209,35 @@
|
|||
|
||||
$content = $this->get('content');
|
||||
|
||||
|
||||
// OL/LI 태그를 위한 치환 처리
|
||||
$content = preg_replace('!<(ol|ul|blockquote)>!is','<\\1 style="margin-left:40px;">',$content);
|
||||
|
||||
// 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);
|
||||
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)-->',
|
||||
$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')
|
||||
);
|
||||
// 추가 정보 출력을 하지 않는 경우
|
||||
if(!$add_document_info) {
|
||||
$content = sprintf(
|
||||
'<!--BeforeDocument(%d,%d)--><div class="document_%d_%d">%s</div><!--AfterDocument(%d,%d)-->',
|
||||
$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')
|
||||
);
|
||||
// 추가 정보를 출력시 "이 게시물을..'이라는 메뉴 추가
|
||||
} 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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue