Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Info Box Background usin CSS


Mr. Wizard

Recommended Posts

Posted

Hello all, I am new to "OsC", I am trying to edit "osc/eshop/includes/classes/thema/2/stylesheet.css" the only thing I am having trouble with is adding a background image to the infoBoxHeading. I think the file "osc/eshop/includes/classes/thema/2/thema_boxes.php" has to be edited in conjunction with the CSS.

 

I have looked around this forum and tryed a couple of things but didn't work the way I need it to. so to anyone that can help or reply "Thank You"

 

CSS Code:

 

TD.infoBoxHeading {

font-family: Verdana, Arial, sans-serif;

font-size: 10px;

font-weight: bold;

background-image: (file:../../../../images/infobox/thema/2/tile.gif);

color: #ffffff;

}

 

 

PHP Code:

 

class infoBoxHeading extends tableBox {

function infoBoxHeading($contents, $left_corner = true, $right_corner = true, $right_arrow = false) {

$this->table_cellpadding = '0';

 

if ($left_corner) {

$left_corner = tep_image(DIR_WS_IMAGES . 'infobox/thema/' . SITE_THEMA . '/corner_left.gif');

} else {

$left_corner = tep_image(DIR_WS_IMAGES . 'infobox/thema/' . SITE_THEMA . '/corner_right_left.gif');

}

if ($right_arrow) {

$right_arrow = '<a href="' . $right_arrow . '">' . tep_image(DIR_WS_IMAGES . 'infobox/thema/' . SITE_THEMA . '/arrow_right.gif', ICON_ARROW_RIGHT) . '</a>';

} else {

$right_arrow = '';

}

if ($right_corner) {

$right_corner = $right_arrow . tep_image(DIR_WS_IMAGES . 'infobox/thema/' . SITE_THEMA . '/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"', 'text' => $contents[0]['text']),

array('params' => 'height="14" class="infoBoxHeading"', 'text' => $right_corner));

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

}

}

Archived

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

×
×
  • Create New...