no need for FS calendar buttons in RT 4.2
[freeside.git] / rt / share / html / Elements / PageLayout
index 5956a3b..fcd4f56 100755 (executable)
@@ -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
 %#                                          <sales@bestpractical.com>
 %#
 %# (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## <div id="main-navigation"><& /Elements/Menu, menu => Menu(), id => 'app-nav' &></div>
 <div id="page-navigation"><& /Elements/Menu, menu => PageMenu(), id => 'page-menu', 'parent_id' => 'page' &></div>
 % if (0) { ## new ticket via customer, and we already have a ticket search box
 <div id="topactions"><& /Elements/WidgetBar, menu => PageWidgets() &></div>
 % }
+
+% if ($m->comp_exists($stylesheet_plugin) ) {
+<& $stylesheet_plugin &>
+% }
+
 <div id="body">
 % $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
 </%ARGS>
+<%init>
+my $style = $session{'CurrentUser'}
+          ? $session{'CurrentUser'}->Stylesheet
+          : RT->Config->Get('WebDefaultStylesheet');
+my $stylesheet_plugin = "/NoAuth/css/".$style."/AfterMenus";
+</%init>