Day: February 28, 2007

Saints and Martyrs, ,

Updates to the Imieniny widget

I’ve updated the Imieniny widget as follows:

  • Added support for setting time offsets in the administrative interface.
  • Added support for re-naming the widget title in the administrative interface.
  • Cleaned up the code

Special thanks for the guidance from Kaf Oseo at guff szub. See WP plugin: My Widget – example WordPress widget.

The current version is alpha 0.3. The download is available from my Downloads page.

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.