> I would like to display the current date in all my pages. I find how to
>do this in php, but I can't find where I can add this in the lib/*.php files.
>I have tried some changes but I go no solution. Can you help me ? Where I
>can add the code for the date ?
Here's one way:
In lib/stdlib.php, in the function GeneratePage() at about line 478
(right after "_dotoken('LOGO', $logo, $page);") add a line like:
_dotoken('CURRENT_DATE', date($GLOBALS['dateformat']), $page);
Then, in the templates (e.g. templates/browse.html) you can use
the token ###CURRENT_DATE### which will be replaced by the current
date.
Jeff
|