Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Adding image to infoBoxContent without image...


smulligan

Recommended Posts

As told in regards to Wikki help docs, I have the image finally in the info box content as I wanted, I am still trying to eliminate any text in the box, and secondly I am trying to apply the link that is applied to the text to the image. Can one any help with the code provide to do as I want. Help appreciated.

 

<?php

/*

$Id: build.php,v 1.6 2003/02/10 22:31:00 hpdl Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

?>

<!-- information //-->

<tr>

<td>

<?php

$info_box_contents = array();

$info_box_contents[] = array('text' => BOX_HEADING_BUILD);

 

new infoBoxHeading($info_box_contents, false, false);

 

$info_box_contents = array();

$info_box_contents[] = array('align' => 'center', 'text' => '<a href="' . tep_href_link(FILENAME_BUILD) . '">' . BOX_INFORMATION_BUILD . tep_image(DIR_WS_IMAGES . 'PC-Creator.jpg') . '</a>');

 

new infoBox($info_box_contents);

?>

</td>

</tr>

<!-- information_eof //-->

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...