Renari
Member
I thought something like
would work however it seem that this is run after template syntax is evaluated, I also tried outputting the css using $template->create() which also failed miserably.
PHP:
public static function templateHook($hookName, &$contents, array $hookParams, XenForo_Template_Abstract $template)
{
if ($hookName == 'page_container_head')
{
$contents .= '<xen:require css="style.css" />';
}