Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // append mailto: the email only if we have an @ and we don't have the mailto: already in place
- if (
- $icon_id == 'mail-1'
- and strpos($url, '@') !== false
- and strpos(strtolower($url), 'mailto:') === false
- ) {
- $url = 'mailto:' . $url;
- }
Advertisement
Add Comment
Please, Sign In to add comment