Use assets dir.

This commit is contained in:
Dominik Pantůček 2023-06-25 11:32:04 +02:00
parent e386fbad0e
commit b756a33a1a

View file

@ -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";