Implements hooks in "template.php"