*/ class LSformElement_mail extends LSformElement_text { var $JSscripts = array( 'LSformElement_mail.js' ); var $fetchVariables = array( 'uriClass' => 'LSformElement_mail', 'uriPrefix' => 'mailto:' ); var $fieldTemplate = 'LSformElement_uri_field.tpl'; function getDisplay() { LSsession :: addHelpInfos ( 'LSformElement_mail', array( 'mail' => _("Send a mail from here.") ) ); if (LSsession :: loadLSclass('LSmail')) { LSmail :: loadDependenciesDisplay(); } return parent :: getDisplay(); } function fetchTemplate($template=NULL,$variables=array()) { if ($this -> getParam('html_options.disableMailSending', false, 'bool')) { $this -> fetchVariables['uriClass'] .= " LSformElement_mail_disableMailSending"; } return parent :: fetchTemplate($template,$variables); } }