Archive Calendar
A display that shows pictures in a calendar
As it is often the case, I created the plug-in because I needed such a display myself.
This plug-in is designed to display a calendar (monthly or yearly) with a picture to its corresponding date.
For example, if at least one picture was taken on December 21st 2011, then one of those pictures will be displayed in the corresponding « block ».
It is an Open Source plug-in, licensed under « Creative Commons – Attribution Share Alike ».
Change log:
- v2.1.0
- Added customization of page of display
- Added customization of CSS classes
- v2.0.0
- Compatible with Zenphoto v1.4.x
- Bug correction: the first empty row didn’t go to the next line
- v1.5.2
- Bug correction: Error message appeared sometimes
- v1.5.1
- Bug correction: Displayed only the first picture of the month
- v1.5.0
- Bug correction: didn’t take CSS of the theme in consideration
- v1.4.1
- Bug correction: non-display of the 31st day of a month
- v1.3.0
- Moved the plug-in from « zp-core/zp-extensions/ » folder to « plugins/ » to be in order
- v1.2.0
- Added possible CSS customisation
- v1.1.0
- Improved the code
- Added a « monthly/yearly » option
- v1.0.0
- Creation of the plug-in
Requirements:
- Zenphoto v1.4.x
- A search page
Installation
- Download the archive
- Extract the archive in the « zp-core/zp-extensions/ » folder
- Activate the plug-in in the administration interface
- Add « printCalendar() » in the code of the page where the calendar mus be displayed
- Modify the plug-in option if needed (By default, the calendar is monthly)
Options
- Monthly/Yearly: Choose if you want to display the calendar per month or per year
Customize
You can personalize the display of the calendar by creating a « archive_calendar.css » file in your current theme. (CSS notion needed)
Parameters
- $page (string): By default, the page of display of the calendar is archive.php .
- $class (array): Changes the CSS classes.
array(‘calendar’, ‘year’, ‘month’, ‘first’, ‘weekday’, ‘empty’, ‘day’);
Download
License
The source code of the plug-in is available at https://launchpad.net/zen-arcalendar. If you find any bug please report it on https://bugs.launchpad.net/zen-arcalendar. Please write the as much details as possible so I can correct it under a short time.

This work is licensed under a Creative Commons Attribution 2.0 France License.
