Hebrew Dates in Wordpress
Introduction
I'd picked up development of the Hebrew Date plugin from KosherJava. Although much of the logic is rewritten, most of the credit goes to KosherJava! I just get credit for the bugs...
Release Notes
New in version 1.0.0: (this release got lost... download a newer one!)
- Database config (instead of coded in the file)
- Configuration screen shows when an update was performed
- Option of showing Hebrew (or transliterated) only, Gregorian - Hebrew, or Hebrew - Gregorian
- Lots of code cleanup.
- Easier to add languages (I'd like to add an academic spelling as well)
- Support for full names (Marcheshvan, Menachem Av)
- XHTML 1.1 compliant! (span rtl)
- Hebrew (default) or Transliterated (Latin character set) characters
- Transliteration according Ashkenazi (default) or Sefardi pronunciation
- Sunset correction enabled or disabled (default) by Latitude / Longitude
New in version 1.0.1:
- Based on an idea I "borrowed" from Jacob Fresco, I've added the ability to insert the current Hebrew Date (with sunset correction!) anywhere in a theme.
Simply add
<?php if (function_exists('hebrewDateCurrent')) { hebrewDateCurrent();} ?>to a theme.
New in version 1.0.2:
- Code no longer breaks things! [fix for
the_time()]
New in version 1.0.3:
- Enhanced currentHebrewDate API (see the help on the config screen, or the discussion proposals here)
- Start of some decent documentation
- Proper URL
ToDo
- International (+Hebrew wordpress) support
- Code cleanup
- Better documentation
Download:
- v.1.0.0 - lost to the ravages of time
- v1.0.1
- v1.0.2
- v1.0.3
- Bleeding edge (what I'm running right now)
Installation:
Unzip the zip file (or rename .phps to .php), copy to /path/to/wordpress/wp-content/plugins/, activate, and configure! Note that sunset correction is disabled by default, since there's no meaningful default value for Latitude / Longitude
Known Bugs:
- May not work on versions before 2.0 (untested)
- The sunset routine cannot take into account GMT, since the wordpress offset is GMT +/-, not a timezone (not to mention the computational nightmare that is the Israeli timezone).