1<?php
2
3
4
5/**
6 * Set ComboStrap as generator
7 */
8class action_plugin_combo_metagenerator extends DokuWiki_Action_Plugin
9{
10
11
12    const META_KEY = "generator";
13
14    public function register(Doku_Event_Handler $controller)
15    {
16        $controller->register_hook('TPL_METAHEADER_OUTPUT', 'BEFORE', $this, 'handleGenerator', array());
17    }
18
19    function handleGenerator(&$event, $param)
20    {
21        $info = $this->getInfo();
22        $event->data['meta'][] = array("name" => self::META_KEY, "content" => "ComboStrap v".$info['version']." (".$info['date'].")");
23
24    }
25
26
27}
28