Anyone know what is the correct syntax to add a line in ELGG to point to an image file to display it?
I'd like to add a graphics image in the left-hand menu toolbar and looking at the page view, the entire script is written in PHP. I'm not sure of the syntax to be able to display this item. When I try to assign an object the HTML syntax to call the file, (i.e. $img = "<a href {etc}><img src = "etc"> </a>"), the script seems to not understand the multiple quotes and therefore I can't use $img to call the file location.
thanks for any help!
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by Raül Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
- b04rdr1d3r@openid_310450

b04rdr1d3r - 0 likes
You must log in to post replies.I believe the issue comes from the fact you are using double quotes (") instead of single quotes (').
your syntax should look more like this
$img = '<a href="URL1"><img src="URL2 " alt="text" /></a>';
check out this for further details: http://ca.php.net/types.string