Created
August 9, 2013 12:39
-
-
Save williamsba/6193318 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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