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 {
|
} else {
|
||||||
$opened = $json['state']['open'];
|
$opened = $json['state']['open'];
|
||||||
$lastchange = $json['state']['lastchange'];
|
$lastchange = $json['state']['lastchange'];
|
||||||
|
$assetsdir = DOKU_BASE . "lib/plugins/brmburo/assets";
|
||||||
if ($opened == TRUE) {
|
if ($opened == TRUE) {
|
||||||
$status =
|
$status =
|
||||||
'<p><img src="/status-renderer/open-sun.png"></p>' .
|
'<p><img src="' . $assetsdir . '/open-sun.png"></p>' .
|
||||||
'<h3>OPEN</h3>';
|
'<h3>OPEN</h3>';
|
||||||
} elseif ($opened == FALSE) {
|
} elseif ($opened == FALSE) {
|
||||||
$status =
|
$status =
|
||||||
'<p><img src="/status-renderer/closed-moon.png"></p>' .
|
'<p><img src="' . $assetsdir . '/closed-moon.png"></p>' .
|
||||||
'<h3>CLOSED</h3>';
|
'<h3>CLOSED</h3>';
|
||||||
} else {
|
} else {
|
||||||
$status = "ERROR:DECODE";
|
$status = "ERROR:DECODE";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue