Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

round infobox corners (bottom)


Dennis_gull

Recommended Posts

Posted

Hey, I was just wondering if there is any easy way to make the bottom corners round or if you could add an image to the left and right side like you do on the top.

Posted

I found one addon that will make all the infoboxes and contentbox borders round But They wont work with the menu from basic design pack, doesnt anyone have round boxes here without the "Graphical_Borders_v2" addon. Its mostly on contentboxes I want it..

 

Also I cant add a right corner picture on the contentbox as it is now, look at the code:

//Default contenBox Class
 class contentBox extends tableBox {
function contentBox($contents) {
  $info_box_contents = array();
  $info_box_contents[] = array('text' => $this->contentBoxContents($contents));
  $this->table_cellpadding = '1';
  $this->table_parameters = 'class="contentBox"';
  $this->tableBox($info_box_contents, true);
}

function contentBoxContents($contents) {
  $this->table_cellpadding = '4';
  $this->table_parameters = 'class="contentBoxContents"';
  return $this->tableBox($contents);
}
 }

 class contentBoxHeading extends tableBox {
function contentBoxHeading($contents) {
  $this->table_width = '100%';
  $this->table_cellpadding = '0';

  $info_box_contents = array();
  $info_box_contents[] = array(array('params' => 'height="14" class="contentBoxHeading"',
									 'text' => tep_image(DIR_WS_IMAGES . 'contentBox/corner_left.gif')),
							   array('params' => 'height="14" class="contentBoxHeading" width="100%"',
									 'text' => $contents[0]['text']),
							   array('params' => 'height="14" class="contentBoxHeading"',
									 'text' => tep_image(DIR_WS_IMAGES . 'contentBox/corner_right_left.gif')));

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

 class errorBox extends tableBox {
function errorBox($contents) {
  $this->table_data_parameters = 'class="errorBox"';
  $this->tableBox($contents, true);
}
 }


 class productListingBox extends tableBox {
function productListingBox($contents) {
  $this->table_parameters = 'class="productListing"';
  $this->tableBox($contents, true);
}
 }

 

I tried to just add:

array('params' => 'height="14" class="contentBoxHeading"',
									 'text' => tep_image(DIR_WS_IMAGES . 'contentBox/corner_right.gif')),

 

after the:

										 'text' => $contents[0]['text']),
							   array('params' => 'height="14" class="contentBoxHeading"',
									 'text' => tep_image(DIR_WS_IMAGES . 'contentBox/corner_right_left.gif')));

But it didnt work.

Archived

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

×
×
  • Create New...