Revision a8814e0e
Von Sven Schöling vor etwa 12 Jahren hinzugefügt
SL/Controller/Layout/Classic.pm | ||
---|---|---|
11 | 11 |
|
12 | 12 |
my $self = $class->SUPER::new(@slurp); |
13 | 13 |
|
14 |
$self->{top} = SL::Controller::Layout::Top->new; |
|
15 |
$self->{left} = SL::Controller::Layout::MenuLeft->new; |
|
16 |
|
|
17 |
$self->use_stylesheet( |
|
18 |
$self->{top}->stylesheets, |
|
19 |
$self->{left}->stylesheets, |
|
20 |
); |
|
21 |
|
|
22 |
$self->use_javascript( |
|
23 |
$self->{top}->javascripts, |
|
24 |
$self->{left}->javascripts, |
|
25 |
); |
|
14 |
$self->add_sub_layouts([ |
|
15 |
SL::Controller::Layout::Top->new, |
|
16 |
SL::Controller::Layout::MenuLeft->new, |
|
17 |
]); |
|
26 | 18 |
|
27 | 19 |
$self; |
28 | 20 |
} |
29 | 21 |
|
30 |
sub pre_content { |
|
31 |
$_[0]{top}->render . |
|
32 |
$_[0]{left}->render; |
|
33 |
} |
|
34 |
|
|
35 |
sub start_content { |
|
36 |
"<div id='content' class='html-menu'>\n"; |
|
37 |
} |
|
38 |
|
|
39 |
sub end_content { |
|
40 |
"</div>\n"; |
|
41 |
} |
|
42 |
|
|
43 | 22 |
1; |
Auch abrufbar als: Unified diff
besseres interface und delegating für layouts, inline accessoren
html menü in footer verschoben