| 420 | | array_push($children, array('id' => $category2['id'], 'label' => $category2['name'], 'value' => (doesHaveOwnership() ? $category2['entriesInLogin'] : $category2['entries']), 'link' => "$blogURL/category/" . URL::encode($category2['label'],$service['useEncodedURL']), 'children' => array())); |
| | 420 | array_push($children, |
| | 421 | array('id' => $category2['id'], |
| | 422 | 'label' => $category2['name'], |
| | 423 | 'value' => (doesHaveOwnership() ? $category2['entriesInLogin'] : $category2['entries']), |
| | 424 | 'link' => "$blogURL/category/" . ($blog['useSlogan'] ? URL::encode($category2['label'],$service['useEncodedURL']) : $category2['id']), |
| | 425 | 'children' => array() |
| | 426 | ) |
| | 427 | ); |
| 427 | | array_push($tree['children'], array('id' => $category1['id'], 'label' => $category1['name'], 'value' => $categoryCount + $parentCategoryCount, 'link' => "$blogURL/category/" . URL::encode($category1['label'],$service['useEncodedURL']), 'children' => $children)); |
| | 434 | array_push($tree['children'], |
| | 435 | array('id' => $category1['id'], |
| | 436 | 'label' => $category1['name'], |
| | 437 | 'value' => $categoryCount + $parentCategoryCount, |
| | 438 | 'link' => "$blogURL/category/" . ($blog['useSlogan'] ? URL::encode($category1['label'],$service['useEncodedURL']) : $category1['id']), |
| | 439 | 'children' => $children) |
| | 440 | ); |