- # color indices for the second navigation bar on the website
- if ($web_manual) {
- my %color_maps = (
- 'introduction' => [2, 2, 2, 2, 3, 3, 4, 4],
- 'download' => [2, 2, 2, 3, 3, 4],
- 'manuals' => [1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4],
- 'community' => [1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 4, 4],
- );
- my $addColor = "colorDefault";
- while (($top_section, $color_indices) = each %color_maps) {
- if (index ($element->{'sectionup'}->{'file'}, $top_section) >= 0) {
- $addColor = "color" . $color_indices->[$child_count];
- }
- }
- $this_css_class .= $addColor;
- }