Please note that the constants file is now deprecated. Support for it will be removed in Tarski 2.6.
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?
