Theme file hierarchy

July 28, 2007

The wiki for Template file hierarchy needs updating. For record sake the K2 theme files that came with 0.1.1 are as follows:-

commentform.php
comments.php
db_profiling.php
error.php
footer.php
header.php
login.php
loginform.php
page.php
post.php
posts.php
search.php
searchform.php
style.css
tag.php
theme.xml
theme.php

K2 was my teacher before I know enough what the habari core requires theme files to do hence this theme was built upon the above structure.

The K2 theme that came with rev 716 has below files replacing those in bold.

entry.multiple.php
entry.single.php (post.php)
home.php (posts.php)
page.single.php (page.php)

Also I can’t see yet any material differences between home.php and entry.multiple.php. I think entry.multiple.php and entry.single.php are there to satisfy the latest changes to the core Theme class. I did a quick file compare between files and concluded that developers at Habari didn’t really spend much time coding the K2 theme.

There’ll be more digging for me to do such that I could tidy up this theme to work with rev 716. Thanks again Tinyau for showing me the way.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: