From dd804f33f02cb5d4bd4d7687e40cce2db1667f30 Mon Sep 17 00:00:00 2001 From: zero Date: Mon, 27 Aug 2007 06:32:36 +0000 Subject: [PATCH] =?UTF-8?q?=EC=9C=84=EC=A0=AF=EC=9D=98=20=EC=8A=A4?= =?UTF-8?q?=ED=82=A8=EC=9D=B4=20=EC=97=86=EC=9D=84=20=EA=B2=BD=EC=9A=B0=20?= =?UTF-8?q?=EC=8A=A4=ED=82=A8=20=EB=AA=A9=EB=A1=9D=EC=9D=84=20=EA=B3=A0?= =?UTF-8?q?=EB=A5=B4=EB=8A=94=20=ED=8F=BC=EC=9D=84=20=EB=B3=B4=EC=9D=B4?= =?UTF-8?q?=EC=A7=80=20=EC=95=8A=EB=8F=84=EB=A1=9D=20=ED=95=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://xe-core.googlecode.com/svn/sandbox@2410 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- config/func.inc.php | 12 ++++++++++++ modules/widget/tpl/widget_generate_code.html | 4 +++- modules/widget/tpl/widget_generate_code_in_page.html | 4 +++- 3 files changed, 18 insertions(+), 2 deletions(-) diff --git a/config/func.inc.php b/config/func.inc.php index b5f804627..bd10cd029 100644 --- a/config/func.inc.php +++ b/config/func.inc.php @@ -360,4 +360,16 @@ return $content; } + // hexa값을 RGB로 변환 + if(!function_exists('hexrgb')) { + function hexrgb($hexstr) { + $int = hexdec($hexstr); + + return array("red" => 0xFF & ($int >> 0x10), + "green" => 0xFF & ($int >> 0x8), + "blue" => 0xFF & $int); + } + + } + ?> diff --git a/modules/widget/tpl/widget_generate_code.html b/modules/widget/tpl/widget_generate_code.html index f8dae44ce..97774f520 100644 --- a/modules/widget/tpl/widget_generate_code.html +++ b/modules/widget/tpl/widget_generate_code.html @@ -21,6 +21,7 @@ {$lang->widget} {$widget_info->title} ver {$widget_info->version} + {$lang->skin} @@ -40,6 +41,7 @@ + {$lang->widget_cache} @@ -72,7 +74,7 @@ -

{$var->description}

+

{nl2br($var->description)}

diff --git a/modules/widget/tpl/widget_generate_code_in_page.html b/modules/widget/tpl/widget_generate_code_in_page.html index 0ec4ef3a1..03920930f 100644 --- a/modules/widget/tpl/widget_generate_code_in_page.html +++ b/modules/widget/tpl/widget_generate_code_in_page.html @@ -23,6 +23,7 @@ {$lang->widget} {$widget_info->title} ver {$widget_info->version} + {$lang->skin} @@ -42,6 +43,7 @@ + {$lang->widget_cache} @@ -74,7 +76,7 @@ -

{$var->description}

+

{nl2br($var->description)}