X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=rt%2Fshare%2Fhtml%2FElements%2FHeader;h=d2644846338f8004c46f00bd6d522d7efcd28fe6;hb=ac33786c789f76aef8c6bea4726d9bdf301cb04a;hp=1f6035d7d705656abc53ff1c815ba465a2b0b58e;hpb=31f3763747b82764bb019cfab5b2a2945fc9a99d;p=freeside.git diff --git a/rt/share/html/Elements/Header b/rt/share/html/Elements/Header index 1f6035d7d..d26448463 100755 --- a/rt/share/html/Elements/Header +++ b/rt/share/html/Elements/Header @@ -45,14 +45,27 @@ %# those contributions and any derivatives thereof. %# %# END BPS TAGGED BLOCK }}} +% if ( $Popup ) { +<& /elements/header-popup.html, { + 'title_noescape' => $Title, + 'head' => $head, + 'etc' => $etc, + 'nobr' => 1, + #'nocss' => 1, + 'no_jquery' => $JavaScript, + } +&> +% } else { <& /elements/header.html, { - 'title' => $Title, - 'head' => $head, - 'etc' => $etc, + 'title_noescape' => $Title, + 'head' => $head, + 'etc' => $etc, #make space for RT menu for now# 'nobr' => 1, - 'nocss' => 1, + 'nocss' => 1, + 'no_jquery' => $JavaScript, } &> +% } <%INIT> #for "Site CSS from theme editor" below #use Scalar::Util qw(blessed); @@ -113,9 +126,11 @@ if ($JavaScript) { $head .= $m->scomp('HeaderJavascript', focus => $Focus, onload => $onload, RichText => $RichText ); } -my $stylesheet_plugin = "/NoAuth/css/$style/InHeader"; -if ($m->comp_exists($stylesheet_plugin) ) { - $head .= $m->scomp($stylesheet_plugin); +if ($JavaScript) { + my $stylesheet_plugin = "/NoAuth/css/$style/InHeader"; + if ($m->comp_exists($stylesheet_plugin) ) { + $head .= $m->scomp($stylesheet_plugin); + } } # @@ -151,4 +166,5 @@ $LinkRel => undef $JavaScript => 1 $SkipDoctype => 0 $RichText => 1 +$Popup => 0