* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-require_once 'Plugin/Skel/Filter.php';
+require_once 'Plugin/Filter.php';
require_once 'diogenes/diogenes.hermes.inc.php';
/** The HtmlHead plugin allows you to add entries to a page's <head> block.
*/
-class HtmlHead extends Diogenes_Plugin_Skel_Filter
+class HtmlHead extends Diogenes_Plugin_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', '');
- }
-
+
+ /** Plugin parameters */
+ var $params = array('contents' => '');
/** Apply filtering to the input and return an output.
*
function filter($input)
{
global $page;
- $contents = $this->getParamValue('content');
- if (!empty($contents))
+
+ if ($this->params['contents'])
{
- array_push($page->head, $contents);
+ array_push($page->head, $this->params['contents']);
}
return $input;