Revision 972
Added by Matthias over 16 years ago
| trunk/wb/modules/show_menu2/include.php | ||
|---|---|---|
| 723 | 723 |
// need to check if any of the children need to be displayed too. |
| 724 | 724 |
$isListOpen = false; |
| 725 | 725 |
$currentLevel = $wb->page['level'] == '' ? 0 : $wb->page['level']; |
| 726 |
|
|
| 727 |
// get the number of siblings skipping the hidden pages so we can pass |
|
| 728 |
// this in and check if the item is first or last |
|
| 729 |
$sibCount = 0; |
|
| 730 |
foreach ($rgParent[$aStart] as $page) {
|
|
| 731 |
if (!array_key_exists('sm2_hide', $page)) $sibCount++;
|
|
| 732 |
} |
|
| 726 | 733 |
|
| 727 |
// get the number of siblings so we can check pass this and check if the |
|
| 728 |
// item is first or last |
|
| 729 |
$sibCount = count($rgParent[$aStart]); |
|
| 730 | 734 |
$currSib = 0; |
| 731 | 735 |
foreach ($rgParent[$aStart] as $page) {
|
| 736 |
// skip all hidden pages |
|
| 737 |
if (array_key_exists('sm2_hide', $page)) { // not set if false, so existence = true
|
|
| 738 |
continue; |
|
| 739 |
} |
|
| 740 |
|
|
| 732 | 741 |
$currSib++; |
| 733 | 742 |
|
| 734 | 743 |
// skip any elements that are lower than the maximum level |
Also available in: Unified diff
fixed bug introduced in changeset [971]