Revision a8814e0e
Von Sven Schöling vor etwa 12 Jahren hinzugefügt
SL/Controller/Layout/V4.pm | ||
---|---|---|
11 | 11 |
my ($class, @slurp) = @_; |
12 | 12 |
|
13 | 13 |
my $self = $class->SUPER::new(@slurp); |
14 |
$self->{top} = SL::Controller::Layout::Top->new;
|
|
14 |
$self->add_sub_layouts(SL::Controller::Layout::Top->new);
|
|
15 | 15 |
$self; |
16 | 16 |
} |
17 | 17 |
|
18 |
sub pre_content { |
|
19 |
$_[0]{top}->render . |
|
20 |
&render; |
|
21 |
} |
|
22 |
|
|
23 |
sub stylesheets { |
|
24 |
$_[0]{top}->stylesheets |
|
25 |
} |
|
26 |
|
|
27 | 18 |
sub start_content { |
28 | 19 |
"<div id='content'>\n"; |
29 | 20 |
} |
... | ... | |
32 | 23 |
"</div>\n"; |
33 | 24 |
} |
34 | 25 |
|
35 |
sub render {
|
|
26 |
sub pre_content {
|
|
36 | 27 |
my ($self) = @_; |
37 | 28 |
|
38 | 29 |
$self->{sub_class} = 1; |
... | ... | |
41 | 32 |
$callback = URI->new($callback)->rel($callback) if $callback; |
42 | 33 |
$callback = "login.pl?action=company_logo" if $callback =~ /^(\.\/)?$/; |
43 | 34 |
|
35 |
$self->SUPER::pre_content . |
|
36 |
|
|
44 | 37 |
$self->SUPER::render('menu/menuv4', { no_menu => 1, no_output => 1 }, |
45 | 38 |
force_ul_width => 1, |
46 | 39 |
date => $self->clock_line, |
Auch abrufbar als: Unified diff
besseres interface und delegating für layouts, inline accessoren
html menü in footer verschoben