$head .= qq(<link rel="alternate" href="$RSSAutoDiscovery" type="application/rss+xml" title="RSS RT Search" />);
}
-my $stylesheet_plugin = "/NoAuth/css/$style/InHeader";
-if ($m->comp_exists($stylesheet_plugin) ) {
- $head .= $m->scomp($stylesheet_plugin);
+if ($JavaScript) {
+ $head .= $m->scomp('HeaderJavascript', focus => $Focus, onload => $onload, RichText => $RichText );
- }
+
- if ($JavaScript) {
+ my $stylesheet_plugin = "/NoAuth/css/$style/InHeader";
+ if ($m->comp_exists($stylesheet_plugin) ) {
+ $head .= $m->scomp($stylesheet_plugin);
+ }
}
- #<!-- Site CSS from theme editor -->
- #<style type="text/css" media="all" id="sitecss">
- #%# Header is used when there isn't a database (such as in the Installer) which means there is no
- #%# RT::System object, nor are there attributes.
- #% if (blessed(RT->System) and my $attr = RT->System->FirstAttribute('UserCSS')) {
- #<% $attr->Content |n %>
- #% }
- #</style>
-
# $m->callback( %ARGS, CallbackName => 'Head' );
$head .= $m->scomp( '/Elements/Callback', _CallbackName => 'Head', %ARGS );