1 package SL::Layout::Design40Switch;
4 use parent qw(SL::Layout::Base);
7 $::myconfig{stylesheet} =~ /design40/i;
11 is_design40() ? "templates/design40_webpages" : $_[0]->SUPER::webpages_path
14 sub webpages_fallback_path {
15 is_design40() ? "templates/webpages" : $_[0]->SUPER::webpages_fallback_path
18 sub allow_stylesheet_fallback {
23 is_design40() ? 'html5' : $_[0]->SUPER::html_dialect
34 SL::Layout::Design40Switch - Layout switch for Design 4.0
38 Detects whether the user selected the Design4.0 stylesheet, and if so,
39 overrides some implementation details.
43 Once activated, it will set the templates to use C<templates/design40_webpages> instead.
45 It will also disable css fallback, so that common.css etc won't interfere.
53 Sven Schöling $<lt>s.schoeling@googlemail.comE<gt>