Skip to content

Commit 7127f6d

Browse files
committed
Modernization of ClearFloat
1 parent 691300d commit 7127f6d

File tree

3 files changed

+10
-18
lines changed

3 files changed

+10
-18
lines changed

VERSION

Lines changed: 0 additions & 1 deletion
This file was deleted.

plugin.info.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
base clearfloat
2+
author i-net software GmbH; GMichael Klier
3+
4+
date 2020-06-30
5+
name Clearfloat
6+
desc Clears the floating of elements such as images.
7+
url https://github.com/i-net-software/dokuwiki-plugin-clearfloat

syntax.php

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
*
99
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
1010
* @author Michael Klier <[email protected]>
11+
* @author i-net /// software GmbH <[email protected]>
1112
*/
1213

1314
if(!defined('DOKU_INC')) define('DOKU_INC',realpath(dirname(__FILE__).'/../../').'/');
@@ -21,21 +22,6 @@
2122
*/
2223
class syntax_plugin_clearfloat extends DokuWiki_Syntax_Plugin {
2324

24-
25-
/**
26-
* General Info
27-
*/
28-
function getInfo(){
29-
return array(
30-
'author' => 'Michael Klier',
31-
'email' => '[email protected]',
32-
'date' => @file_get_contents(DOKU_PLUGIN.'clearfloat/VERSION'),
33-
'name' => 'Clearfloat',
34-
'desc' => 'Clears the floating of elements such as images.',
35-
'url' => 'http://dokuwiki.org/plugin:clearfloat'
36-
);
37-
}
38-
3925
/**
4026
* Syntax Type
4127
*
@@ -56,14 +42,14 @@ function connectTo($mode) {
5642
/**
5743
* Handler to prepare matched data for the rendering process
5844
*/
59-
function handle($match, $state, $pos, &$handler){
45+
function handle($match, $state, $pos, Doku_Handler $handler){
6046
return array();
6147
}
6248

6349
/**
6450
* Handles the actual output creation.
6551
*/
66-
function render($mode, &$renderer, $data) {
52+
function render($mode, Doku_Renderer $renderer, $data) {
6753
if($mode == 'xhtml'){
6854
$renderer->doc .= '<div class="clearer"></div>' . DW_LF;
6955
return true;

0 commit comments

Comments
 (0)