1<?php
2/**
3 * This plugin shows a button in the edit button bar. The button opens a mediamanager style window
4 * which shows links for existing pages.
5 * This plugin is not a syntax plugin, but pluginmanager needs this to show info for the plugin.
6 * Requires sortablejs plugin.
7 * @license    GPL 2 (http://www.gnu.org/licenses/gpl.html)
8 */
9
10if (!defined('DOKU_INC')) {
11  define('DOKU_INC',realpath(dirname(__FILE__).'/../../').'/');
12}
13if (!defined('DOKU_PLUGIN')) {
14  define('DOKU_PLUGIN',DOKU_INC.'lib/plugins/');
15}
16require_once(DOKU_PLUGIN.'syntax.php');
17
18class syntax_plugin_linkmanager extends DokuWiki_Syntax_Plugin {
19
20    /**
21     * return some info
22     */
23    function getInfo(){
24        return array(
25            'author' => 'Otto Vainio',
26            'email'  => 'plugins@valjakko.net',
27            'date'   => '2008-04-11',
28            'name'   => 'Linkmanager',
29            'desc'   => 'Shows a mediamanager style list of existing pages.',
30            'url'    => 'http://wiki.splitbrain.org/plugin:linkmanager',
31        );
32    }
33
34	  function getType(){ return 'substition'; }
35	  function getSort(){ return 999; }
36	  function getPType(){ return 'block';}
37}