lildog Posted March 21, 2006 Posted March 21, 2006 Could someone please post a brief explanation of . tep_image(DIR_WS_IMAGES . 'default/1.gif') . or point me in the right direction? This is from the default home page, I know it is displaying the number one graphic. Just wanted to know what it is doing. Thanks Todd
matrix2223 Posted March 21, 2006 Posted March 21, 2006 basically it tells it to get the image and from where to get it.
Guest Posted March 21, 2006 Posted March 21, 2006 Could someone please post a brief explanation of . tep_image(DIR_WS_IMAGES . 'default/1.gif') . or point me in the right direction?... It takes the image path you give it (you can pass it other parameters too like a name etc) and generates HTML that is then embedded into the page output.... and hey-presto - you get a piccie !! Well, most of the time, anyway :-) Rich.
lildog Posted March 21, 2006 Author Posted March 21, 2006 A name? why not just use a <img src="images/piccie.gif">? Is it a formatting thing?
kgt Posted March 21, 2006 Posted March 21, 2006 why not just use a <img src="images/piccie.gif">? Is it a formatting thing? If you look at the tep_image() function in includes/functions/html_output.php, you'll see it does a little more than just print out the img tag. It calculates image size if neccessary. You can also make global changes to img tags, like prefixing something to the title or alt parameters for all images. Contributions Discount Coupon Codes Donations
Recommended Posts
Archived
This topic is now archived and is closed to further replies.