확장변수 홈페이지 형태의 길이가 길 경우 줄여서 표시되도록 수정

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7878 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
zero 2010-11-23 07:57:48 +00:00
parent 3834042722
commit d878d9c241

View file

@ -141,7 +141,7 @@
$value = $this->_getTypeValue($this->type, $this->value);
switch($this->type) {
case 'homepage' :
return ($value)?sprintf('<a href="%s" onclick="window.open(this.href); return false;">%s</a>', $value, $value):"";
return ($value)?(sprintf('<a href="%s" onclick="window.open(this.href); return false;">%s</a>', $value, strlen($value)>60?substr($value,0,40).'...'.substr($value,-10):$value)):"";
case 'email_address' :
return ($value)?sprintf('<a href="mailto:%s">%s</a>', $value, $value):"";
break;