Projekt

Allgemein

Profil

Herunterladen (966 Bytes) Statistiken
| Zweig: | Markierung: | Revision:
4a12c839 Sven Schöling
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);
a8814e0e Sven Schöling
$self->add_sub_layouts(SL::Controller::Layout::Top->new);
4a12c839 Sven Schöling
$self;
}

sub start_content {
"<div id='content'>\n";
}

sub end_content {
"</div>\n";
}

a8814e0e Sven Schöling
sub pre_content {
4a12c839 Sven Schöling
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 =~ /^(\.\/)?$/;

a8814e0e Sven Schöling
$self->SUPER::pre_content .

4a12c839 Sven Schöling
$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;