join '', map { $_->script } @{ $_[0]->actions };
}
-sub javascripts {
+sub static_javascripts {
'kivi.ActionBar.js'
}
use strict;
use parent qw(SL::Layout::Base);
-sub use_stylesheet {
+sub static_stylesheets {
qw(icons16.css),
}
use SL::JSON qw(to_json);
use URI;
-sub stylesheets {
+sub static_stylesheets {
qw(icons16.css icons24.css menu.css)
}
"\$(function(){kivi.LeftMenu.init(@{[ to_json([ section_menu($_[0]->menu) ]) ]})});"
}
-sub javascripts {
+sub static_javascripts {
qw(
js/jquery.cookie.js
js/kivi.LeftMenu.js
);
}
-sub use_javascript {
- my $self = shift;
+sub static_javascripts {
qw(
jquery.js
common.js
kivi.js
),
'locale/'. $::myconfig{countrycode} .'.js',
- $self->SUPER::use_javascript(@_);
}
-sub use_stylesheet {
- my $self = shift;
+sub static_stylesheets {
qw(
main.css
menu.css
),
- $self->SUPER::use_stylesheet(@_);
}
1;
);
}
-sub stylesheets {
+sub static_stylesheets {
'frame_header/header.css';
}
-sub javascripts {
+sub static_javascripts {
'jquery-ui.js',
'kivi.QuickSearch.js',
}