1

I need to display an image in the page footer using tag. In my page.tpl.php I have the following block.

<div id="copyright">
    <img src="../images/logo.png">
     <p class="copyright"><?php print t('Copyright'); ?> &copy; <?php echo date("Y"); ?></p>
    <div class="clear"></div>
</div>

I can`t use print $logo since I can use another image for the logo.

1
  • 1
    Please edit the title, is confusing.
    – Pere
    Feb 26 '13 at 23:17
0

You need to call the current theme URL and concatenate it with your alternative logo

<div id="copyright">
    <img src="<?php print drupal_get_path('theme', 'THEME_NAME'); ?>/images/logo.png">
     <p class="copyright"><?php print t('Copyright'); ?> &copy; <?php echo date("Y"); ?></p>
    <div class="clear"></div>
</div>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.