X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=rt%2Fshare%2Fhtml%2FElements%2FPageLayout;h=edd71d11e7e448e61aa5a73e6cb419b8fcfdd29f;hb=9aee669886202be7035e6c6049fc71bc99dd3013;hp=5956a3bedb71db7428f007fcf5b3144a32535122;hpb=a6fe07e49e3fc12169e801b1ed6874c3a5bd8500;p=freeside.git diff --git a/rt/share/html/Elements/PageLayout b/rt/share/html/Elements/PageLayout index 5956a3bed..edd71d11e 100755 --- a/rt/share/html/Elements/PageLayout +++ b/rt/share/html/Elements/PageLayout @@ -2,7 +2,7 @@ %# %# COPYRIGHT: %# -%# This software is Copyright (c) 1996-2012 Best Practical Solutions, LLC +%# This software is Copyright (c) 1996-2015 Best Practical Solutions, LLC %# %# %# (Except where explicitly superseded by other copyright notices) @@ -55,6 +55,11 @@ % if (0) { ## new ticket via customer, and we already have a ticket search box
<& /Elements/WidgetBar, menu => PageWidgets() &>
% } + +% if ($m->comp_exists($stylesheet_plugin) ) { +<& $stylesheet_plugin &> +% } +
% $m->callback( %ARGS, CallbackName => 'BeforeBody' ); % $m->flush_buffer(); # we've got the page laid out, let's flush the buffer; @@ -62,3 +67,9 @@ $title => $m->callers(-1)->path $show_menu => 1 +<%init> +my $style = $session{'CurrentUser'} + ? $session{'CurrentUser'}->Stylesheet + : RT->Config->Get('WebDefaultStylesheet'); +my $stylesheet_plugin = "/NoAuth/css/".$style."/AfterMenus"; +