Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
pro
sbvrwiki
Commits
fe1ae125
Commit
fe1ae125
authored
3 years ago
by
Krzysztof Kutt
Browse files
Options
Download
Email Patches
Plain Diff
bugfixing; updates for DokuWiki "Hogfather"
parent
70c0d79d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
sbvr/action.php
+2
-4
sbvr/action.php
sbvr/syntax.php
+45
-48
sbvr/syntax.php
with
47 additions
and
52 deletions
+47
-52
sbvr/action.php
View file @
fe1ae125
<?php
/**
* Example Action Plugin: Inserts a button into the toolbar
*
* @author Gina Haeussge <osd@foosel.net>
* @author GEIST Research Group <krzysztof.kutt@uj.edu.pl>
*/
...
...
@@ -23,7 +21,7 @@ class action_plugin_sbvr extends DokuWiki_Action_Plugin {
/**
* Register the eventhandlers
*/
public
function
register
(
&
$controller
)
{
public
function
register
(
Doku_Event_Handler
$controller
)
{
$controller
->
register_hook
(
'ACTION_ACT_PREPROCESS'
,
'BEFORE'
,
$this
,
'export'
,
array
());
$controller
->
register_hook
(
'TPL_ACT_UNKNOWN'
,
'AFTER'
,
$this
,
'export'
,
array
());
}
...
...
This diff is collapsed.
Click to expand it.
sbvr/syntax.php
View file @
fe1ae125
<?php
/**
*
* Syntax: <TEST> - will be replaced with "Hello World!"
*
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
* @author
Christopher Smith <chris@jalakai.co.uk
>
* @author
GEIST Research Group <krzysztof.kutt@uj.edu.pl
>
*/
if
(
!
defined
(
'DOKU_INC'
))
define
(
'DOKU_INC'
,
realpath
(
dirname
(
__FILE__
)
.
'/../../'
)
.
'/'
);
...
...
@@ -122,7 +119,7 @@ class syntax_plugin_sbvr extends DokuWiki_Syntax_Plugin {
* @see render()
* @static
*/
function
handle
(
$match
,
$state
,
$pos
,
&
$handler
){
function
handle
(
$match
,
$state
,
$pos
,
Doku_Handler
$handler
){
switch
(
$state
)
{
case
DOKU_LEXER_ENTER
:
return
null
;
...
...
@@ -161,7 +158,7 @@ class syntax_plugin_sbvr extends DokuWiki_Syntax_Plugin {
* @public
* @see handle()
*/
function
render
(
$mode
,
&
$renderer
,
$data
)
{
function
render
(
$mode
,
Doku_Renderer
$renderer
,
$data
)
{
global
$conf
;
global
$INFO
;
global
$ID
;
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment