Hi folks,
I'm developing my own theme based upon pushbutton. I'd need to display the date, but I haven't found any way to do it.
The smart tag displayed in drupal documents for xtemplate are the only ones?
Thanks in advance,
Riccardo

Comments

clairem’s picture

On my site, we did it by a quick hack to by hacking xtemplate.engine

On line 126 of xtemplate.engine (same line number in both the 4.5.1 and 4.5.0 installations), is a line:

"styles" => theme_get_styles(),

after that line, we added:

"this_date" => date("j F Y"),

(note the comma at the end of the code)

That produces today's date as: 17 January 2005

Something like this really ought to be in the default installation