X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Felements%2Fheader-popup.html;h=01a7ba87fceb8b6f5416d1dbccd16aa12ec72a00;hb=ce89af6a65868fd0f5cde05ef866611aacad39aa;hp=2bd4a96e8a0b176847bf007a9b2fa7e72c27b75b;hpb=8fee1eff267694b2f0bcd5ecc732b814034ba612;p=freeside.git
diff --git a/httemplate/elements/header-popup.html b/httemplate/elements/header-popup.html
index 2bd4a96e8..01a7ba87f 100644
--- a/httemplate/elements/header-popup.html
+++ b/httemplate/elements/header-popup.html
@@ -2,15 +2,15 @@
Example:
- include( '/elements/header-popup.html',
- {
- 'title' => 'Title',
- 'menubar' => \@menubar,
- 'etc' => '', #included in
tag, for things like onLoad=
- 'head' => '', #included before closing tag
- 'nobr' => 0, #1 for no after the title
- }
- );
+ <& /elements/header-popup.html,
+ {
+ 'title' => 'Title',
+ 'menubar' => \@menubar,
+ 'etc' => '', #included in tag, for things like onLoad=
+ 'head' => '', #included before closing tag
+ 'nobr' => 0, #1 for no after the title
+ }
+ &>
#old-style
include( '/elements/header.html', 'Title', $menubar, $etc, $head);
@@ -20,23 +20,26 @@ Example:
- <% $title %>
+ <% $title |h %>
+
+
+
<% $head %>
- >
+ >
+% if ( $title ) {
- <% $title %>
+ <% $title |h %>
-
+% }
% unless ( $nobr ) {
% }
-
<%init>
my( $title, $menubar, $etc, $head ) = ( '', '', '', '' );
@@ -55,6 +58,7 @@ if ( ref($_[0]) ) {
$etc = @_ ? shift : ''; #$etc is for things like onLoad= etc.
$head = @_ ? shift : ''; #$head is for things that go in the section
}
+$etc .= ' BGCOLOR="#f8f8f8"' unless $etc =~ /BGCOLOR/i;
my $conf = new FS::Conf;