networkteam / Networkteam.Neos.MailObfuscator

Email address obfuscation for Neos CMS
GNU General Public License v2.0
13 stars 10 forks source link

replace ( at ) width a gif #5

Closed stefkey closed 6 years ago

stefkey commented 8 years ago

Hi, thanks a lot for this package! I found the RewriteAtCharConverter.php who replace the @ sign. Its possible to insert a .gif grafik instead the ( at ) ? Can you help me for the php-code, i'am not a programmer :-(

class RewriteAtCharConverter implements EmailLinkNameConverterInterface {

    /**
     * @param string $emailAddress
     * @return string
     */
    public function convert($emailAddress) {
        return str_replace('@', ' (at) ', $emailAddress);
    }
}
hlubek commented 8 years ago

Hi @stefkey,

yes, you could use the ResourceManager from Flow to get the URL to a resource and use that in the replacement string inside an image tag. That's quite easy but hard if you're not into PHP and Flow development ;)

I'll see if we can include an example for that case.

monofone commented 6 years ago

Hi you can include an image tag like this:

Networkteam:
  Neos:
    MailObfuscator:
      atCharReplacementString: '<img src="http://icons.iconarchive.com/icons/chromatix/keyboard-keys/32/at-icon.png" alt="at" />'