Guest User

Untitled

a guest
Oct 12th, 2015
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. // append mailto: the email only if we have an @ and we don't have the mailto: already in place
  2. if (
  3. $icon_id == 'mail-1'
  4. and strpos($url, '@') !== false
  5. and strpos(strtolower($url), 'mailto:') === false
  6. ) {
  7. $url = 'mailto:' . $url;
  8. }
Advertisement
Add Comment
Please, Sign In to add comment