1 package SL::Layout::Top;
4 use parent qw(SL::Layout::Base);
6 use SL::Controller::TopQuickSearch;
12 # Only enable the quick search functionality if all database
13 # upgrades have already been applied as quick search requires
14 # certain columns that are only created by said database upgrades.
15 push @options, (quick_search => SL::Controller::TopQuickSearch->new) unless $::request->applying_database_upgrades;
17 $self->presenter->render('menu/header',
18 now => DateTime->now_local,
19 is_fastcgi => $::dispatcher ? scalar($::dispatcher->interface_type =~ /fastcgi/i) : 0,
20 is_links => scalar($ENV{HTTP_USER_AGENT} =~ /links/i),
25 sub static_stylesheets {
26 'frame_header/header.css';
29 sub static_javascripts {
31 'kivi.QuickSearch.js',
42 SL::Layout::Top - Top line in classic and v3 menu.
46 The entire top line is rendered into a div with id C<frame-header>. The following classes are used:
48 frame-header-element: any continuous block of entries
49 frame-header-left: the left floating part
50 frame-header-right: the right floating part
51 frame-header-center: the centered part
59 Sven Schoeling E<lt>s.schoeling@linet-services.deE<gt>