Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

images at infobox heading


shahin

Recommended Posts

Posted

Hi,

 

Instead of plain coloured infobox heading, I would like to use image .

 

Could somebody tell me which file I need to edit to use image at infobox header.

 

Regards

Shahin

Posted
Hi,

 

Instead of plain coloured infobox heading, I would like to use image .

 

Could somebody tell me which file I need to edit to use image at infobox header.

 

Regards

Shahin

 

For this you have to insert one line which is in bold in catalog/includes/classes/boxes.php file

 

 

background="'.DIR_WS_IMAGES.'gt_interactive/image_name.gif"',

 

 

class infoBoxHeading extends tableBox {
function infoBoxHeading($contents, $left_corner = true, $right_corner = true, $right_arrow = false) {
  $this->table_cellpadding = '0';

  if ($left_corner == true) {
	$left_corner = tep_image(DIR_WS_IMAGES . 'infobox/corner_left.gif');
  } else {
	$left_corner = tep_image(DIR_WS_IMAGES . 'infobox/corner_right_left.gif');
  }
  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');
  } else {
	$right_corner = $right_arrow . tep_draw_separator('pixel_trans.gif', '11', '14');
  }

  $info_box_contents = array();
  $info_box_contents[] = array(array('params' => 'height="14" class="infoBoxHeading"',
									 'text' => $left_corner),
							   array('params' => 'width="100%" height="14" class="infoBoxHeading" [b]background="'.DIR_WS_IMAGES.'gt_interactive/image_name.gif"'[/b],
									 'text' => $contents[0]['text']),
							   array('params' => 'height="14" class="infoBoxHeading" nowrap',
									 'text' => $right_corner));

  $this->tableBox($info_box_contents, true);
}
 }

 

If required you may have to change some code in catalog/stylesheet.php file

 

TD.infoBoxHeading {
 font-family: Verdana, Arial, sans-serif;
 font-size: 10px;
 font-weight: bold;
 /*background: #bbc3d3;*/
 color: #ffffff;
}

 

like this.......

Hard Work Is The Simplest Way Of Success

Archived

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

×
×
  • Create New...