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
1314if (!defined ('DOKU_INC ' )) define ('DOKU_INC ' ,realpath (dirname (__FILE__ ).'/../../ ' ).'/ ' );
2122 */
2223class 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- 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