<?php
class MY_CLASSNAME
{
public static function templateHook($hookName, &$contents, array $hookParams, XenForo_Template_Abstract $template)
{
switch ($hookName) {
case 'CUSTOM_HOOKNAME':
$get_template = $template->create('MY_TEMPLATE', $template->getParams());
$contents = $get_template . $contents;
break;
}
}
}