line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Bootylicious::Theme::WordpressTwentyten; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
1871
|
use strict; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
53
|
|
4
|
1
|
|
|
1
|
|
6
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
49
|
|
5
|
|
|
|
|
|
|
|
6
|
1
|
|
|
1
|
|
6
|
use base 'Bootylicious::Theme'; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
622
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
sub register { |
9
|
1
|
|
|
1
|
1
|
38
|
my ($self, $app, $conf) = @_; |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
$app->helper( |
12
|
|
|
|
|
|
|
menu => sub { |
13
|
1
|
|
|
1
|
|
23
|
my $self = shift; |
14
|
|
|
|
|
|
|
|
15
|
1
|
|
|
|
|
2
|
my @links; |
16
|
|
|
|
|
|
|
|
17
|
1
|
|
|
|
|
20
|
my $menu = $self->config('menu'); |
18
|
|
|
|
|
|
|
|
19
|
1
|
|
|
|
|
9
|
for (my $i = 0; $i < @$menu; $i += 2) { |
20
|
3
|
|
|
|
|
702
|
my $title = $menu->[$i]; |
21
|
3
|
|
|
|
|
7
|
my $href = $menu->[$i + 1]; |
22
|
|
|
|
|
|
|
|
23
|
3
|
|
|
|
|
40
|
push @links, '' . $self->link_to($href => sub {$title}) . ''; |
|
3
|
|
|
|
|
1003
|
|
24
|
|
|
|
|
|
|
} |
25
|
|
|
|
|
|
|
|
26
|
1
|
|
|
|
|
358
|
return Mojo::ByteStream->new('' . join(' ' => @links). ' '); |
27
|
|
|
|
|
|
|
} |
28
|
1
|
|
|
|
|
7
|
); |
29
|
|
|
|
|
|
|
} |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
1; |
32
|
|
|
|
|
|
|
__DATA__ |