diff -r 000000000000 -r 902822492a68 plugins/SpecialCSS.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/plugins/SpecialCSS.php Wed Jun 13 16:03:00 2007 -0400 @@ -0,0 +1,47 @@ +attachHook('base_classes_initted', ' + global $paths; + $paths->add_page(Array( + \'name\'=>\'CSS\', + \'urlname\'=>\'CSS\', + \'namespace\'=>\'Special\', + \'special\'=>0,\'visible\'=>0,\'comments_on\'=>0,\'protected\'=>1,\'delvotes\'=>0,\'delvote_ips\'=>\'\', + )); + '); + +// function names are IMPORTANT!!! The name pattern is: page__ + +function page_Special_CSS() { + global $db, $session, $paths, $template, $plugins; // Common objects + header('Content-type: text/css'); + if(isset($_GET['printable']) || $paths->getParam(0) == 'printable') { + echo $template->get_css('_printable.css'); + } else { + echo $template->get_css(); + } +} + +?> \ No newline at end of file