kivitendo/SL/Layout/Top.pm @ f0043d32
b6fd15a8 | Sven Schöling | package SL::Layout::Top;
|
||
4a12c839 | Sven Schöling | |||
use strict;
|
||||
b6fd15a8 | Sven Schöling | use parent qw(SL::Layout::Base);
|
||
4a12c839 | Sven Schöling | |||
a8814e0e | Sven Schöling | sub pre_content {
|
||
4a12c839 | Sven Schöling | my ($self) = @_;
|
||
7647d46a | Moritz Bunkus | $self->SUPER::render('menu/header', { output => 0 },
|
||
4a12c839 | Sven Schöling | now => DateTime->now_local,
|
||
is_fastcgi => scalar($::dispatcher->interface_type =~ /fastcgi/i),
|
||||
is_links => scalar($ENV{HTTP_USER_AGENT} =~ /links/i));
|
||||
}
|
||||
sub stylesheets {
|
||||
dc4b933b | Sven Schöling | 'frame_header/header.css';
|
||
4a12c839 | Sven Schöling | }
|
||
1;
|
||||
a2ec076d | Sven Schöling | |||
__END__
|
||||
=encoding utf-8
|
||||
=head1 NAME
|
||||
871a70f0 | Moritz Bunkus | SL::Layout::Top - Top line in classic and v3 menu.
|
||
a2ec076d | Sven Schöling | |||
=head1 DOM MODEL
|
||||
The entire top line is rendered into a div with id C<frame-header>. The following classes are used:
|
||||
frame-header-element: any continuous block of entries
|
||||
frame-header-left: the left floating part
|
||||
frame-header-right: the right floating part
|
||||
frame-header-center: the centered part
|
||||
=head1 BUGS
|
||||
none yet. :)
|
||||
=head1 AUTHOR
|
||||
Sven Schoeling E<lt>s.schoeling@linet-services.deE<gt>
|
||||
=cut
|