From 0b7a4fc71ba13232c73f54cf3afb596d9abcaf28 Mon Sep 17 00:00:00 2001 From: zero Date: Tue, 5 Jun 2007 09:38:39 +0000 Subject: [PATCH] git-svn-id: http://xe-core.googlecode.com/svn/trunk@1553 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- classes/template/TemplateHandler.class.php | 8 ++--- common/css/default.css | 34 +++++++++++++++++----- 2 files changed, 31 insertions(+), 11 deletions(-) diff --git a/classes/template/TemplateHandler.class.php b/classes/template/TemplateHandler.class.php index 3f19e3dbe..72c2491c7 100644 --- a/classes/template/TemplateHandler.class.php +++ b/classes/template/TemplateHandler.class.php @@ -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 = 'tpl_path?>'.$path; - return str_replace($str2, $path, $str1); + $output = str_replace($str2, $path, $str1); + return $output; } /** diff --git a/common/css/default.css b/common/css/default.css index 43f1bf401..d8733aa80 100644 --- a/common/css/default.css +++ b/common/css/default.css @@ -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;}