X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FLayout%2FDispatcher.pm;h=4d0345c33327a65bb566ff9dc2ab201f9fb7f38f;hb=1268bf670c06f5a66ad78a75e41ad6c15061d9bc;hp=3dcde2733a164ae7494aae1ca950e629497a9255;hpb=cd73950c9f7616255cf917e36a6e1a03627f860d;p=kivitendo-erp.git diff --git a/SL/Layout/Dispatcher.pm b/SL/Layout/Dispatcher.pm index 3dcde2733..4d0345c33 100644 --- a/SL/Layout/Dispatcher.pm +++ b/SL/Layout/Dispatcher.pm @@ -3,10 +3,13 @@ package SL::Layout::Dispatcher; use strict; use SL::Layout::Admin; +use SL::Layout::AdminLogin; use SL::Layout::Login; use SL::Layout::Classic; use SL::Layout::V3; use SL::Layout::Javascript; +use SL::Layout::Material; +use SL::Layout::MobileLogin; sub new { my ($class, %params) = @_; @@ -15,7 +18,10 @@ sub new { return SL::Layout::V3->new if $params{style} eq 'v3'; return SL::Layout::Javascript->new if $params{style} eq 'neu'; return SL::Layout::Admin->new if $params{style} eq 'admin'; + return SL::Layout::AdminLogin->new if $params{style} eq 'admin_login'; return SL::Layout::Login->new if $params{style} eq 'login'; + return SL::Layout::Material->new if $params{style} eq 'mobile'; + return SL::Layout::MobileLogin->new if $params{style} eq 'mobile_login'; return SL::Layout::None->new; } @@ -165,6 +171,12 @@ Non-existing files will be pruned from the list. Backwards compatible alias for C. Deprecated. +=item C + +Can be overwritten in sub-layouts to return a list of needed stylesheets. The +values will be resolved by the actual layout in addition to the +C accumulator. + =item C Adds the list of arguments to the list of used javascripts. @@ -177,6 +189,13 @@ Non-existing files will be pruned from the list. Backwards compatible alias for C. Deprecated. + +=item C + +Can be overwritten in sub-layouts to return a list of needed javascripts. The +values will be resolved by the actual layout in addition to the +C accumulator. + =item C Add a snippet of javascript.