I would like to show an image link (image is on my server) in the PHP block (Drupal 7). When I put
<?php
print '<p align="right"><a href="http://something.com"> <img src="'.$front_page.'/misc/something.png">Caption</a>';
?>
it works but picture is only visible on the front page, on others it shows broken link. Why?
What should I add then to this concatenation to make it work and to avoid putting hardcoded page URL?
Any help would be appreciated.
In Drupal, you should be able to run it through
url()to get a proper path, i.e.url('misc/something.png').