Hi, I'm trying to create a block that displays a picture in the footer.
However, anyone who knows how I can get the URL of the image theme-dependent?
When using theme abc I want to display the image from "/sites/all/themes/abc/", but when I'm using theme xyz I want to use the image found in "/sites/all/themes/xyz/".... you get the idea...

<div id="footer-logo"><img src="images/footer-logo.gif" alt="logo"></div>

Thanks a lot, would be a great help for me :)

Comments

advosuzi’s picture

here's what you need:

<div id="footer-logo"><img src="<?php print base_path() . path_to_theme() ?>/images/footer-logo.gif" alt="logo"></div>

Advomatic (Web Development for Progressive Advocacy, Grassroots Movements, and Really Cool Causes)

NeoID’s picture

thanks a lot :)