New url_helper anchor tag that allows for an image link |
[eluser]Unknown[/eluser]
[quote author="adityamenon" date="1338154422"]skunkbad, that will probably just give you a link, whose text is the HTML for an image tag. InsiteFX, here's the gist for your post. It allows forking so others can act on their suggestions...[/quote] Actually, I was searching for a solution just like this. skunks code works perfectly. Code: <?=anchor('publications/bvbride/2012/fall', img('images/bvbride-2012-fall.jpg'), 'title="Brazos Valley Bride - Fall 2012 Digital Edition"');?> ...yields... Code: <a href="http://bryanbroadcasting.com/publications/bvbride/2012/fall" title="Brazos Valley Bride - Fall 2012 Digital Edition"><img src="http://bryanbroadcasting.com/images/bvbride-2012-fall.jpg" alt=""></a> |
Welcome Guest, Not a member yet? Register Sign In |