block. */ class HtmlHead extends Diogenes_Plugin_Skel_Filter { /** Plugin name */ var $name = "HtmlHead"; /** Plugin description */ var $description = "This plugin allows you to add entries to a page's <head> block."; /** Constructor. */ function HtmlHead() { $this->declareParam('contents', ''); } /** Apply filtering to the input and return an output. * * @param $input */ function filter($input) { global $page; $contents = $this->getParamValue('content'); if (!empty($contents)) { array_push($page->head, $contents); } return $input; } } ?>