mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-02 01:52:10 +09:00
content 위젯 : title 자르기에서 HTML태그를 포함하여 자르는 문제 수정
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6305 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
961264080e
commit
c1dee8afa0
1 changed files with 10 additions and 2 deletions
|
|
@ -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("<span style=\"%s\">%s</span>", implode(';', $attrs), htmlspecialchars($title));
|
||||
|
||||
return $title;
|
||||
}
|
||||
function getContent(){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue