mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-02 01:52:10 +09:00
english comments added
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0_english@8278 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
693e215bc1
commit
4d272994dd
219 changed files with 6407 additions and 8705 deletions
|
|
@ -28,21 +28,21 @@ class HTMLDisplayHandler {
|
|||
|
||||
$edited_layout_file = $oModule->getEditedLayoutFile();
|
||||
|
||||
// 현재 요청된 레이아웃 정보를 구함
|
||||
// get the layout information currently requested
|
||||
$oLayoutModel = &getModel('layout');
|
||||
$layout_info = Context::get('layout_info');
|
||||
$layout_srl = $layout_info->layout_srl;
|
||||
|
||||
// 레이아웃과 연결되어 있으면 레이아웃 컴파일
|
||||
// compile if connected to the layout
|
||||
if($layout_srl > 0){
|
||||
|
||||
// faceoff 레이아웃일 경우 별도 처리
|
||||
// handle separately if the layout is faceoff
|
||||
if($layout_info && $layout_info->type == 'faceoff') {
|
||||
$oLayoutModel->doActivateFaceOff($layout_info);
|
||||
Context::set('layout_info', $layout_info);
|
||||
}
|
||||
|
||||
// 관리자 레이아웃 수정화면에서 변경된 CSS가 있는지 조사
|
||||
// search if the changes CSS exists in the admin layout edit window
|
||||
$edited_layout_css = $oLayoutModel->getUserLayoutCss($layout_srl);
|
||||
|
||||
if(file_exists($edited_layout_css)) Context::addCSSFile($edited_layout_css,true,'all','',100);
|
||||
|
|
@ -66,13 +66,13 @@ class HTMLDisplayHandler {
|
|||
|
||||
if(__DEBUG__==3) $start = getMicroTime();
|
||||
|
||||
// body 내의 <style ..></style>를 header로 이동
|
||||
// move <style ..></style> in body to the header
|
||||
$output = preg_replace_callback('!<style(.*?)<\/style>!is', array($this,'_moveStyleToHeader'), $output);
|
||||
|
||||
// 메타 파일 변경 (캐싱기능등으로 인해 위젯등에서 <!--Meta:경로--> 태그를 content에 넣는 경우가 있음
|
||||
$output = preg_replace_callback('/<!--(#)?Meta:([a-z0-9\_\/\.\@]+)-->/is', array($this,'_transMeta'), $output);
|
||||
// change a meta fine(widget often put the tag like <!--Meta:path--> to the content because of caching)
|
||||
$output = preg_replace_callback('/<!--Meta:([a-z0-9\_\/\.\@]+)-->/is', array($this,'_transMeta'), $output);
|
||||
|
||||
// rewrite module 사용시 생기는 상대경로에 대한 처리를 함
|
||||
// handles a relative path generated by using the rewrite module
|
||||
if(Context::isAllowRewrite()) {
|
||||
$url = parse_url(Context::getRequestUri());
|
||||
$real_path = $url['path'];
|
||||
|
|
@ -89,15 +89,15 @@ class HTMLDisplayHandler {
|
|||
}
|
||||
}
|
||||
|
||||
// 간혹 background-image에 url(none) 때문에 request가 한번 더 일어나는 경우가 생기는 것을 방지
|
||||
// prevent the 2nd request due to url(none) of the background-image
|
||||
$output = preg_replace('/url\((["\']?)none(["\']?)\)/is', 'none', $output);
|
||||
|
||||
if(__DEBUG__==3) $GLOBALS['__trans_content_elapsed__'] = getMicroTime()-$start;
|
||||
|
||||
// 불필요한 정보 제거
|
||||
// Remove unnecessary information
|
||||
$output = preg_replace('/member\_\-([0-9]+)/s','member_0',$output);
|
||||
|
||||
// 최종 레이아웃 변환
|
||||
// convert the final layout
|
||||
Context::set('content', $output);
|
||||
$oTemplate = &TemplateHandler::getInstance();
|
||||
if(Mobile::isFromMobilePhone()) {
|
||||
|
|
@ -109,7 +109,7 @@ class HTMLDisplayHandler {
|
|||
$output = $oTemplate->compile('./common/tpl', 'common_layout');
|
||||
}
|
||||
|
||||
// 사용자 정의 언어 변환
|
||||
// replace the user-defined-language
|
||||
$oModuleController = &getController('module');
|
||||
$oModuleController->replaceDefinedLangCode($output);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue