Hey, folks.
First off, yay me! I've finally been able to give back a bit - I just posted my first "let me help you out" response to someone asking for help on here. (Feels SO good to have done enough that I at least *somewhat* know what I'm talking about).
Now, it's back to 'newbie status.'![]()
Here's the question:
Some of you may have seen my original post regarding the layout I'm creating for my site. (If you didn't see it, browse on over to it - you'll need to have a quick look at the image on the page to get where I'm coming from).
The site's coming along nicely...but due to the way my logo (a transparent .PNG file) overlaps the other elements, I need to keep Zen Cart from using the whole logo file as a link to the homepage. (But I'd still like part of the logo to link back to the homepage).
Enter the ImageMap.
I've built an imagemap (my first) to allow just a part of the logo that's non-overlapping with other elements to be an active link. In standard HTML, it looks something like this:
<map name="UH_Logo_Map">
<area shape="poly" alt=" " coords="-1,-2, 163,-2, 214,73, 207,133, 111,201, 48,199, -1,135, -1,1" href="http://www.upscalehomeless.com" />
</map>
And the corresponding <img> tag:
<img src="images/uh_logo.png" width="246" height="314" border="0" alt="" usemap="#UH_Logo_Map">
Looks okay, right? I've also changed my logo in the header.php file. Now my problem is getting the above code to work in the tpl_header.php file (which I AM overriding, BTW - not working on the original file).Looking at the file, I've isolated the part I need to change, but my PHP is limited enough that I don't understand exactly what's happening there.
Here's the code for the section of tpl_header.php:
<div id="logoWrapper">
<div id="logo">
<?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">' . zen_image($template->get_template_dir(HEADER_LOGO_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . HEADER_LOGO_IMAGE, HEADER_ALT_TEXT) . '</a>'; ?></div>
I think the part that's throwing me off is not understanding what the functions here do (I'm guessing the "zen_image" function returns an <img> tag, but I'm really not sure).
Sooo...can anyone give me any pointers as to how I would change the above code to insert the imagemap? (and do I need to create a separate <div> for the <map> tag so it won't interfere with the formatting of the other <div>'s?)
Thanks!!


Looking at the file, I've isolated the part I need to change, but my PHP is limited enough that I don't understand exactly what's happening there.

