Skip to content

yab_email is a tiny Textpattern CMS plugin for obfuscating and defuscating email adresses

License

Notifications You must be signed in to change notification settings

trenc/yab_email

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

yab_email

A simple email obfuscator/defuscator (jQuery based)

Version: 0.7

Table of contents

  1. Plugin requirements
  2. Tags
  3. Examples
  4. License
  5. Author contact

Plugin requirements

yab_email’s minimum requirements:

  • Textpattern 4.x
  • jQuery 1.3.x

Tags

yab_email

Place this in your site to hide your email address from harvesters and bots.

email: a valid email address
Default: name@example.com
An email address, you want to be obfuscated.

class: class name
Default: yab-email-link
A class name for generated or element.

at: word between parenthesis
Default: at
A text string, that will be in parenthesis in obfuscated email.

link: boolean
Default: 1
Generate a link or show email as span element.

text: a link text
Default: not set
A text string, that will be the link text. Overwrite a link=“0”.

set_js: boolean
Default: 1
Generate Javascript for this very tag.

yab_email_javascript

If you have more email addresses you want to be obfuscated or your jQuery inlcude is at the bottom of your site, you can place this tag after the jQuery include.

class: class name
Default: yab-email-link
A class name for generated or element. Has to be the same as in

link: boolean
Default: 1
Generate a link or show as span element.

Examples

Example 1

Example with a jQuery inlcude in the head and only one address to obfuscate.

<!doctype html>
<html>
<head>
	<meta charset="utf-8" />
	<title>Your tilte</title>
	<link rel="stylesheet" href="/path/to/your/stylesheet.css" />
	<script src="/path/to/your/jQuery.js"></script>
</head>
<body>

<p><txp:yab_email email="contact@example.com" /></p>

</body>
</html>

Example 2

Example with a jQuery inlcude at the bottom and probably more address to obfuscate.

<!doctype html>
<html>
<head>
	<meta charset="utf-8" />
	<title>Your tilte</title>
	<link rel="stylesheet" href="/path/to/your/stylesheet.css" />
</head>
<body>

<p><txp:yab_email email="contact@example.com" set_js="0" /></p>
<p><txp:yab_email email="ceo@example.com" set_js="0"  /></p>

</body>
<script src="/path/to/your/jQuery.js"></script>
<txp:yab_email_javascript />
</html>

Licence

This plugin is released under the GNU General Public License Version 2 and above

Author contact

About

yab_email is a tiny Textpattern CMS plugin for obfuscating and defuscating email adresses

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages