Everything Else, ,

Imieniny WordPress widget plug-in

As I mentioned in Blog updates, I had added a PHP script to my blog to list the current saints’ name day. I took that script and created a Word Press widget out of it.

As recommended by Automattic, I took their Google widget script, which is very well documented, and worked from there, adding Adam Brucki’s Imieniny PHP script to it.

I had already taken the script and updated it for UTF-8 compliance and tweaked the output.

I’ve now added a section to the script to adjust for server time differences. My server in on UTC so I had to adjust the time by -5 hours.

I am releasing the widget as an alpha 0.1 version. It works for me ‘as expected’ but there are no guarantees… It is being released as-is. If it breaks your stuff, delete the plug-in and move on.

Here are some of the things I’d like to do with it:

  • Allow the end user to adjust the title
  • Allow the end use to adjust the time differential
  • Clean-up the code

For the most current download version please see my downloads page.

To install:

  1. Unpack
  2. FTP the imieniny.php file to your plug-ins directory
  3. Activate the plug-in
  4. Drag the Imieniny widget to the preferred locale on your sidebar (your theme must have widget support and Automattic’s Widgets must be installed.