Merge pull request #2 from BOBODDO/fix/widget

색상값을 항상 올바르게 출력하도록 수정
This commit is contained in:
BOBODDO 2021-11-06 16:38:25 +09:00 committed by GitHub
commit 9b13dfd127
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -909,7 +909,7 @@ class contentItem extends BaseObject
$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($this->get('title_color') && $this->get('title_color') != 'N') $attrs[] = 'color:#' . ltrim($this->get('title_color'), '#');
if(count($attrs)) $title = sprintf("<span style=\"%s\">%s</span>", implode(';', $attrs), $title);