X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=rt%2Fshare%2Fhtml%2FElements%2FPageLayout;h=3ffc4258c14a8d32f93bdd823ca9001b3119f086;hb=de9d037528895f7151a9aead6724ce2df95f9586;hp=5956a3bedb71db7428f007fcf5b3144a32535122;hpb=85e677b86fc37c54e6de2b06340351a28f5a5916;p=freeside.git diff --git a/rt/share/html/Elements/PageLayout b/rt/share/html/Elements/PageLayout index 5956a3bed..3ffc4258c 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-2017 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"; +