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 @@
{$var->description}
+{nl2br($var->description)}
{$var->description}
+{nl2br($var->description)}