jump to navigation

Removing Left and Right Arrows in Infobox July 6, 2008

Posted by admin in : Simple Issues , trackback

osCommerce uses an image even for all the squared corners (/images/infobox/corner_right_left.gif) in your infoboxes as well as the “New Products For…” box, probably for indenting the titles and arrows.

This prevents the text/arrows from showing right next to the border of the table as both cellspacing and cellpadding are set to 0.

But if you still want to get rid of ALL the cornered images (/images/infobox/corner_right_left.gif, /images/infobox/corner_left.gif, /images/infobox/corner_right.gif), you can try the following:

Modify the if/else statements in the
class infoBoxHeading extends tableBox { block as follows: 

if ($left_corner == true) {

       // $left_corner = tep_image(DIR_WS_IMAGES . ‘infobox/corner_left.gif’);

       $left_corner = ”;

     } else {

       // $left_corner = tep_image(DIR_WS_IMAGES . ‘infobox/corner_right_left.gif’);

       $left_corner = ”;

     }

     if ($right_arrow == true) {

       $right_arrow = ‘<a href=”‘ . $right_arrow . ‘”>’ . tep_image(DIR_WS_IMAGES . ‘infobox/arrow_right.gif’, ICON_ARROW_RIGHT) . ‘</a>’;

     } else {

       $right_arrow = ”;

     }

     if ($right_corner == true) {

       // $right_corner = $right_arrow . tep_image(DIR_WS_IMAGES . ‘infobox/corner_right.gif’);

       $right_corner = $right_arrow;

     } else {

       // $right_corner = $right_arrow . tep_draw_separator(’pixel_trans.gif’, ‘11′, ‘14′);

       $right_corner = $right_arrow;

     }

Comments»

no comments yet - be the first?