theme hooks

You are currently browsing articles tagged theme hooks.

The roadmap has been updated to give a more accurate and complete picture of what’s going to be in 1.2, but I thought I’d write up a brief summary of where things stand and where we go from here.

Firstly, I’ve rewritten a fair amount of the CSS, to make it more flexible and extensible. Content areas (such as entries, comments and so on) are now denoted by the content class, while the two columns are referred to by primary and secondary classes. This replaces a large and disparate set of classes and ids, making the code cleaner and easier to extend and modify. Additional stylesheets, for example, should now be much easier to write.

Secondly, Chris has been working on the Tarski Options page, cleaning it up and improving it substantially. We hope that the new version will be easier and more intuitive to use.

There are also the usual raft of tweaks and improvements, including the much-requested pagination and next/previous links, better trackback and language support, and a new and improved loop.php file which should make modifications based on the Tarski code much easier to implement.

1.2 beta test

Because there are such substantial alterations to the code, we want to run a small test before releasing it publicly. Sign up for the 1.2 beta on this forum thread.

Beta applications are now closed.

Tags: , , , , , , , , ,

If you’re experimenting with Tarski’s new theme hooks, I’ve written up a quickie tutorial on using them to implement plugins – in this case, flickrRSS.

March 20, 2006 by Chris Sternal-Johnson | Permalink

Lots of changes, this time, so we opted to call it version 1.1. As always, a detailed list of changes is available in the changelog.

This release has a number of major changes. If you’re upgrading from an older Tarski install, we recommend deleting the entire contents of the old folder and installing a fresh copy of 1.1.

New Header

Coffee RingsBen did a new header, Coffee Rings, and we’ve added a blank header image for those who prefer a minimal look.

Theme Hooks

One of the biggest problems people seem to run into with Tarski and other themes is the necessity of editing theme files to add content to areas of the theme. This causes upgrades to be a substantial pain in the ass for users, as well as making support more difficult for theme authors.

We’re trying out a solution to this problem with Tarski’s new theme hooks. Using a single file, constants.php, code can be added to the theme without losing it when updating to the next version. Take a look at the documentation for more information.

As an example of this, our Mint stats tracker JavaScript for this site is added via the headerInclude hook.

Alternate Styles

Having seen some of the nifty tweaks to the theme, we figured it was time to make tweaking the CSS easier. The options pane now supports alternate styles, which can be used to tweak and override the default stylesheet. For example, this site is now running the polar.css style.

Tarski now ships with several alternate styles, and you can make your own by just uploading them to wp-content/themes/tarski/styles/. Got a nifty alternate style? Please do share yours with us – we may include it in the next version!

Asides

We’ve added an implementation of Matt’s Asides that draws on K2′s implementation as well. Just select a post category in your theme options and away you go.

Tags: , , , , , ,

Newer entries »