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 { } 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";