I'm using the basic design pack and trying to replace the box headings with images. I got it to work on the left side in the Categories box, but the image is overlapping strangely on the right side in the Shopping Cart box, as seen here. Can anyone point me in the right direction?
This is my boxes.php, and I've got the image set as background with no-repeat in the stylesheet.
if ($left_corner == true) {
$left_corner = tep_image(DIR_WS_IMAGES . 'ShoppingCartBox/corner_left.gif');
} else {
$left_corner = tep_image(DIR_WS_IMAGES . 'ShoppingCartBox/corner_right_left.gif');
}
// if ($right_arrow == true) {
// $right_arrow = '<a href="' . $right_arrow . '">' . tep_image(DIR_WS_IMAGES . 'ShoppingCartBox/arrow_right.gif', ICON_ARROW_RIGHT) . '</a>';
// } else {
$right_arrow = '';
// }
if ($right_corner == true) {
$right_corner = $right_arrow . tep_image(DIR_WS_IMAGES . 'ShoppingCartBox/corner_right.gif');
} else {
$right_corner = $right_arrow . tep_draw_separator('pixel_trans.gif', '0', '0');
}
$info_box_contents = array();
$info_box_contents[] = array(array('params' => 'height="26" class="ShoppingCartBoxHeading"',
'text' => $left_corner),
array('params' => 'width="100%" height="26" class="ShoppingCartBoxHeading"',
'text' => $contents[0]['text']),
array('params' => 'height="26" class="ShoppingCartBoxHeading" nowrap',
'text' => $right_corner));
$this->tableBox($info_box_contents, true);
}
}
I've kind of guerilla-modded as I go until things work, as you can probably see from the commented-out arrow, so I'm not approaching this with any sort of plan and I'm a bit stuck now. :\
Apologizes if the answer is in this thread somewhere already... I haven't had time to read through the whole thing just yet..