Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

information box - list horizontally


dirksmith

Recommended Posts

Posted

Hi

 

I'm trying to list the information links horizontally in the footer php - but I keep getting parsing errors.

 

I'd apprecaite any help with getting the code below correct - thanx!

 

dirk

 

 

<table border="0" width="100%" cellspacing="0" cellpadding="1">

<tr class="footer">

<td class="footer">  <?php

$info_box_contents = array();

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

 

new infoBoxHeading($info_box_contents, false, false);

 

$info_box_contents = array();

$info_box_contents[] = array('text' => '<a href="' . tep_href_link(FILENAME_PRIVACY) . '">' . BOX_INFORMATION_PRIVACY . '</a><br>' . ?></td>

<td class="footer">  <?php '<a href="' . tep_href_link(FILENAME_CONDITIONS) . '">' . BOX_INFORMATION_CONDITIONS . '</a><br>' . ?>

<td class="footer">  <?php '<a href="' . tep_href_link(FILENAME_CONTACT_US) . '">' . BOX_INFORMATION_CONTACT . '</a>')?></td>

?>

 

<?php

 

 

echo FOOTER_TEXT_BODY

?>

</td>

</tr>

</table>

<br>

<table border="0" width="100%" cellspacing="0" cellpadding="0">

<tr>

<td align="center"></td>

</tr>

</table>

<?php

}

?>

Posted

Something like:

 

<table border="0" width="100%" cellspacing="0" cellpadding="1">

<tr class="footer">

<td class="footer">  <?php

$info_box_contents = array();

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

 

//new infoBoxHeading($info_box_contents, false, false);

 

$info_box_contents = array();

$info_box_contents[] = array('text' => '<a href="' . tep_href_link(FILENAME_SHIPPING) . '">' . BOX_INFORMATION_SHIPPING . '</a>' . '  -  ' .

                                        '<a href="' . tep_href_link(FILENAME_PRIVACY) . '">' . BOX_INFORMATION_PRIVACY . '</a>' . '  -  ' .

                                        '<a href="' . tep_href_link(FILENAME_CONDITIONS) . '">' . BOX_INFORMATION_CONDITIONS . '</a>' . '  -  ' .

                                        '<a href="' . tep_href_link(FILENAME_CONTACT_US) . '">' . BOX_INFORMATION_CONTACT . '</a>' . '  -  ' .

                                        '<a href="' . tep_href_link(FILENAME_SITEMAP) . '">' . BOX_INFORMATION_SITEMAP . '</a>');

 

 

  new infoBox($info_box_contents);

?>

 

 

<?php

  echo FOOTER_TEXT_BODY;

Archived

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

×
×
  • Create New...