mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-25 14:19:58 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@1650 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
07160f84df
commit
bd689e83da
2 changed files with 14 additions and 6 deletions
|
|
@ -777,6 +777,9 @@
|
||||||
$content = preg_replace_callback('!<div([^\>]*)editor_component=([^\>]*)>(.*?)\<\/div\>!is', array($this,'_transEditorComponent'), $content);
|
$content = preg_replace_callback('!<div([^\>]*)editor_component=([^\>]*)>(.*?)\<\/div\>!is', array($this,'_transEditorComponent'), $content);
|
||||||
$content = preg_replace_callback('!<img([^\>]*)editor_component=([^\>]*?)\>!is', array($this,'_transEditorComponent'), $content);
|
$content = preg_replace_callback('!<img([^\>]*)editor_component=([^\>]*?)\>!is', array($this,'_transEditorComponent'), $content);
|
||||||
|
|
||||||
|
// body 내의 <style ..></style>를 header로 이동
|
||||||
|
$content = preg_replace_callback('!<style(.*?)<\/style>!is', array($this,'_moveStyleToHeader'), $content);
|
||||||
|
|
||||||
// <br> 코드 변환
|
// <br> 코드 변환
|
||||||
$content = preg_replace('/<br([^>\/]*)(\/>|>)/i','<br$1 />', $content);
|
$content = preg_replace('/<br([^>\/]*)(\/>|>)/i','<br$1 />', $content);
|
||||||
|
|
||||||
|
|
@ -792,6 +795,14 @@
|
||||||
return $content;
|
return $content;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief <body>내의 <style태그를 header로 이동
|
||||||
|
**/
|
||||||
|
function _moveStyleToHeader($matches) {
|
||||||
|
$this->addHtmlHeader($matches[0]);
|
||||||
|
return '';
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief 내용의 에디터 컴포넌트 코드를 변환
|
* @brief 내용의 에디터 컴포넌트 코드를 변환
|
||||||
**/
|
**/
|
||||||
|
|
|
||||||
|
|
@ -4,12 +4,9 @@
|
||||||
<!--%import("js/blog_tree_menu.js")-->
|
<!--%import("js/blog_tree_menu.js")-->
|
||||||
|
|
||||||
<!--@if($layout_info->background_image)-->
|
<!--@if($layout_info->background_image)-->
|
||||||
<style type="text/css">
|
<style type="text/css">
|
||||||
body {
|
body { background-repeat:repeat-x; background-image:url({getUrl()}{$layout_info->background_image}); }
|
||||||
background-repeat:repeat-x;
|
</style>
|
||||||
background-image:url({getUrl()}{$layout_info->background_image});
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
<!--@end-->
|
<!--@end-->
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue