Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Include CSS in PunBB 1.4 extensions
<hook id="hd_head"><![CDATA[
if ($forum_user['style'] != 'Oxygen' && file_exists($ext_info['path'].'/style/'.$forum_user['style'].'/style.css'))
$forum_loader->add_css($ext_info['url'].'/style/'.$forum_user['style'].'/style.css', array('type' => 'url'));
$forum_loader->add_css($ext_info['url'].'/style/Oxygen/style.css', array('type' => 'url'));

This comment has been minimized.

Copy link
Owner Author

@dimkalinux dimkalinux commented Jul 20, 2011

For include CSS you can use any hook that called before hd_head.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment