mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 02:31:40 +09:00
확장변수 홈페이지 형태의 길이가 길 경우 줄여서 표시되도록 수정
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7878 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
3834042722
commit
d878d9c241
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue