You can do it the way it was done in Links v1, by putting predefined font variables near the top of site_html.pl. Links v1 used the following variables:
Quote:
$font_new = 'font face="arial, helvetica" size=2 color="#CC0000"';
$font_pop = 'font face="arial, helvetica" size=2 color="#000000"';
$font_date = 'font face="arial, helvetica" size=1 color="#000000"';
$font_title = 'font face="arial, helvetica" size=4 color="#000000"';
$font_subtitle = 'font face="arial, helvetica" size=3 color="#000000"';
$font_menu = 'font face="verdana, arial" size=1 color="#000000"';
$font_link = 'font face="arial, helvetica" size=2 color="#000000"';
$font_category = 'font face="arial, helvetica" size=2 color="#000000"';
$font = 'font face="arial, helvetica" size=2 color="#000000"';
Then, in any of the site_html.pl subroutines, you can use, for example, <$font_category> .. </font> where you want the font to be used.
If you want to do that with templates, then in the %globals variable, add the following code to the top of the list of other variables provided in %globals:
Quote:
font_new => qq|<font face="arial, helvetica" size=2 color="#CC0000">|,
font_pop => qq|<font face="arial, helvetica" size=2 color="#000000">|,
font_date => qq|<font face="arial, helvetica" size=1 color="#000000">|,
font_title => qq|<font face="arial, helvetica" size=4 color="#000000">|,
font_subtitle => qq|<font face="arial, helvetica" size=3 color="#000000">|,
font_menu => qq}>font face="verdana, arial" size=1 color="#000000">|,
font_link => qq|<font face="arial, helvetica" size=2 color="#000000">|,
font_category => qq|<font face="arial, helvetica" size=2 color="#000000">|,
font => qq|<font face="arial, helvetica" size=2 color="#000000">|,
Then, in the templates when you want to use a font for something, say a category list, you can use <%font_category%> where you want the font and </font> to end its use.
Of course, you can eliminate all of this type of stuff just by putting <font></font> tags directly into the HTML of site_html.pl or in the template files themselves.
I hope this helps.
[This message has been edited by Bobsie (edited June 04, 1999).]