The News in Detail

A Sandbox revision (0.6.1) has just launched. I could measure the past week in either seven days or by the +0.1.1 change from initial 0.5 release. I’m really looking forward to the letting the dust settle and getting to make a skin or two for it myself. Until then, though, let’s get right to business and “move some sand,” as Andy has been saying.

Changes and Feedback

By far the most requested revision was to do something with those stupid <abbr>’s that followed post titles. Well, we did. Now in the index.php, archive.php, category.php, search.php, and author.php files you have more design-friendly

<div class="entry-date"><abbr class="published">August 13, 2006 – 01:51 am</abbr></div>

Yes, there were some crude ways to style it in IE, but, well, a lot of stuff (like block-level attributes) just wouldn’t work. So, zap, here you are. In the end, we settled on a div.

A great suggestion from Saracen also found its way into the new release: post counting classes. This is different than the ID number of the post. Instead, we added a pn class to posts (and cn for comments). The n is the number relative to the post/comment count.

For example, if you want the first post on any archive page to appear in a big, black box, you could do something like

body.archive div.p1 { background: #000; color: #fff; border: 5px solid red; }

or something to that affect. Then the top-most (the first, from top-to-bottom) post occuring on a page would be big, black, and have a beautiful red border around it. Congratulate the first commenter by making that comment gigantic:

body.single li.c1 { font-size: 3em; }

The possibilities are maddening. So thanks, Saracen. Now we’re all insane. ;-)

Another semantics-related aspect of the Sandbox that people commented on were the pipe symbols (|) that appeared in the div.entry-meta sections in the index.php, archive.php, author.php, category.php, and search.php, and in the footer.php as well. What to do. Andy and I tried a few different things.

What we decided on gives skin authors flexibility and looks good in the markup. It degrades well. The pipe symbols remain, but they are wrapped in a span.metasep. You can do all sorts of things with this now.

Finally, we’ve added navigation links to the top and bottom of the loop in the author.php, category.php, index.php, single.php, archive.php, and, uhm, I think that’s it. We’ve given the ones on top an unique id, #nav-above and the ones below (can you guess?) #nav-below. More room for play.

Skins

Ah, the skins. The Sandbox has received some flak for presenting itself as the “end-all, be-all” theme for WordPress. It’s not. It is, however, a great deal of fun to play with and make skins for—not having to think about building structure in the actual theme files or considering any of the PHP code and instead simply designing with CSS is really quite enjoyable.

I’ve seen a few K2 skins for the Sandbox so far, not to mention Adam’s frankly skillful creation of a beautiful Unsleepable skin got me feelin’ positive that the “enjoy, have fun” message had actually been received.

Enjoy. Have fun.

Widgets

It seemed to make sense that if someone wanted a widget in their sidebar, they shouldn’t have to sacrifice the default stuff that was already there. For example, if in Sidebar 2 I wanted to put the recent posts widget there, well, I would also need to place the meta widget there in order to keep the log in/log out links (not to mention wp_meta) as well as the RSS feeds. And in the Sandbox default sidebar, RSS feeds don’t appear under Meta. Why would they?

So we’ve made the Sandbox load its own widgets based on what is in the sidebars by default. In the example above, I could now place the Meta and the RSS Links widgets in Sidebar 2 and get a consistent (for the Sandbox) result. We also added the “« Home” link as a widget, too.

The default contents of Sidebar 1 includes a link that points back to the home page on any page except the home page, i.e., it’s conditional. Why should someone who’s using widgets in Sidebar 1 have to sacrifice this nice, conditional link?

Now there’s a “Home Link” widget whenever the Sandbox is loaded. And now the search widget is exactly like the default one. Remember that the RSS Links and Home Link widgets only appear when the Sandbox is the activated theme.

Of course, I’m happy to share the Home Link widget, though the only difference with it and placing a link in a text widget is that this one is conditional. Big whoop.

hAtom

Finally, there’s hAtom. An intersting thread on hAtom appeared on WordPress.com. Someone asked the very reasonable question, “What is hAtom and why is it important?” She got her answer.

I followed some of the talk about hAtom and found that an hAtom-enabled version of Kubrick had already been made. That’s two themes out of, uhm, well, a lot.

I’ve been playing with the hAtom to Atom converter, converting themes using the Sandbox into Atom. But I’m literally converting the actual blog! How great is that.

I also forsee a “Subscribe to hAtom” widget for the Sandbox, Strangelove, and other themes using hAtom. The hAtom to Atom converter (link above) could be used easily, as Bill pointed out in an email to me; for example (no breaks),

http://www.lukearno.com/projects/hatom2atom/?ctype=
application%2Fxml&amp;tidy=yes&amp;url=<?php echo urlencode(get_bloginfo('url')); ?>

But honestly this is down the road. So what are you going to do now that you’ve subscribed to hAtom. It’s still a draft, but it holds tremendous potential, by making external, separate feeds redundant. This dream, however, lies at the end of a long and dangerous road. Maybe the Technorai Kitchen will add hAtom.

