Mi piacerebbe poter creare delle categorie con gli angoli arrotondati come da immagine allegate.
Mi aiutate ?
Grazie
arrotondare categorie
Moderatore: mod Generali
Re: arrotondare categorie
Codice: Seleziona tutto
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_1.gif');
} else {
$left_corner = tep_image(DIR_WS_IMAGES . 'infobox/corner_left_1.gif');
}
if ($right_arrow == true) {
$right_arrow = '<a href="' . $right_arrow . '">' . tep_image(DIR_WS_IMAGES . '', ICON_ARROW_RIGHT) . '</a>';
} else {
$right_arrow = '';
}
if ($right_corner == true) {
$right_corner = $right_arrow . tep_image(DIR_WS_IMAGES . 'infobox/corner_right_2.gif');
} else {
$right_corner = $right_arrow . tep_image(DIR_WS_IMAGES . 'infobox/corner_right_2.gif');
}
$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" nowrap',
'text' => $right_corner));
$this->tableBox($info_box_contents, true);
}
}
La funzione è questa e devi modificarlo dentro includes/classes/boxes.php poi le class= devi adattarli al tuo stylesheet.css e le immagini sono da rinominare con quelle che vuoi tu
VHosting Solution
Web Hosting Da 26 Euro Annuo
OsCommerce Hosting 144 Euro Annuo
15% di sconto con il codice: OSC-Member su WebHosting - OSC Hosting
http://www.vhosting-it.com
info@vhosting-it.com
Web Hosting Da 26 Euro Annuo
OsCommerce Hosting 144 Euro Annuo
15% di sconto con il codice: OSC-Member su WebHosting - OSC Hosting
http://www.vhosting-it.com
info@vhosting-it.com
-
- membro Veteran
- Messaggi: 520
- Iscritto il: 24/06/2008, 19:45
Re: arrotondare categorie
Grazie vampire...provo e ti faccio sapere
Re: arrotondare categorie
ok però gli angoli li devi creare cioe devi fare una immagine con l'angolino
VHosting Solution
Web Hosting Da 26 Euro Annuo
OsCommerce Hosting 144 Euro Annuo
15% di sconto con il codice: OSC-Member su WebHosting - OSC Hosting
http://www.vhosting-it.com
info@vhosting-it.com
Web Hosting Da 26 Euro Annuo
OsCommerce Hosting 144 Euro Annuo
15% di sconto con il codice: OSC-Member su WebHosting - OSC Hosting
http://www.vhosting-it.com
info@vhosting-it.com