mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 10:41:40 +09:00
Document, Comment 모듈의 xe_class 클래스네임을 부여하는 것에 대해 getContent() 마지막 인자로 조절할 수 있도록 개선
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@5320 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
e49ac7599d
commit
1cc4e83063
2 changed files with 4 additions and 4 deletions
|
|
@ -170,7 +170,7 @@
|
|||
return htmlspecialchars($content);
|
||||
}
|
||||
|
||||
function getContent($add_popup_menu = true, $add_content_info = true) {
|
||||
function getContent($add_popup_menu = true, $add_content_info = true, $add_xe_content_class = true) {
|
||||
if($this->isSecret() && !$this->isAccessible()) return Context::getLang('msg_is_secret');
|
||||
|
||||
$content = $this->get('content');
|
||||
|
|
@ -195,7 +195,7 @@
|
|||
);
|
||||
// 컨텐츠에 대한 조작이 필요하지 않더라도 xe_content라는 클래스명을 꼭 부여
|
||||
} else {
|
||||
$content = sprintf('<div class="xe_content">%s</div>', $content);
|
||||
if($add_xe_content_class) $content = sprintf('<div class="xe_content">%s</div>', $content);
|
||||
}
|
||||
|
||||
return $content;
|
||||
|
|
|
|||
|
|
@ -235,7 +235,7 @@
|
|||
return htmlspecialchars($content);
|
||||
}
|
||||
|
||||
function getContent($add_popup_menu = true, $add_content_info = true, $resource_realpath = false) {
|
||||
function getContent($add_popup_menu = true, $add_content_info = true, $resource_realpath = false, $add_xe_content_class = true) {
|
||||
if(!$this->document_srl) return;
|
||||
|
||||
if($this->isSecret() && !$this->isGranted()) return Context::getLang('msg_is_secret');
|
||||
|
|
@ -271,7 +271,7 @@
|
|||
);
|
||||
// 컨텐츠에 대한 조작이 필요하지 않더라도 xe_content라는 클래스명을 꼭 부여
|
||||
} else {
|
||||
$content = sprintf('<div class="xe_content">%s</div>', $content);
|
||||
if($add_xe_content_class) $content = sprintf('<div class="xe_content">%s</div>', $content);
|
||||
}
|
||||
|
||||
// resource_realpath가 true이면 내용내 이미지의 경로를 절대 경로로 변경
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue