git-svn-id: http://xe-core.googlecode.com/svn/trunk@1553 201d5d3c-b55e-5fd7-737f-ddc643e51545

This commit is contained in:
zero 2007-06-05 09:38:39 +00:00
parent d3aa224003
commit 0b7a4fc71b
2 changed files with 31 additions and 11 deletions

View file

@ -91,7 +91,7 @@
$buff = preg_replace_callback('!<\!--#include\(([^\)]*?)\)-->!is', array($this, '_compileIncludeToCode'), $buff);
// 이미지 태그 img의 src의 값이 http:// 나 / 로 시작하지 않으면 제로보드의 root경로부터 시작하도록 변경
$buff = preg_replace_callback('!img([^>]*)src=[\'"]{1}(.*?)[\'"]{1}!is', array($this, '_compileImgPath'), $buff);
$buff = preg_replace_callback('!(img|input)([^>]*)src=[\'"]{1}(.*?)[\'"]{1}!is', array($this, '_compileImgPath'), $buff);
// 변수를 변경
$buff = preg_replace_callback('/\{[^@^ ]([^\}]+)\}/i', array($this, '_compileVarToContext'), $buff);
@ -130,14 +130,14 @@
**/
function _compileImgPath($matches) {
$str1 = $matches[0];
$str2 = $matches[2];
$path = $str2;
$str2 = $path = $matches[3];
if(!eregi("^([a-z0-9\_\.])",$path)) return $str1;
$path = preg_replace('/^(\.\/|\/)/','',$path);
$path = '<?=$this->tpl_path?>'.$path;
return str_replace($str2, $path, $str1);
$output = str_replace($str2, $path, $str1);
return $output;
}
/**

View file

@ -1,18 +1,38 @@
@charset "utf-8";
/*
NHN UIT Lab. WebStandardization Team
Jeong, Chan Myeong 070529~070529
*/
body, div, td, p, a {
font-family:arial, sans-serif;
font-size:12px;
/* default.css - Type Selector Definition */
* { margin:0; padding:0; font-family:"돋움", Dotum, "굴림", Gulim, AppleGothic, Sans-serif;}
html, body { height:100%;}
html { width:100%; position:relative;}
body { font-size:.75em; margin:2em;}
img { border:none;}
label { cursor:pointer;}
select { height:1.6em;}
select:hover,
select:focus { background:#eeeeee;}
option { padding-right:.5em;}
li { list-style:none;}
a { text-decoration:none;}
a:hover { text-decoration:underline;}
address { font-style:normal;}
/* Input Style Definition */
.inputTypeText { border:1px solid; border-color:#a6a6a6 #d8d8d8 #d8d8d8 #a6a6a6; padding:3px; height:1em; line-height:1em; background:#fbfbfb;}
.inputTypeText:hover,
.inputTypeText:focus { background:#eeeeee;}
a.bold {
font-weight:bold;
}
FORM {
display:inline;
}
a.bold {
font-weight:bold;
}
.editor_blue_text { color: #145ff9; text-decoration:none; border-bottom:2px solid #4a7fec;}
.editor_red_text { color: #f42126; text-decoration:none; border-bottom:2px solid #e54347;}
.editor_yellow_text { color: #c9bd00; text-decoration:none; border-bottom:2px solid #ece460;}