X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/3ab26ffcd0c8bfbf08508624c9ea07fbc6b4352a..4a12c839937370488b8b8a40bef376e7cb0a2ce6:/SL/Controller/Layout/V4.pm diff --git a/SL/Controller/Layout/V4.pm b/SL/Controller/Layout/V4.pm new file mode 100644 index 000000000..6be1b551a --- /dev/null +++ b/SL/Controller/Layout/V4.pm @@ -0,0 +1,52 @@ +package SL::Controller::Layout::V4; + +use strict; +use parent qw(SL::Controller::Layout::Base); +use SL::Controller::Layout::Css; +use SL::Controller::Layout::Top; + +use URI; + +sub new { + my ($class, @slurp) = @_; + + my $self = $class->SUPER::new(@slurp); + $self->{top} = SL::Controller::Layout::Top->new; + $self; +} + +sub pre_content { + $_[0]{top}->render . + &render; +} + +sub stylesheets { + $_[0]{top}->stylesheets +} + +sub start_content { + "
\n"; +} + +sub end_content { + "
\n"; +} + +sub render { + my ($self) = @_; + + $self->{sub_class} = 1; + + my $callback = $::form->unescape($::form->{callback}); + $callback = URI->new($callback)->rel($callback) if $callback; + $callback = "login.pl?action=company_logo" if $callback =~ /^(\.\/)?$/; + + $self->SUPER::render('menu/menuv4', { no_menu => 1, no_output => 1 }, + force_ul_width => 1, + date => $self->clock_line, + menu => $self->print_menu, + callback => $callback, + ); +} + +1;