Skip to content

Instantly share code, notes, and snippets.

@michaeltwofish
Created January 28, 2011 05:31
Show Gist options
  • Save michaeltwofish/799879 to your computer and use it in GitHub Desktop.
Save michaeltwofish/799879 to your computer and use it in GitHub Desktop.
<html>
<body>
Awesome stuff etc.
<?php $theme->add_stuff(); ?>
</body>
</html>
class MyTheme extends Theme
{
public function action_init_theme()
{
$this->add_template( 'what_you_call_the_template', dirname(__FILE__) . '/the_file.php' );
}
public function theme_add_stuff($theme) {
if ($theme->request->display_home) {
return $theme->display('what_you_call_the_template');
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment