Sommerregen / grav-plugin-smileys

This plugin substitutes text emoticons, also known as smilies like :-), with images.
Other
3 stars 2 forks source link

Feature request: Add support for ALT and TITLE Tags #5

Open pizzageek-zz opened 8 years ago

pizzageek-zz commented 8 years ago

I'd like to be able to override the default ALT and TITLE tags. Currently, the default is :smiley_name: for both. :arrow_double_down:

I'm not sure of the best syntax to use. Maybe something like :smiley_name|alt_text|title_text:

My use case is that I'd like something other than :arrow_double_down: to display when hovering over my download icons. [:arrow_double_down|Download|Download:](http://somesite.com/download.html)

Sommerregen commented 8 years ago

Hi @pizzageek currently the alt and title tags are hardcoded in the plugin (https://github.com/Sommerregen/grav-plugin-smileys/blob/master/classes/Smileys.php#L213-L217). But I'm working on a version, which let's fully customize the output. I only need some time to finish it...

However for the moment I recommend you to change the above lines to your needs.