Extension:NewPageCSS/Source

NewPageCSS.php
tag', 'author' => array( 'Julian Porter', '&ampAElig;var Arnfj&ampouml;r&ampeth; Bjarmason' ), );

$wgHooks['ParserFirstCallInit'][] = 'CSS_setup';

function CSS_setup(&$parser) { $parser->setHook("css","CSS_include"); return true; }

function CSS_include($content) { global $wgParser; $css = htmlspecialchars( trim( Sanitizer::checkCss( $content ) ) ); $wgParser->mOutput->addHeadItem( << /*<![CDATA[*/     {$css} /*]]>*/       EOT  ); return ''; }