Rename the dokuwiki plugin.
This commit is contained in:
parent
3b784243a1
commit
fecdecf117
3 changed files with 9 additions and 9 deletions
|
@ -1,11 +1,11 @@
|
|||
<?php
|
||||
/**
|
||||
* DokuWiki Plugin brmburo (Action Component)
|
||||
* DokuWiki Plugin hackerbase (Action Component)
|
||||
*
|
||||
* @license GPL 2 http://www.gnu.org/licenses/gpl-2.0.html
|
||||
* @author Dominik Pantůček <dominik.pantucek@trustica.cz>
|
||||
*/
|
||||
class action_plugin_brmburo extends DokuWiki_Action_Plugin
|
||||
class action_plugin_hackerbase extends DokuWiki_Action_Plugin
|
||||
{
|
||||
|
||||
/** @inheritDoc */
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
base brmburo
|
||||
base hackerbase
|
||||
author Dominik Pantůček
|
||||
email dominik.pantucek@trustica.cz
|
||||
date 2023-06-19
|
||||
name brmburo plugin
|
||||
desc Display BrmBuro information for logged user (member)
|
||||
url https://www.dokuwiki.org/plugin:brmburo
|
||||
name hackerbase plugin
|
||||
desc Display Hackerbase information for logged user (member)
|
||||
url https://brmlab.cz/projects:hackerbase
|
||||
|
|
|
@ -13,13 +13,13 @@ if(!defined('DOKU_INC')) die();
|
|||
* All DokuWiki plugins to extend the parser/rendering mechanism
|
||||
* need to inherit from this class
|
||||
*/
|
||||
class syntax_plugin_brmburo extends DokuWiki_Syntax_Plugin {
|
||||
class syntax_plugin_hackerbase extends DokuWiki_Syntax_Plugin {
|
||||
|
||||
public function getType() { return 'substition'; }
|
||||
public function getSort() { return 32; }
|
||||
|
||||
public function connectTo($mode) {
|
||||
$this->Lexer->addSpecialPattern('\[BRMDOOR\]',$mode,'plugin_brmburo');
|
||||
$this->Lexer->addSpecialPattern('\[BRMDOOR\]',$mode,'plugin_hackerbase');
|
||||
}
|
||||
|
||||
public function handle($match, $state, $pos, Doku_Handler $handler) {
|
||||
|
@ -42,7 +42,7 @@ class syntax_plugin_brmburo extends DokuWiki_Syntax_Plugin {
|
|||
} else {
|
||||
$opened = $json['state']['open'];
|
||||
$lastchange = $json['state']['lastchange'];
|
||||
$assetsdir = DOKU_BASE . "lib/plugins/brmburo/assets";
|
||||
$assetsdir = DOKU_BASE . "lib/plugins/hackerbase/assets";
|
||||
if ($opened == TRUE) {
|
||||
$status =
|
||||
'<p><img src="' . $assetsdir . '/open-sun.png"></p>' .
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue