diff --git a/public_html/includes/class/class.LSattr_html_tel.php b/public_html/includes/class/class.LSattr_html_tel.php new file mode 100644 index 00000000..6fdb4651 --- /dev/null +++ b/public_html/includes/class/class.LSattr_html_tel.php @@ -0,0 +1,32 @@ + + */ +class LSattr_html_tel extends LSattr_html { + + var $LSformElement_type = 'tel'; + +} diff --git a/public_html/includes/class/class.LSformElement_tel.php b/public_html/includes/class/class.LSformElement_tel.php new file mode 100644 index 00000000..e108063f --- /dev/null +++ b/public_html/includes/class/class.LSformElement_tel.php @@ -0,0 +1,48 @@ + + */ + +class LSformElement_tel extends LSformElement_text { + + var $fetchVariables = array( + 'uriClass' => 'LSformElement_tel', + 'uriPrefix' => 'tel:' + ); + + var $fieldTemplate = 'LSformElement_uri_field.tpl'; + + function getDisplay() { + $this -> fetchVariables['uriLinkTitle'] = $this -> attr_html -> attribute -> ldapObject ->getDisplayName(); + return parent :: getDisplay(); + } + +} diff --git a/public_html/templates/default/LSformElement_uri_field.tpl b/public_html/templates/default/LSformElement_uri_field.tpl index d538d1b5..5b7d9459 100644 --- a/public_html/templates/default/LSformElement_uri_field.tpl +++ b/public_html/templates/default/LSformElement_uri_field.tpl @@ -1,7 +1,7 @@ {if $freeze} {if $value} - {$value} + {$value} {else} {$noValueTxt} {/if}