Please note that this is now considered a legacy method and while it works and will continue to be supported in Tarski, it is less sophisticated than using a plugin and requires you to back up your constants.php file whenever you upgrade Tarski.
Tarski’s theme hooks can be accessed via a constants.php file placed in your Tarski directory. This example file shows all the existing hooks; to use it, just upload it into your Tarski directory, rename it to constants.php, and start editing.
The function of the various hooks should be fairly obvious from their names and comments. Let’s work through an example, though.
Say we want to put a copyright notice at the bottom of our pages. Instead of editing footer.php and losing those changes on the next upgrade, let’s use our constants.php.
The $footerInclude hook looks promising, eh? Here’s the empty version:
$footerInclude = <<<FOOTERINCLUDE
FOOTERINCLUDE;
And here’s how we’d do a copyright notice:
$footerInclude = <<<FOOTERINCLUDE
<p>Copyright © 2005 by Me</p>
FOOTERINCLUDE;
You should now see that text at the bottom of every page. Simple, no?
