mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 03:01:43 +09:00
게시판, 블로그, 스프링노트의 글 보기시 모듈의 browser_title + 글의 browser_title이 노출되도록 수정
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@3392 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
01607b68f0
commit
c2c9f8c018
4 changed files with 25 additions and 5 deletions
|
|
@ -221,6 +221,23 @@
|
|||
return $this->db_info;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief 사이트 title adding
|
||||
**/
|
||||
function addBrowserTitle($site_title) {
|
||||
if(!$site_title) return;
|
||||
$oContext = &Context::getInstance();
|
||||
$oContext->_addBrowserTitle($site_title);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief 사이트 title adding
|
||||
**/
|
||||
function _addBrowserTitle($site_title) {
|
||||
if($this->site_title) $this->site_title .= ' - '.htmlspecialchars($site_title);
|
||||
else $this->site_title .= htmlspecialchars($site_title);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief 사이트 title setting
|
||||
**/
|
||||
|
|
|
|||
|
|
@ -101,7 +101,7 @@
|
|||
} else {
|
||||
|
||||
// 브라우저 타이틀 설정
|
||||
Context::setBrowserTitle($oDocument->getTitleText());
|
||||
Context::addBrowserTitle($oDocument->getTitleText());
|
||||
|
||||
// 댓글에디터 설정
|
||||
if($this->grant->write_comment && $oDocument->allowComment() && !$oDocument->isLocked()) $comment_editor[$oDocument->document_srl] = $this->getCommentEditor($oDocument->document_srl, 0, 100);
|
||||
|
|
|
|||
|
|
@ -98,7 +98,7 @@
|
|||
|
||||
} else {
|
||||
// 브라우저 타이틀 설정
|
||||
Context::setBrowserTitle($oDocument->getTitleText());
|
||||
Context::addBrowserTitle($oDocument->getTitleText());
|
||||
|
||||
// 조회수 증가
|
||||
$oDocument->updateReadedCount();
|
||||
|
|
|
|||
|
|
@ -49,10 +49,13 @@
|
|||
// 특정 페이지 선택시 페이지 정보 가져오기
|
||||
if($this->grant->view && $pageid) {
|
||||
$page = $oSpringnoteModel->getPage($pageid);
|
||||
if($page) {
|
||||
for($i=0;$i<count($page->css_files);$i++) {
|
||||
$css_file = $page->css_files[$i];
|
||||
Context::addCssFile($css_file);
|
||||
}
|
||||
Context::addBrowserTitle($page->title);
|
||||
}
|
||||
}
|
||||
|
||||
// 페이지 목록 가져오기
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue