[Pmwiki-users] Date/Timestamp question
Knut Alboldt
mailing
Tue Aug 31 01:19:27 CDT 2004
At 02:01 31.08.2004, you wrote:
>when using the date/timestamp function that I found in the cookbook,
>how might I change the color/font of the text in the include file?
>(basically so I don't have to when I call [[datetime..[[
do you mean http://www.pmwiki.org/wiki/Cookbook/DateTimeStamp ?
if yes:
change the definitions of Dpoublebrackets like:
$DoubleBrackets["/\\[\\[datetime\\]\\]/e"] = "'<font
color=\"red\">'.date('$datetimeFmt').'</font>';";
(oops: very obsolete html-style :-)
or better:
$DoubleBrackets["/\\[\\[datetime\\]\\]/e"] = "'<span
style=\"color:red\">'.date('$datetimeFmt').'</span>';";
or even best :-)
$DoubleBrackets["/\\[\\[datetime\\]\\]/e"] = "'<span
class=\"mydatetime\">'.date('$datetimeFmt').'</span>';";
and use a corresponding style in the css-files
Knut
More information about the pmwiki-users
mailing list