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