On Shire Reckoning… Again
The strange little box in the sidebar is now fixed.
I’ve written my first WordPress plug-in.
As you can tell, it generates a date in Shire Reckoning. I’ve done this before, but as a BASIC program. Now I’ve rewritten the program in fairly simply .php code.
Interested parties may download the plug-in here.
How does one call the plug-in? I inserted the following code into my sidebar.php file:
<?php shire_reckoning(); ?>
It can take two arguments–’auto’ or ‘now. Now will give you the current date in Shire Reckoning. Auto can be used to replace the_date function with shire_reckoning('auto') in your WordPress loop if you want to have your blog’s dates given in Hobbit terms.
Here’s my main page on Shire Reckoning.
Bookmark And Share This Post
About Allyn
Allyn Gibson has written Star Trek short fiction, such as the groundbreaking "Make-Believe" in Star Trek: Constellations (2006) and the mind-blowing Doctor Who short story, "The Spindle of Necessity" in Short Trips: The Quality of Leadership (2008). He is also the writer for a monthly catalog where he gets to indulge himself in comics and pop culture. After hours, he writes fiction, non-fiction, and weird ramblings on his blog about whatever is on his mind. Now a Baltimorean, Allyn roots long-distance for two long-suffering sports teams: the Chicago Cubs and Hibernian FC; closer to home he roots for the "First in war, first in peace, last in the National League" Washington Nationals, because the Nats need all the help (and all the fans) they can get.
I got to work on my blog! this si a nice plugin specially for LOTR fanatics!
I as well have this working – the second version which adds “what happened on this day” to the SR date….
Thanks much, Allyn!
cool plugin!
is there a chance this will become a widget?