Revision 8bed51b5
Von Sven Schöling vor etwa 12 Jahren hinzugefügt
SL/Layout/Classic.pm | ||
---|---|---|
5 | 5 |
|
6 | 6 |
use SL::Layout::Top; |
7 | 7 |
use SL::Layout::MenuLeft; |
8 |
use SL::Layout::None; |
|
8 | 9 |
|
9 |
sub new { |
|
10 |
my ($class, @slurp) = @_; |
|
11 |
|
|
12 |
my $self = $class->SUPER::new(@slurp); |
|
13 |
|
|
14 |
$self->add_sub_layouts([ |
|
10 |
sub init_sub_layouts { |
|
11 |
[ |
|
15 | 12 |
SL::Layout::Top->new, |
16 | 13 |
SL::Layout::MenuLeft->new, |
17 | 14 |
SL::Layout::None->new, |
18 |
]); |
|
19 |
|
|
20 |
$self; |
|
15 |
] |
|
21 | 16 |
} |
22 | 17 |
|
23 | 18 |
1; |
Auch abrufbar als: Unified diff
init_sub_layouts ist sauberer