calendar (Smarty extension function)
The calendar function creates a small table containing a calendar of the specified month, with links to archive pages for the specific days in the month that contain pages. There are several optional parameters:
- year - if not specified, the current year is used.
- month - if not specified, the current month is used.
- folder - if not specified, the calendar contains links to any pages on the site; if specified, then the calendar references only the specified folder.
- user - if not specified, the calendar contains links to pages written by any user; if specified, then the calendar references only pages by the user.
Example:
{calendar folder=$page_folder_id}
In this example, a calendar for the folder identified by $page_folder_id is generated.
