| 1 | <?php |
||
| 31 | class syntax_plugin_spatialhelper_findnearby extends DokuWiki_Syntax_Plugin {
|
||
| 32 | /** |
||
| 33 | * |
||
| 34 | * @see DokuWiki_Syntax_Plugin::getType() |
||
| 35 | */ |
||
| 36 | public function getType() {
|
||
| 39 | |||
| 40 | /** |
||
| 41 | * Return 'normal' so this syntax can be rendered inline. |
||
| 42 | * |
||
| 43 | * @see DokuWiki_Syntax_Plugin::getPType() |
||
| 44 | */ |
||
| 45 | public function getPType() {
|
||
| 48 | |||
| 49 | /** |
||
| 50 | * |
||
| 51 | * @see Doku_Parser_Mode::getSort() |
||
| 52 | */ |
||
| 53 | public function getSort() {
|
||
| 56 | |||
| 57 | /** |
||
| 58 | * define our special pattern: {{findnearby>Some linkt text or nothing}}.
|
||
| 59 | * |
||
| 60 | * @see Doku_Parser_Mode::connectTo() |
||
| 61 | */ |
||
| 62 | public function connectTo($mode) {
|
||
| 65 | |||
| 66 | /** |
||
| 67 | * look up the page's geo metadata and pass that on to render. |
||
| 68 | * |
||
| 69 | * @see DokuWiki_Syntax_Plugin::handle() |
||
| 70 | */ |
||
| 71 | public function handle($match, $state, $pos, Doku_Handler $handler) {
|
||
| 95 | |||
| 96 | /** |
||
| 97 | * Render a link to a search page. |
||
| 98 | * |
||
| 99 | * @see DokuWiki_Syntax_Plugin::render() |
||
| 100 | */ |
||
|
1 ignored issue
–
show
|
|||
| 101 | public function render($mode, Doku_Renderer $renderer, $data) {
|
||
| 116 | } |
||
| 117 |