a838aeee12b3de12c389e0092971651edc6e0d4c
[kivitendo-erp.git] / SL / Layout / Top.pm
1 package SL::Layout::Top;
2
3 use strict;
4 use parent qw(SL::Layout::Base);
5
6 sub pre_content {
7   my ($self) = @_;
8
9   $self->presenter->render('menu/header',
10                 now        => DateTime->now_local,
11                 is_fastcgi => scalar($::dispatcher->interface_type =~ /fastcgi/i),
12                 is_links   => scalar($ENV{HTTP_USER_AGENT}         =~ /links/i));
13 }
14
15 sub stylesheets {
16  'frame_header/header.css';
17 }
18
19 1;
20
21 __END__
22
23 =encoding utf-8
24
25 =head1 NAME
26
27 SL::Layout::Top - Top line in classic and v3 menu.
28
29 =head1 DOM MODEL
30
31 The entire top line is rendered into a div with id C<frame-header>. The following classes are used:
32
33   frame-header-element: any continuous block of entries
34   frame-header-left:    the left floating part
35   frame-header-right:   the right floating part
36   frame-header-center:  the centered part
37
38 =head1 BUGS
39
40 none yet. :)
41
42 =head1 AUTHOR
43
44 Sven Schoeling E<lt>s.schoeling@linet-services.deE<gt>
45
46 =cut