Use assets dir.
This commit is contained in:
parent
e386fbad0e
commit
b756a33a1a
1 changed files with 3 additions and 2 deletions
|
@ -42,13 +42,14 @@ class syntax_plugin_brmburo extends DokuWiki_Syntax_Plugin {
|
|||
} else {
|
||||
$opened = $json['state']['open'];
|
||||
$lastchange = $json['state']['lastchange'];
|
||||
$assetsdir = DOKU_BASE . "lib/plugins/brmburo/assets";
|
||||
if ($opened == TRUE) {
|
||||
$status =
|
||||
'<p><img src="/status-renderer/open-sun.png"></p>' .
|
||||
'<p><img src="' . $assetsdir . '/open-sun.png"></p>' .
|
||||
'<h3>OPEN</h3>';
|
||||
} elseif ($opened == FALSE) {
|
||||
$status =
|
||||
'<p><img src="/status-renderer/closed-moon.png"></p>' .
|
||||
'<p><img src="' . $assetsdir . '/closed-moon.png"></p>' .
|
||||
'<h3>CLOSED</h3>';
|
||||
} else {
|
||||
$status = "ERROR:DECODE";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue