From c1dee8afa00421d0326c2cbe158c8f3d05ea329a Mon Sep 17 00:00:00 2001 From: bnu Date: Thu, 7 May 2009 23:33:38 +0000 Subject: [PATCH] =?UTF-8?q?content=20=EC=9C=84=EC=A0=AF=20:=20title=20?= =?UTF-8?q?=EC=9E=90=EB=A5=B4=EA=B8=B0=EC=97=90=EC=84=9C=20HTML=ED=83=9C?= =?UTF-8?q?=EA=B7=B8=EB=A5=BC=20=ED=8F=AC=ED=95=A8=ED=95=98=EC=97=AC=20?= =?UTF-8?q?=EC=9E=90=EB=A5=B4=EB=8A=94=20=EB=AC=B8=EC=A0=9C=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= 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@6305 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- widgets/content/content.class.php | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/widgets/content/content.class.php b/widgets/content/content.class.php index b8b08600b..d3e1eeeaa 100644 --- a/widgets/content/content.class.php +++ b/widgets/content/content.class.php @@ -727,8 +727,16 @@ return $this->get('module_srl'); } function getTitle($cut_size = 0, $tail='...'){ - if($cut_size) $title = cut_str($this->get('title'), $cut_size, $tail); - else $title = $this->get('title'); + $title = strip_tags($this->get('title')); + + if($cut_size) $title = cut_str($title, $cut_size, $tail); + + $attrs = array(); + if($this->get('title_bold') == 'Y') $attrs[] = 'font-weight:bold'; + if($this->get('title_color') && $this->get('title_color') != 'N') $attrs[] = 'color:#'.$this->get('title_color'); + + if(count($attrs)) $title = sprintf("%s", implode(';', $attrs), htmlspecialchars($title)); + return $title; } function getContent(){