mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 02:31:40 +09:00
#18940457: E-Mail 및 URL 형식 확장 변수 필드에 내용이 없을 경우에도 링크를 생성하여 스크린 리더 사용자 등이 혼동할 수 있는 문제 수정.
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7507 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
5e633ffe4a
commit
c24ae8b506
1 changed files with 2 additions and 2 deletions
|
|
@ -141,9 +141,9 @@
|
|||
$value = $this->_getTypeValue($this->type, $this->value);
|
||||
switch($this->type) {
|
||||
case 'homepage' :
|
||||
return 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, $value):"";
|
||||
case 'email_address' :
|
||||
return sprintf('<a href="mailto:%s">%s</a>', $value, $value);
|
||||
return ($value)?sprintf('<a href="mailto:%s">%s</a>', $value, $value):"";
|
||||
break;
|
||||
case 'tel' :
|
||||
return sprintf('%s - %s - %s', $value[0],$value[1],$value[2]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue