Sandbox and Strangelove: hAtom in Wordpress

I hung out in the back of the hall at Wordcamp, adding hAtom support to the default Wordpress theme.

I showed my work to Bill Lazar, who told me that Scott Allan Wallick’s new theme, Sandbox, available for Wordpress.com blogs, has hAtom baked in.

Well, that makes my work, Strangelove, v0.1, superfluous.

You can use Chris Casciano’s script for Net News Wire to read a Sandbox themed blog as Atom, or pipe it through Luke Arno’s hatom2atom proxy.

If you’re comfortable with editing PHP, open themes/sandbox/header.php, and add the following to the head section:

<link rel="alternate" type="application/atom+xml" title="<?php bloginfo('name'); ?> Atom Feed" href="http://www.lukearno.com/projects/hatom2atom/?ctype=application%2Fxml&tidy=yes&url=<?php echo urlencode(get_bloginfo('url')); ?>" />

This will use Luke Arno’s proxy to generate an Atom 1.0 feed by parsing the hAtom format in the page. Strangelove does that out of the box.

If you’re running PHP 5 with libxslt support, you can run Chris’ filter script instead of the remote proxy.

At the µformats session, where you see me doing my Nikita Khrushchev imitation, I talked about this. Thanks to Tantek for inviting Slashchick and me up to talk about our hacks.

Slashchick modified the Countdown plugin to publish events in the hCalendar format, so that you can extract them from a blog page into your calendar.

Additional Tags: , ,

More like this: , , , , .

4 Comments

  1. Posted August 7, 2006 at 12:45 pm | Permalink

    Well I certainly appreciate your effort…

  2. Posted August 8, 2006 at 8:47 am | Permalink

    Hi! A few days ago I stumbled upon a fix for Atom 1.0 in Wordpress, I blogged about it if you’re curious: http://nlindblad.org/2006/08/05/wordpress-atom-10-support-revisited/

  3. Posted August 8, 2006 at 10:06 am | Permalink

    @ Niklas: Thanks, Bill Lazar pointed it out to me. I had been using an earlier version of the Atom 1.0 patch, but updated to James’ Sunday evening.

    I modified it further, and will post my patch to the patch in a day or two.

  4. Posted August 8, 2006 at 10:08 am | Permalink

    @ Pete: I didn’t mean to sound bitter. I think Sandbox is going to be huge, and it sounds like it will be the new default template for Wordpress.

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*