<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/atom10full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0"><generator uri="http://www.habariproject.org/" version="0.6">Habari</generator><id>tag:www.habari-fun.co.uk,2009-07-20:atom/a3d2427c23c8bca781e54240f5c2b23c6a85dcb8</id><title>Fun with Habari</title><updated>2009-07-20T01:40:42+00:00</updated><link rel="alternate" href="http://www.habari-fun.co.uk/" /><link rel="first" href="http://www.habari-fun.co.uk/atom/1/page/1" type="application/atom+xml" title="First Page" /><link rel="next" href="http://www.habari-fun.co.uk/atom/1/page/2" type="application/atom+xml" title="Next Page" /><link rel="last" href="http://www.habari-fun.co.uk/atom/1/page/6" type="application/atom+xml" title="Last Page" /><link rel="self" href="http://feeds.feedburner.com/FunWithHabari" type="application/atom+xml" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com" /><entry><title>My theme project</title><link rel="alternate" href="http://feedproxy.google.com/~r/FunWithHabari/~3/Ofkb30zonvA/my-theme-project" /><link rel="edit" href="http://www.habari-fun.co.uk/my-theme-project/atom" /><author><name>andrew</name><uri>http://www.habari-fun.co.uk</uri></author><id>tag:www.habari-fun.co.uk,2009:my-theme-project/1232287980</id><updated>2009-01-18T22:05:26+00:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-01-18T22:05:26+00:00</app:edited><category term="Onion" /><category term="Theme" /><content type="html">&lt;p class="introduction"&gt;Before Christmas I started work on a new Habari theme. My plan was to create a premium style theme that would show WordPress themers the kinds of things that are possible with Habari, and hopefully encourage those people across. Since then I have been working on the project but, just like the little boy who orders the largest ice cream on the menu, it has been a larger task than I had anticipated. It still isn't ready, but with Hack-A-Thon going on this weekend I thought it was a good time to let you in on the project.&lt;/p&gt;&lt;h2&gt;Onion&lt;/h2&gt;&lt;p&gt;The theme is called Onion because it is based on a layered approach to content, where many of the fundamental pieces are available as templates. They are, in turn, included in other templates, and finally added to the main theme files. Here's an example of what I mean:&lt;/p&gt;&lt;p&gt;There are a number of different styles of post template. For example, a post that only displays its title, a post that displays its title and description (more on that later), a post that displays everything, but where the content is shorteneed, and so on.&lt;/p&gt;&lt;p&gt;There are lists of posts used for different reasons, such as a recent posts list,featured items list (again more on that later), or categories list.&lt;/p&gt;&lt;p&gt;By choosing to include a template called 'recent_posts_list' you get a list of recent posts that uses the title only, where as a template called 'recent_posts_descriptions' would give you a list of recent posts with title and descriptions. These templates are all available to modify easily.&lt;/p&gt;&lt;h3&gt;Specials&lt;/h3&gt;&lt;p&gt;A significant part of the theme is the plugins it comes bundled with. There will be a significant number of plugins, some optional, some required only when making structural changes. The most important plugin though is the core-plugin. It adds a number of additional post fields:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;A description field&lt;/li&gt;&lt;li&gt;Menu handling fields, i.e. include in menu, include as a child of another page, and the menu order&lt;/li&gt;&lt;li&gt;Special Use for pages.&lt;/li&gt;&lt;li&gt;Page to entry conversion for some special uses.&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;The special uses option is the most important. It allows pages to be used for structural elements. Look at the following screenshot:&lt;/p&gt;&lt;p&gt;&lt;img src="http://www.habari-fun.co.uk/user/files/Themes/onionsscreenshot.png"&gt;&lt;/p&gt;&lt;p&gt;The entire area above the menu is a page with a special use of 'Page Header'. The grey area immediately beneath the menu is a page with the special use of 'Tag Page Introduction', and a tag of 'photographs'. This means that when viewing the &lt;em&gt;photographs&lt;/em&gt; tag page, this introduction will be shown. The categories on the right are defined by a page with the special use of 'Category Description'. They link to the tag page of the tag that page is tagged with. Finally, in the menu there is an entry titled 'Fun with Habari' this is an external link rather than an internal page and has been created by creating a page with a special use of 'Menu Link', entering the link in the content field, and using the page menu options to add it and order it within the menu.&lt;/p&gt;&lt;p&gt;At the time of writing the available special uses are:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;Normal Page&lt;/li&gt;&lt;li&gt;Page Header&lt;/li&gt;&lt;li&gt;Page Footer&lt;/li&gt;&lt;li&gt;Home page introduction&lt;/li&gt;&lt;li&gt;Tag page introduction&lt;/li&gt;&lt;li&gt;Featured Item&lt;/li&gt;&lt;li&gt;Category Description&lt;/li&gt;&lt;li&gt;Menu Link&lt;/li&gt;&lt;li&gt;404 Page Content&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;You can see there is potentially a lot of flexibility in this.&lt;/p&gt;&lt;p&gt;I should mention, as it is clear some of these special uses don't conform to the usual use of a page. My intention was to make use of as much built in content as possible and to extend it as little as possible. I did consider creating a new post type but I felt it was overkill.&lt;/p&gt;&lt;h3&gt;Images&lt;/h3&gt;&lt;p&gt;The core plugin also adds a set of image fields to each entry and page. These allow posts to have square, thumbnail, small and medium images assigned to them (based on flickr) as well as fields for an image credit and a link for the credit to meet the common Creative Commons licensing and flickrs terms of use policy.&lt;/p&gt;&lt;p&gt;In the example above every square image on the left is a blog entry with images attached. By clicking on those images the full post opens up with a larger version of the image. The tag post uses the small size and the catgory listing is using the thumbnaii.&lt;/p&gt;&lt;p&gt;Many of the component parts and variations that can be used within the theme are based on different image sizes. For example, the posts on the example page use the 'post_square' template while the category listings use the 'post_square_description' template.&lt;/p&gt;&lt;h3&gt;Layouts &amp;amp; Custom CSS&lt;/h3&gt;&lt;p&gt;One of the key features of this theme is the option to specify multiple layouts. There will be a plugin to control this but at the moment it is set using an array in the theme file.&lt;/p&gt;&lt;p&gt;Theme includes multiple CSS template files that will layout the content in different ways. Which layout is used can be set according to the request rule that is matched. So for example you can specify, that layout-1 should be used by default, but that layout-4 should be used for display_entries_by_tag, or even for display_entries_by_tag where the tag is 'photographs'.&lt;/p&gt;&lt;p&gt;In the same way variations on the header CSS can be used, and additional custom css can be included. In the example image above there is custom CSS used to float the posts on the photographs tag page.&lt;/p&gt;&lt;h3&gt;HTML 5&lt;/h3&gt;&lt;p&gt;A few posts ago I asked about using HTML 5 for Habari themes. Following this I decided to totally convert this theme to HTML5. That took a while as I realised I needed to rewrite a lot of the CSS and figure out the semantics again. It still isn't entirely HTML 5 but the main layout pages are.&lt;/p&gt;&lt;h3&gt;Source&lt;/h3&gt;&lt;p&gt;I have a Google code project for this. Even if people do not want to use the theme there may be code or ideas in there that are useful to other theming efforts. The code project is at &lt;a href="http://code.google.com/p/onion-theme/"&gt;http://code.google.com/p/onion-theme/&lt;/a&gt;. I would love to get your input on this, especially if there are better ways of accomplishing what I have done, or if you want to come on board as a contributor.&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/FunWithHabari/~4/Ofkb30zonvA" height="1" width="1"/&gt;</content><feedburner:origLink>http://www.habari-fun.co.uk/my-theme-project</feedburner:origLink></entry><entry><title>I've been interviewed</title><link rel="alternate" href="http://feedproxy.google.com/~r/FunWithHabari/~3/4Ff-AS5-T-4/i-ve-been-interviewed" /><link rel="edit" href="http://www.habari-fun.co.uk/i-ve-been-interviewed/atom" /><author><name>andrew</name><uri>http://www.habari-fun.co.uk</uri></author><id>tag:www.habari-fun.co.uk,2009:i-ve-been-interviewed/1231437551</id><updated>2009-01-09T00:59:11+00:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-01-09T00:59:11+00:00</app:edited><category term="Interview" /><content type="html">&lt;p class="introduction"&gt;A few days ago &lt;a href="http://www.bloggertalks.com/2009/01/habari-wordpress-and-blogging-with-andrew-rickmann/"&gt;I was interviewed by Jeff for Blogger Talks&lt;/a&gt;. I was asked about WordPress, Habari, the future of blogging, and the state of blogging in the UK.&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/FunWithHabari/~4/4Ff-AS5-T-4" height="1" width="1"/&gt;</content><feedburner:origLink>http://www.habari-fun.co.uk/i-ve-been-interviewed</feedburner:origLink></entry><entry><title>Should Habari themes use HTML5?</title><link rel="alternate" href="http://feedproxy.google.com/~r/FunWithHabari/~3/_zcD73jugDI/should-habari-themes-use-html5" /><link rel="edit" href="http://www.habari-fun.co.uk/should-habari-themes-use-html5/atom" /><author><name>andrew</name><uri>http://www.habari-fun.co.uk</uri></author><id>tag:www.habari-fun.co.uk,2009:should-habari-themes-use-html5/1231095867</id><updated>2009-01-05T02:06:19+00:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-01-05T02:06:19+00:00</app:edited><category term="HTML5" /><category term="Themes" /><content type="html">&lt;p class="introduction"&gt;I've been thinking a lot about Habari themes over the past few weeks and one of the things I have given some thought to is whether it is time to start using the HTML5 tags, either the tags themselves, or as class naming conventions.&lt;/p&gt;&lt;p&gt;There is certainly a part of me that wants to just switch to the new tags immediately. They may not be universally supported but the good browsers should support them and, while I have no intention of modifying any of my themes for IE6 anyway, there is a bit of a hack that applies to IE in general.&lt;/p&gt;&lt;p&gt;I really like the idea of marking up content as an article, and asides as asides. I haven't tended to use asides much in my writing but given specific structural methods of putting them on the page (and corresponding changes to the publish form in Habari) I might well do.&lt;/p&gt;&lt;p&gt;Right now, for example, it would great to have an aside with the major new tags listed, but with no way to acomplish that with this theme you just need to wait until later down the page.&lt;/p&gt;&lt;p&gt;On the other hand, adopting the HTML 5 tag names as class naming conventions, with an eye to switching them all out at a later date, is also appealing. Not least because it gives me a structure to follow that has been defined, but also because it is a great learning experience about the tags anyway.&lt;/p&gt;&lt;p&gt;It also occurred to me that, as a cutting edge platform, Habari (the project as a whole) should probably be encouraging the use of HTML 5 already anyway. At least in the official themes. There is something to be said for being ahead of the game on this and just be consistent would be useful on its own.&lt;/p&gt;&lt;p&gt;I am still not decided whether to use HTML 5 in my new theme efforts, but while I think about it here are some useful links on the subject:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="http://forabeautifulweb.com/blog/about/more_on_developing_naming_conventions_microformats_and_html5/"&gt;Andy Clarke on Naming Conventions&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://jontangerine.com/log/2008/03/preparing-for-html5-with-semantic-class-names"&gt;John Tangerine- Preparing for HTML5&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://ejohn.org/blog/html5-shiv/"&gt;John Resig's Javascript Hack for IE&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://boblet.tumblr.com/post/60552152/html5"&gt;HTML5 / naming convention cheat sheet&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.brucelawson.co.uk/tests/html5-elements.html"&gt;HTML 5 Sample in use&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.w3.org/html/wg/markup-spec/"&gt;HTML 5 Spec&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;img src="http://feeds.feedburner.com/~r/FunWithHabari/~4/_zcD73jugDI" height="1" width="1"/&gt;</content><feedburner:origLink>http://www.habari-fun.co.uk/should-habari-themes-use-html5</feedburner:origLink></entry><entry><title>Habari-Watch Watch</title><link rel="alternate" href="http://feedproxy.google.com/~r/FunWithHabari/~3/_6bRP5BvuJU/habari-watch-watch" /><link rel="edit" href="http://www.habari-fun.co.uk/habari-watch-watch/atom" /><author><name>andrew</name><uri>http://www.habari-fun.co.uk</uri></author><id>tag:www.habari-fun.co.uk,2008:habari-watch-watch/1229857747</id><updated>2008-12-21T18:09:07+00:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-12-21T18:09:07+00:00</app:edited><category term="News" /><content type="html">&lt;p class="introduction"&gt;Ladies and gents, Lords, Ladies, and Pastafarians, I would like to tell you about my new Habari project. It is called Habari-Watch watch.&lt;/p&gt;&lt;p&gt;AndyC has launched Habari Watch, where he promises to keep us all up to date on Habari happenings that he finds as he scours the intertubes. In turn I will watch him, and report on his reports on Habari.&lt;/p&gt;&lt;p&gt;Already I am able to report that his first two blog posts contain interesting and useful information that I was, until now, unaware of. This, I think, is a blog to subscribe to.&lt;/p&gt;&lt;p&gt;&lt;a href="http://www.nbrightside.com/habari"&gt;Habari Watch can be found at http://www.nbrightside.com/habari&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/FunWithHabari/~4/_6bRP5BvuJU" height="1" width="1"/&gt;</content><feedburner:origLink>http://www.habari-fun.co.uk/habari-watch-watch</feedburner:origLink></entry><entry><title>Friday Fun: Fun with Lolcode plugin</title><link rel="alternate" href="http://feedproxy.google.com/~r/FunWithHabari/~3/1OWH9PHjy4M/friday-fun-fun-with-lolcode-plugin" /><link rel="edit" href="http://www.habari-fun.co.uk/friday-fun-fun-with-lolcode-plugin/atom" /><author><name>andrew</name><uri>http://www.habari-fun.co.uk</uri></author><id>tag:www.habari-fun.co.uk,2008:friday-fun-fun-with-lolcode-plugin/1229730924</id><updated>2008-12-20T06:56:33+00:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-12-20T06:56:33+00:00</app:edited><category term="lolcode" /><category term="Plugin" /><content type="html">&lt;p class="introduction"&gt;So I'm doing some shopping for my evening meal and I hear some people chuckling over a book, I can has cheeseburger. It was clearly new to them. Then I get home and see a post about programming and religion, and there is LOLCODE and I figure, "what the hell!" It's Friday right? So a short while later and here it is, a &lt;a href="http://lolcode.com/"&gt;LOLCODE&lt;/a&gt; post content parser for Habari.&lt;/p&gt;&lt;p&gt;I have taken this &lt;a href="http://www.tetraboy.com/lolcode/"&gt;PHP LOLCODE parser&lt;/a&gt; and a Habari plugin and combined them.&lt;/p&gt;&lt;p&gt;I can has lolcode, the plugin, when turned on, will parse your post content and widget text for LOLCODE and run it.&lt;/p&gt;&lt;p&gt;For example:&lt;/p&gt;&lt;p&gt;&lt;img src="http://www.habari-fun.co.uk/user/files/Plugins/habarilolcode.png" alt="LOLCODE Example Screenshot" /&gt;&lt;/p&gt;&lt;p&gt;Will output&lt;/p&gt;&lt;p&gt;&lt;img src="http://www.habari-fun.co.uk/user/files/Plugins/habarilolout.png" alt="LOLCODE Example output Screenshot" /&gt;&lt;/p&gt;&lt;p&gt;You can &lt;a href="http://www.habari-fun.co.uk/user/files/Plugins/icanhascode.zip"&gt;download the I Can Has LolCode Habari plugin here&lt;/a&gt;.&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/FunWithHabari/~4/1OWH9PHjy4M" height="1" width="1"/&gt;</content><feedburner:origLink>http://www.habari-fun.co.uk/friday-fun-fun-with-lolcode-plugin</feedburner:origLink></entry></feed>
