Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2007-01-07 21:33:17
- toul
- Member
- Registered: 2006-12-12
- Posts: 18
zem_contact modification
hi…is there a way to replace the link-text with an image?
cu toul
Offline
Re: zem_contact modification
Since zem_contact doesn’t have a linktext attribute (as far as I know), I assume you mean zem_contact_reborn.
Edit the plugin, replace:
function zem_contact_send_article($atts)
with
function zem_contact_send_article($atts, $thing)
and replace
return '<a href="'.$href.'">'.$linktext.'</a>';
with
return '<a href="'.$href.'">'.($thing ? $thing : $linktext).'</a>';
This should allow you to use zem_contact_send_article as a container tag:
<txp:zem_contact_send_article><img src="path/to/image" /></txp:zem_contact_send_article>
If this works, let me know. It may be added to the next version of the plugin.
Last edited by ruud (2007-01-07 22:27:33)
Offline
#3 2007-01-07 22:27:21
- toul
- Member
- Registered: 2006-12-12
- Posts: 18
Re: zem_contact modification
wow!!!! thank you ruud!!!!!!!!
Offline
#4 2007-01-07 23:07:21
- toul
- Member
- Registered: 2006-12-12
- Posts: 18
Re: zem_contact modification
it works really smart! another idea (maybe) is to replace the html-button with an image-submit-button?
Offline
Pages: 1