X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=rt%2Fshare%2Fhtml%2FElements%2FPageLayout;h=fcd4f563f9fbe27375ebd9f7e7a2a81297524a24;hp=5956a3bedb71db7428f007fcf5b3144a32535122;hb=01721976fa3324f41a3093cda68bc38a7eec5ff5;hpb=43a06151e47d2c59b833cbd8c26d97865ee850b6 diff --git a/rt/share/html/Elements/PageLayout b/rt/share/html/Elements/PageLayout index 5956a3bed..fcd4f563f 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) @@ -46,8 +46,6 @@ %# %# END BPS TAGGED BLOCK }}} -<% include('/elements/init_calendar.html') |n %> - % if ( $show_menu ) { %# #FREESIDE MENUS INSTEAD## @@ -55,6 +53,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 +65,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"; +