게시글/댓글/페이지의 컨텐츠에 대해 공통 css를 적용하도록 변경. 글행간 간격/ ol-ul-blockquote에 대해 margin-left를 css로 적용/ table padding/margin을 맞춤

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@3444 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
zero 2007-12-31 02:47:41 +00:00
parent 10d5997c12
commit 5db2626604
4 changed files with 14 additions and 14 deletions

View file

@ -159,16 +159,13 @@
$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_comment_info) {
$content = sprintf(
'<!--BeforeComment(%d,%d)--><div class="comment_%d_%d">%s</div><!--AfterComment(%d,%d)-->',
'<!--BeforeComment(%d,%d)--><div class="comment_%d_%d xe_content">%s</div><!--AfterComment(%d,%d)-->',
$this->comment_srl, $this->get('member_srl'),
$this->comment_srl, $this->get('member_srl'),
$content,
@ -178,7 +175,7 @@
// 추가 정보 출력을 하지 않는 경우 "이 댓글을.." 메뉴 추가
} 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)-->',
'<!--BeforeComment(%d,%d)--><div class="comment_%d_%d xe_content">%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,