What is the correct way to put an image in the information info box? I would like to put a small image next to the contact us site map area of the pic below.
I'm guessing that I would put it in the templates\mytemplate\boxes\information_table.php somewhere in this area of that file:
Code:
<?php
require(DIR_WS_LANGUAGES . $language . '/informationbox.php');
$info_box_contents = array();
$info_box_contents[] = array('text' => BOX_HEADING_INFORMATION_TABLE);
new infoBoxHeading($info_box_contents, false, false, false);
// Retrieve information from Info table
$informationString = "";
// joles
$sql_query = tep_db_query("SELECT information_id, languages_id, info_title FROM " . TABLE_INFORMATION . " WHERE visible= '1' and languages_id ='" . (int)$languages_id . "' ORDER BY v_order");
while ($row = tep_db_fetch_array($sql_query)){
$informationString .= '<a href="' . tep_href_link(FILENAME_INFORMATION, 'info_id=' . $row['information_id'] ) . '">' . $row['info_title'] . '</a><br>';
}
$info_box_contents = array();
if (tep_session_is_registered('customer_id')) {
$info_box_contents[] = array('text' => $informationString .
'<a href="' . tep_href_link(FILENAME_GV_FAQ, '', 'NONSSL') . '">' . BOX_INFORMATION_GV . '</a><br>' .
'<a href="' . tep_href_link(FILENAME_SITEMAP) . '"> ' . BOX_INFORMATION_SITEMAP . '</a><br>' .
//Commented out Links'<a href="' . tep_href_link(FILENAME_LINKS) . '"> ' . BOX_INFORMATION_LINKS . '</a><br>' .
'<a href="' . tep_href_link(FILENAME_CONTACT_US, '', 'NONSSL') . '">' . BOX_INFORMATION_CONTACT . '</a>' [b]. ' <img border="0" src="'. DIR_WS_TEMPLATE_IMAGES . 'az_iformation_bg.gif">[/b]');
} else if ((tep_session_is_registered('customer_id')) && (MODULE_ORDER_TOTAL_GV_STATUS == 'true')) {
$info_box_contents[] = array('text' => $informationString .
'<a href="' . tep_href_link(FILENAME_GV_FAQ, '', 'NONSSL') . '">' . BOX_INFORMATION_GV . '</a><br>' .
'<a href="' . tep_href_link(FILENAME_SITEMAP) . '"> ' . BOX_INFORMATION_SITEMAP . '</a><br>' .
//Commented out Links'<a href="' . tep_href_link(FILENAME_LINKS) . '"> ' . BOX_INFORMATION_LINKS . '</a><br>' .
'<a href="' . tep_href_link(FILENAME_CONTACT_US, '', 'NONSSL') . '">' . BOX_INFORMATION_CONTACT . '</a>');
} else {
$info_box_contents[] = array('text' => $informationString .
'<a href="' . tep_href_link(FILENAME_GV_FAQ, '', 'NONSSL') . '">' . BOX_INFORMATION_GV . '</a><br>' .
'<a href="' . tep_href_link(FILENAME_SITEMAP) . '"> ' . BOX_INFORMATION_SITEMAP . '</a><br>' .
//Commented out Links'<a href="' . tep_href_link(FILENAME_LINKS) . '"> ' . BOX_INFORMATION_LINKS . '</a><br>' .
'<a href="' . tep_href_link(FILENAME_CONTACT_US, '', 'NONSSL') . '">' . BOX_INFORMATION_CONTACT . '</a>');
}
new $infobox_template($info_box_contents, $column_location);
?>
I am unable to get the code correct.