1 # Copyright 2002-2007 Interchange Development Group and others
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version. See the LICENSE file for details.
8 # $Id: title_bar.tag,v 1.4 2007-03-30 23:40:57 pajamian Exp $
10 UserTag title-bar Order width size color
11 UserTag title-bar PosNumber 3
12 UserTag title-bar Interpolate 1
13 UserTag title-bar HasEndTag 1
14 UserTag title-bar Version $Revision: 1.4 $
15 UserTag title-bar Routine <<EOR
17 my ($width, $size, $color, $text) = @_;
18 $width = 500 unless defined $width;
19 $size = 6 unless defined $size;
20 $color = ($::Variable->{HEADERBG} || '#444444') unless defined $color;
21 $color = qq{BGCOLOR="$color"} unless $color =~ /^\s*bgcolor=/i;
22 my $tcolor = $::Variable->{HEADERTEXT} || 'WHITE';
23 $text = qq{<FONT COLOR="$tcolor" SIZE="$size">$text</FONT>};
25 <TABLE CELLSPACING=0 CELLPADDING=6 WIDTH="$width"><TR><TD VALIGN=CENTER $color>$text</TD></TR></TABLE>