Cleanup #2
|
@ -76,11 +76,11 @@ class syntax_plugin_whoisinyourhackspace extends DokuWiki_Syntax_Plugin {
|
|||
$content .= "<h3>" . $this->getLang('wiyh_heading') . "</h3>";
|
||||
|
||||
if ($api->state->open) {
|
||||
$message = "{$api->space} {$this->getLang('wiyh_open')}";
|
||||
$message = "{$api->space} {$this->getLang('wiyh_open')}";
|
||||
$content .= $api->state->icon->open ? "<img class=\"icon\" src=\"{$api->state->icon->open}\" alt=\"{$message}\" title=\"{$message}\" />" : '';
|
||||
$content .= "<p class=\"text\">{$message}</p>";
|
||||
} else {
|
||||
$message = "{$api->space} {$this->getLang('wiyh_closed')}";
|
||||
$message = "{$api->space} {$this->getLang('wiyh_closed')}";
|
||||
$content .= $api->state->icon->closed ? "<img class=\"icon\" src=\"{$api->state->icon->closed}\" alt=\"{$message}\" title=\"{$message}\" />" : '';
|
||||
$content .= "<p class=\"text\">{$message}</p>";
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue