Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

round infobox corners (bottom)


Dennis_gull

Recommended Posts

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.

Link to comment
Share on other sites

No, that won't work. You need to edit the idividual box files. There are many contributions that will do this. The InfoSkin Manager and Shadow Controller are two.

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...