Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Adding multiple images to footer?


xPATRIOTSx

Recommended Posts

should be fairly simple

 

depending on where you want it... above your copyright info, or below.

 

here is the code to footer.php, just copy and paste another table data fom header.php, but have the code call a different image. I put 2 images above the copyright info, like so:

 

<?php
/*
?$Id: footer.php,v 1.26 2003/02/10 22:30:54 hpdl Exp $

?osCommerce, Open Source E-Commerce Solutions
?http://www.oscommerce.com

?Copyright (c) 2003 osCommerce

?Released under the GNU General Public License
*/

?require(DIR_WS_INCLUDES . 'counter.php');
?>
<table border="0" width="100%" cellspacing="0" cellpadding="1">
?<tr class="footer">
? ?<td class="footer">  <?php echo strftime(DATE_FORMAT_LONG); ?>  </td>
? ?<td align="right" class="footer">  <?php echo $counter_now . ' ' . FOOTER_TEXT_REQUESTS_SINCE . ' ' . $counter_startdate_formatted; ?>  </td>
?</tr>
</table>
<br>
<table border="0" width="100%" cellspacing="0" cellpadding="0">
?<tr>
? ?<td align="center" class="smallText">
<?php
/*
?The following copyright announcement can only be
?appropriately modified or removed if the layout of
?the site theme has been modified to distinguish
?itself from the default osCommerce-copyrighted
?theme.

?For more information please read the following
?Frequently Asked Questions entry on the osCommerce
?support site:

?http://www.oscommerce.com/community.php/faq,26/q,50

?Please leave this comment intact together with the
?following copyright announcement.
*/

?>
<table border="0" width="100%" cellspacing="0" cellpadding="0">
?<tr class="header">
? ?<td width="5%" valign="middle"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'put_image_here.gif', 'put_alt_text_here') . '</a>';?></td> 
<td width="95%" align="left" valign="middle"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'put_image_here.gif', 'put_alt_text_here') . '</a>';?></td>
?</tr>
</table>

<?php
?echo FOOTER_TEXT_BODY
?>
? ?</td>
?</tr>
</table>
<?php
?//if ($banner = tep_banner_exists('dynamic', '468x50')) {
?>
<br>
<table border="0" width="100%" cellspacing="0" cellpadding="0">
?<tr>
? ?<td align="center"><?php //echo tep_display_banner('static', $banner); ?></td>
?</tr>
</table>
<?php
?//}
?>

 

I added this code to lines 43-53, which you will have to do...

 

?>
<table border="0" width="100%" cellspacing="0" cellpadding="0">
?<tr class="header">
? ?<td width="5%" valign="middle"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'put_image_here.gif', 'put_alt_text_here') . '</a>';?></td> 
<td width="95%" align="left" valign="middle"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'put_image_here.gif', 'put_alt_text_here') . '</a>';?></td>
?</tr>
</table>

<?php
?echo FOOTER_TEXT_BODY
?>

 

after that, you will just have to play with the alignment and size of your table cells to make them line up right next to each other better... and the more you put the closer they will go together.

 

Also, when I say copyright info, I mean YOUR copyright info, which is contained in this

 

echo FOOTER_TEXT_BODY

 

Anyway, hope this helps

 

Sethman

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...