Open: includes/classes/class.category.php
Find:
Code: Select all
$this->SetTrail(array($row['categoryid'], $row['catname']));
$this->SetId($row['categoryid']);
$this->SetName($row['catname']);
$this->SetDesc($row['catdesc']);
Code: Select all
$GLOBALS['ActiveCategory'] = $row['categoryid'];
Code: Select all
$parentCat = $row['categoryid'];
$this->Data = $row;
$this->SetTrail(array($row['categoryid'], $row['catname']));
Code: Select all
$GLOBALS['ActiveSubCategory'] = $row['categoryid'];
Open: includes/display/SideCategoryList.php
Find:
Code: Select all
$GLOBALS['CategoryLink'] = CatLink($rootCat['categoryid'], $rootCat['catname'], true);
Code: Select all
if(isset($GLOBALS['ActiveCategory']) && $GLOBALS['ActiveCategory'] == $rootCat['categoryid']) {
$GLOBALS['ActiveCategoryClass'] = "ActiveCategory";
}
else {
$GLOBALS['ActiveCategoryClass'] = '';
}
Code: Select all
if($i == count($categories[$parentCatId])) {
$GLOBALS['LastChildClass']='LastChild';
}
$i++;
Code: Select all
if(isset($GLOBALS['ActiveSubCategory']) && $GLOBALS['ActiveSubCategory'] == $subCat['categoryid']) {
$GLOBALS['ActiveCategoryClass'] = "ActiveCategory";
}
else {
$GLOBALS['ActiveCategoryClass'] = '';
}
Code: Select all
if (isset($categories[$parentCatId]) && !empty($categories[$parentCatId])) {
$i=1;
Code: Select all
if(isset($GLOBALS['ActiveCategory']) && $GLOBALS['ActiveCategory'] == $parentCatId) {
Code: Select all
$output .= $GLOBALS['ISC_CLASS_TEMPLATE']->GetSnippet("SideCategoryList");
Code: Select all
}
Find:
Code: Select all
<li class="%%GLOBAL_LastChildClass%%">
Code: Select all
<li class="%%GLOBAL_ActiveCategoryClass%% %%GLOBAL_LastChildClass%%">
Code: Select all
%%GLOBAL_SubCategoryList%%
Code: Select all
</li>
Edited 22.12.2009.