[% # splash/tabbox: a box with a single tab
#
# ARGS: title, content, style, tabwidth, tablocate, tabalign
#
SET
default = splash.style.default
;
DEFAULT
style = default
col = style.col.fore or default.col.fore
bgcol = style.col.back or default.col.back
edge = style.col.edge or default.col.edge
fill = style.col.fill or default.col.fill
tabalign = style.tab.align or default.tab.align
tabwidth = style.tab.width or default.tab.width
tablocate = style.tab.locate or default.tab.locate
;
SET
rgbfore = splash.rgb.$col
rgbback = splash.rgb.$bgcol
imgfore = "$splash.images/$col"
imgback = "$splash.images/$bgcol"
imgsize = splash.imgsize
imgtype = splash.imgtype
up = invert ? 'bottom' : 'top'
down = invert ? 'top' : 'bottom'
border = border.defined ? border
: style.border.defined ? style.border
: default.border
pad = pad.defined ? pad
: style.pad.defined ? style.pad : default.pad
;
-%]
<!-- tt2.splash.tabbox -->
<table border="0" cellpadding="0" cellspacing="0"
[%- IF width %] width="[% width %]"[% END %]>
<tr>
<td align="[% tablocate %]">
[%- INCLUDE splash/tab
width = tabwidth
align = tabalign
content = title %]</td>
</tr>
<tr>
<td>[% INCLUDE splash/box col=edge bgcol=fill width='100%' %]</td>
</tr>
</table>
<!-- /splash.tabbox -->