]> wagnertech.de Git - mfinanz.git/blobdiff - SL/Controller/Layout/V4.pm
Aufrufe von focus() entfernt.
[mfinanz.git] / SL / Controller / Layout / V4.pm
index 6be1b551a419172bf6059fa198bb9efffc468e53..aee0b1318f810083029aee3c338f3990e50a2b40 100644 (file)
@@ -11,19 +11,13 @@ sub new {
   my ($class, @slurp) = @_;
 
   my $self = $class->SUPER::new(@slurp);
   my ($class, @slurp) = @_;
 
   my $self = $class->SUPER::new(@slurp);
-  $self->{top} = SL::Controller::Layout::Top->new;
+  $self->add_sub_layouts(
+    SL::Controller::Layout::Top->new,
+    SL::Controller::Layout::None->new,
+  );
   $self;
 }
 
   $self;
 }
 
-sub pre_content {
-  $_[0]{top}->render .
-  &render;
-}
-
-sub stylesheets {
-  $_[0]{top}->stylesheets
-}
-
 sub start_content {
   "<div id='content'>\n";
 }
 sub start_content {
   "<div id='content'>\n";
 }
@@ -32,7 +26,7 @@ sub end_content {
   "</div>\n";
 }
 
   "</div>\n";
 }
 
-sub render {
+sub pre_content {
   my ($self) = @_;
 
   $self->{sub_class} = 1;
   my ($self) = @_;
 
   $self->{sub_class} = 1;
@@ -41,6 +35,8 @@ sub render {
   $callback               = URI->new($callback)->rel($callback) if $callback;
   $callback               = "login.pl?action=company_logo"      if $callback =~ /^(\.\/)?$/;
 
   $callback               = URI->new($callback)->rel($callback) if $callback;
   $callback               = "login.pl?action=company_logo"      if $callback =~ /^(\.\/)?$/;
 
+  $self->SUPER::pre_content .
+
   $self->SUPER::render('menu/menuv4', { no_menu => 1, no_output => 1 },
     force_ul_width => 1,
     date           => $self->clock_line,
   $self->SUPER::render('menu/menuv4', { no_menu => 1, no_output => 1 },
     force_ul_width => 1,
     date           => $self->clock_line,