Skip to content

Instantly share code, notes, and snippets.

@williamsba
Created August 9, 2013 12:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save williamsba/6193318 to your computer and use it in GitHub Desktop.
Save williamsba/6193318 to your computer and use it in GitHub Desktop.
<span>
<?php $author_email = explode( '@', $curauth->user_email ); ?>
<script language=javascript>
<!--
var contact = "Email Author"
var email = "<?php echo $author_email[0]; ?>"
var emailHost = "<?php echo $author_email[1]; ?>"
document.write("<a href=" + "mail" + "to:" + email + "@" + emailHost+ ">" + contact + "</a>" + ".")
//-->
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment