root\classes\extravar
function getValueHTML()
{
$value = $this->_getTypeValue($this->type, $this->value);
switch($this->type)
{
case 'homepage' :
return ($value) ? (sprintf('<a href="%s" target="_blank">%s</a>', $value, strlen($value) > 20 ? substr($value, 0, 20) . '...' . substr($value, -10) : $value)) : "";
case 'email_address' :
return ($value) ? sprintf('<a href="mailto:%s">%s</a>', $value, $value) : "";
case 'tel' :
return sprintf('%s - %s - %s', $value[0], $value[1], $value[2]);
case 'textarea' :
return nl2br($value);
case 'checkbox' :
if(is_array($value))
{
return implode(', ', $value);
}
return $value;
case 'date' :
return zdate($value, "Y-m-d");
vnote