Created
July 20, 2011 08:03
-
-
Save dimkalinux/1094550 to your computer and use it in GitHub Desktop.
Include CSS in PunBB 1.4 extensions
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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')); | |
else | |
$forum_loader->add_css($ext_info['url'].'/style/Oxygen/style.css', array('type' => 'url')); | |
]]></hook> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For include CSS you can use any hook that called before hd_head.