Skip to content

Commit

Permalink
register controller & handler
Browse files Browse the repository at this point in the history
register controller & handler
  • Loading branch information
Taggic committed Jun 2, 2016
1 parent 00d3abe commit 7245499
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions plugin.info.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
base topbarsyntax
author Taggic
email taggic@t-online.de
date 2011-10-30
date 2016-06-02
name topbarsyntax
desc delivers horizontal & vertical css based menu on a page wherever you want to have it
url http://www.fristercons.de/fcon/doku.php?id=tips:tips_topbar
desc delivers topbar as syntax plugin to be placed anywhere on the page
url http://www.dokuwiki.org/plugin:topbarsyntax
4 changes: 2 additions & 2 deletions syntax.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ function connectTo($mode){
/******************************************************************************/
/* handle the match
*/
function handle($match, $state, $pos, &$handler) {
function handle($match, $state, $pos, Doku_Handler &$handler) {
global $ID;
$match = substr($match,strlen('{{topbarsyntax>'),-2); //strip markup from start and end
//handle params
Expand All @@ -56,7 +56,7 @@ function handle($match, $state, $pos, &$handler) {
* @author Michael Klier <chi@chimeric.de>
* modified by Taggic <taggic@t-online.de>
*/
function render($mode, &$renderer, $data) {
function render($mode, Doku_Renderer &$renderer, $data) {
$width = $data[0]; // width of the main bar
$orient = $data[1]; // orientation of the menu

Expand Down

0 comments on commit 7245499

Please sign in to comment.