Hallo zusammen,
ich absoluter Laie in PHP und bin gerade dabei mein Template anzupassen. Ich m?chte 3 Ebenen in der Kategorie-Box darstellen k?nnen und alle drei mit Icon versehen und die Subkategorieen einscheiben. Ich habe schon Beitr?ge gefunden und auch die xtc_show_category.inc.php angepasst. Leider bekomme ich in der 3. Ebene das Icon doppelt. Siehe
My Webpage
Die xtc_show_category.inc.php sieht momentan so aus:
Code:
function xtc_show_category($counter) {
global $foo, $categories_string, $id;
// image for first level
$img_1='<img src="templates/'.CURRENT_TEMPLATE.'/img/icon_arrow_1.png" alt="" />';
$img_2='<img src="templates/'.CURRENT_TEMPLATE.'/img/icon_arrow_2.png" alt="" />';
for ($a=0; $a<$foo[$counter]['level']; $a++) {
if ($foo[$counter]['level']=='1') {
$categories_string .= "$img_2";
}
if ($foo[$counter]['level']=='2') {
$categories_string .= "$img_1";
}
$categories_string .= "";
}
if ($foo[$counter]['level']=='') {
if (strlen($categories_string)=='0') {
$categories_string .='<table width="100%"><tr><td class="moduleRow" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)">';
} else {
$categories_string .='</td></tr></table><table width="100%"><tr><td class="moduleRow" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)">';
}
$categories_string .= $img_1;
$categories_string .= '<b><a href="';
} else {
$categories_string .= '<a href="';
}
$cPath_new=xtc_category_link($counter,$foo[$counter]['name']);
$categories_string .= xtc_href_link(FILENAME_DEFAULT, $cPath_new);
$categories_string .= '">';
if ( ($id) && (in_array($counter, $id)) ) {
$categories_string .= '<b>';
}
War hat eine gute Idee??? Besten Dank im Voraus