line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package HTML::Widgets::NavMenu::Iterator::SiteMap; |
2
|
|
|
|
|
|
|
$HTML::Widgets::NavMenu::Iterator::SiteMap::VERSION = '1.0901'; |
3
|
11
|
|
|
11
|
|
67
|
use strict; |
|
11
|
|
|
|
|
18
|
|
|
11
|
|
|
|
|
286
|
|
4
|
11
|
|
|
11
|
|
99
|
use warnings; |
|
11
|
|
|
|
|
17
|
|
|
11
|
|
|
|
|
297
|
|
5
|
|
|
|
|
|
|
|
6
|
11
|
|
|
11
|
|
46
|
use parent qw(HTML::Widgets::NavMenu::Iterator::Html); |
|
11
|
|
|
|
|
17
|
|
|
11
|
|
|
|
|
45
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
sub _start_root |
10
|
|
|
|
|
|
|
{ |
11
|
6
|
|
|
6
|
|
7
|
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
|
|
|
|
|
40
|
my $top_item = $self->top; |
25
|
24
|
|
|
|
|
77
|
my $node = $self->top->_node(); |
26
|
|
|
|
|
|
|
|
27
|
24
|
|
|
|
|
67
|
$self->_add_tags(""); |
28
|
24
|
|
|
|
|
48
|
my $tag = $self->get_a_tag(); |
29
|
24
|
|
|
|
|
41
|
my $title = $node->title(); |
30
|
24
|
100
|
|
|
|
46
|
if ( defined($title) ) |
31
|
|
|
|
|
|
|
{ |
32
|
13
|
|
|
|
|
26
|
$tag .= " - $title"; |
33
|
|
|
|
|
|
|
} |
34
|
24
|
|
|
|
|
55
|
$self->_add_tags($tag); |
35
|
|
|
|
|
|
|
|
36
|
24
|
100
|
|
|
|
50
|
if ( $top_item->_num_subs_to_go() ) |
37
|
|
|
|
|
|
|
{ |
38
|
6
|
|
|
|
|
17
|
$self->_add_tags(" "); |
39
|
6
|
|
|
|
|
21
|
$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__ |