line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package HTML::Widgets::NavMenu::Iterator::SiteMap; |
2
|
|
|
|
|
|
|
$HTML::Widgets::NavMenu::Iterator::SiteMap::VERSION = '1.0902'; |
3
|
11
|
|
|
11
|
|
65
|
use strict; |
|
11
|
|
|
|
|
18
|
|
|
11
|
|
|
|
|
268
|
|
4
|
11
|
|
|
11
|
|
47
|
use warnings; |
|
11
|
|
|
|
|
18
|
|
|
11
|
|
|
|
|
254
|
|
5
|
|
|
|
|
|
|
|
6
|
11
|
|
|
11
|
|
43
|
use parent qw(HTML::Widgets::NavMenu::Iterator::Html); |
|
11
|
|
|
|
|
20
|
|
|
11
|
|
|
|
|
49
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
sub _start_root |
10
|
|
|
|
|
|
|
{ |
11
|
6
|
|
|
6
|
|
9
|
my $self = shift; |
12
|
|
|
|
|
|
|
|
13
|
6
|
|
|
|
|
12
|
$self->_add_tags(" |
14
|
|
|
|
|
|
|
} |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
sub _start_sep |
17
|
|
|
|
1
|
|
|
{ |
18
|
|
|
|
|
|
|
} |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
sub _start_regular |
21
|
|
|
|
|
|
|
{ |
22
|
24
|
|
|
24
|
|
31
|
my $self = shift; |
23
|
|
|
|
|
|
|
|
24
|
24
|
|
|
|
|
40
|
my $top_item = $self->top; |
25
|
24
|
|
|
|
|
40
|
my $node = $self->top->_node(); |
26
|
|
|
|
|
|
|
|
27
|
24
|
|
|
|
|
52
|
$self->_add_tags(""); |
28
|
24
|
|
|
|
|
51
|
my $tag = $self->get_a_tag(); |
29
|
24
|
|
|
|
|
44
|
my $title = $node->title(); |
30
|
24
|
100
|
|
|
|
41
|
if ( defined($title) ) |
31
|
|
|
|
|
|
|
{ |
32
|
13
|
|
|
|
|
21
|
$tag .= " - $title"; |
33
|
|
|
|
|
|
|
} |
34
|
24
|
|
|
|
|
61
|
$self->_add_tags($tag); |
35
|
|
|
|
|
|
|
|
36
|
24
|
100
|
|
|
|
48
|
if ( $top_item->_num_subs_to_go() ) |
37
|
|
|
|
|
|
|
{ |
38
|
6
|
|
|
|
|
26
|
$self->_add_tags(" "); |
39
|
6
|
|
|
|
|
23
|
$self->_add_tags(" |
40
|
|
|
|
|
|
|
} |
41
|
|
|
|
|
|
|
} |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
sub _end_sep |
44
|
|
|
|
1
|
|
|
{ |
45
|
|
|
|
|
|
|
} |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
sub _is_expanded |
48
|
|
|
|
|
|
|
{ |
49
|
62
|
|
|
62
|
|
151
|
return 1; |
50
|
|
|
|
|
|
|
} |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
1; |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
__END__ |