6.21. title_bar
Creates a quick title bar.
6.21.1. Summary
[title-bar width size color]My title[/title-bar] [title-bar width=600 size=5 color="#ff0000"]My title[/title-bar]
Positional parameters: The first line shows the usage with positional parameters (given in order). The second line shows usage with named parameters.
Parameters | Description | Default |
color |
Background color the bar.
|
HEADERBG or #444444 |
size | Font size | 6 |
width | Width of the title bar | 500 |
Other_Characteristics | |
Invalidates cache | No |
Macro | No |
Has end tag | [/title-bar] |
Tag expansion example:
[title-bar 600 5 red]My title[/title-bar] [title-bar width=600 size=5 color="#ff0000"]My title[/title-bar]
ASP-like Perl call:
$Tag->title_bar( { body => "My Title", } ); $Tag->title_bar( { width => 400, color => "#0000ff", body => "My title", } );
or similarly with positional parameters,
$Tag->title_bar( 600, 5, "red", "My title" );
6.21.2. Description
Quickly adds a title bar to your pages without having to type the html each time. Background color, width of the bar and size of the text can be customized by setting the appropriate parameter. The text color defaults to variable HEADERTEXT or when its not present to white.
6.21.2.1. color
Sets the background color of the bar. You can set the color as 'red', '#ff0000', or 'bgcolor="#ff0000"'.
6.21.2.2. size
Determines the size of the text. Parameter should be set to a value accepted by the HTML <font> tag size attribute.
6.21.2.3. width
Sets the width of the bar.