Using CryptX in Template
-
I just installed CryptX 3.1.2 and pasted the php code into my footer.php template file to replace a mailto anchor. I changed the variable names where applicable and updated my css file for the class name, but after I tested the php file the anchor for the mailto link doesn’t show up at all. Here’s the php code I used replacing the old mailto link…
<?php $mail="[email protected]"; $text="Email Us"; $css ="footEmail"; if (function_exists('cryptx')) { cryptx($mail, $text, $css, 1); } else { echo sprintf('<a href="mailto:%s" class="%s">%s</a>', $mail, $css, ($text != "" ? $text : $mail)); } ?>
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Using CryptX in Template’ is closed to new replies.