Thematics Templates

As we learned back in Chapter 4, Thematic is a great framework because it's packed with cool functionality. To best understand how to build on its templates, we should spend some time finding out how they're put together.

Let's take a look again inside Thematic's directory; you'll see a pile of template files, and if you were paying close attention to the previous section, many of these should be familiar to you:

■ attachment.php

■ functions.php

■ searchform.php

■ sidebar-index-bottom.php

■ sidebar-index-insert.php

■ sidebar-index-top.php

■ sidebar-page-bottom.php

■ sidebar-page-top.php

■ sidebar-single-bottom.php

■ sidebar-single-insert.php

■ sidebar-single-top.php

■ sidebar-subsidiary.php

There's also a curious-looking directory, library, which is filled with directories for styles, languages, scripts, and so on. The most interesting subdirectory in there is extensions—it contains all the stuff that makes Thematic do the voodoo that it do. Erm, does. Here's what's inside:

■ comments-extensions.php

■ content-extensions.php

■ discussion.php

■ dynamic-classes.php

■ footer-extensions.php

■ header-extensions.php

■ shortcodes.php

■ sidebar-extensions.php

■ theme-options.php

■ widgets-extensions.php

The names of each of these files should give you a clue as to what they deal with: footer-extensions.php obviously relates to footers, comments-extensions.php to comments, and so on.

Was this article helpful?

0 0

Post a comment