Drumroll . . . SVN

Come and get it, ladies and gentlmen. You can look, but not touch. If you’re interested in following the changes to the Sandbox, you can acccess Sandbox repo at svn://skeltoac.homelinux.net/sandbox/ and you’ll need a client. This will be helpful for skin authors to stay abreast of changes (this is 0.6.1 after all) though I imagine structural changes have slowed down.

That’s it. Let us know what you think. :-D

Comments

  1. adam wrote:

    fyi, timethief (coyote) is definately not a he. ;)

    these look like some awesome changes. i’ll have unsleepable ready to go shortly, but not tomorrow. tomorrow i’ll be on the beach :D

  2. Zeo wrote:

    Why is there 2 different metadata class in comment (comments and pingbacks/trackbacks)?

    This is the first time I see someone use ‘below’ instead of ‘bottom’ :)

  3. Scott wrote:

    Adam: Thanks for the gender heads-up. When I mention Wank is another post, you’ll have to let me know if I guessed that gender correctly, too.

    Zeo: there are two different meta classes for comments/trackbacks because (prepare) it’s a goof. It’s a goof that’s been fixed. Now they’re both .comment-meta. And I also made the moderation stuff consistent, too. Great comment, Zeo.

  4. Saracen wrote:

    Feels great to have a suggested change incorporated. Now I can start playing with it all. Again, the possibilities presented really seem limitless. Can’t wait to see what some of the dons come up with.

  5. wank wrote:

    Thank you for .entry-date and .metasep. In an ideal world it would be .separator like the Six Apart equivalent, but that’s just me wanting to save myself a couple of seconds typing.

  6. Craig Hartel wrote:

    Thanks for the repo! (Although ATM I can’t get it to work with my shell access…)

    Excellent work, gentlemen!

  7. Zeo wrote:

    I think andy should moved the repos to wp-themes.net or google code.

  8. adam wrote:

    the changes are greatly appreciated. you also added body.loggedin which is pretty useful on wp.com, and is sure to have some interesting uses here, althought different. (like hiding widget_meta from non-users)

  9. Scott wrote:

    One change I didn’t mention explicitly, and I mean to, is now you can add a “comments” to a new custom field (no value necessary) to add comments to any page, including the links and archives templates.

    I’m going to let the comments build up and then just take them in, later today or tomorrow morning probably, so keep ‘em coming.

  10. tinyau wrote:

    I found that class of 1st comment is ‘c’ is not ‘c1′. :P

  11. Andy Skelton wrote:

    tinyau: Thanks! Rev 59 fixes that.

  12. Stephanie Booth wrote:

    I don’t understand this:

    “So we’ve made the Sandbox load its own widgets based on what is in the sidebars by default. In the example above, I could now place the Meta and the RSS Links widgets in Sidebar 2 and get a consistent (for the Sandbox) result. We also added the “« Home” link as a widget, too.”

    I’m new to widgets (well, I’ve used them on WP.com). I’ve activated sandbox, installed and activated the widgets plugin, but when I go to sidebar widgets in presentation, it shows the sidebars as empty. I was expecting to see the sandbox-preloaded ones there.

    Did I misunderstand, or is something wrong?

  13. Scott wrote:

    Hi Stephanie: No, this doesn’t mean that any widgets are automatically placed in the sidebars. Let me explain myself. The Widgets plugin itself has a few default widgets, like for links, categories, archives, etc. These are usually the standard things found in sidebars.

    So what I’ve done was add widgets to the widgets pool (that can be added to the sidebars) so that the widgets available it possible to replicate the default contents of the sidebar entirely.

    For example, the Widgets plugin lists the RSS feeds for entries and posts in the “Meta” sidebar, along with the log in/log out links. Well, that’s different than how they are by default in Sandbox. Let me know if that helps explain.

  14. Stephanie Booth wrote:

    Er… a little. At least I know I’m seeing what I’m supposed to see. It’s not a biggie anyway because I’m sticking a fair amount of widgets in there anyway (and will probably have to write a couple of my own).

    Thanks!

Trackbacks & Pings

  1. Blogger Going Dynamic at almost effortless on 15 Aug 2006 at 1:45 am

    […] I wonder, too, if Wordpress might start to stagnate being centrally hosted. I don’t know why that would be the case, but my fear is that centralized hosting might undermine your ability to innovate. Although, I can see how supporting thousands of distributed installation would be somewhat daunting. Plus, I’ve seen a lot of activity in the WordPress community that seams to have been enlivened by the recent funding that Automattic recieved. […]

  2. StrayPackets » Look! It’s Kubrick In a Sandbox on 24 Aug 2006 at 3:11 pm

    […] Co-developers Scott Wallick and Andy Skelton are encouraging skin developers to make their efforts available at the Sand Castles skins site. Scott also points to a few other skins in this blog post. […]

Post a Comment

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

*

*