Friday, July 27, 2007

Theme file hierarchy

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.

No comments:

Post a Comment