forked from r31k/dw-whoisinyourhackspace
Compare commits
No commits in common. "d3aabedd87ad84e03d7611c5a8ec5828bf1182c1" and "223f37300a69e0b6612abee7a916528de4d7fbd9" have entirely different histories.
d3aabedd87
...
223f37300a
|
@ -7,8 +7,8 @@
|
|||
|
||||
// menu entry for admin plugins
|
||||
$lang['wiyh_heading'] = 'Raumstatus';
|
||||
$lang['wiyh_open'] = 'ist geöffnet';
|
||||
$lang['wiyh_closed'] = 'ist geschlossen';
|
||||
$lang['wiyh_open'] = 'ist geöffnet.';
|
||||
$lang['wiyh_closed'] = 'ist geschlossen.';
|
||||
$lang['wiyh_stats'] = 'Raumöffnungsstatistiken';
|
||||
$lang['wiyh_no_api_path'] = 'Es wurde kein API-Pfad angegeben.';
|
||||
$lang['wiyh_fetch_error'] = 'Der API-Pfad konnte nicht abgerufen werden.';
|
||||
|
|
12
syntax.php
12
syntax.php
|
@ -76,18 +76,16 @@ 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')}";
|
||||
$content .= $api->state->icon->open ? "<img class=\"icon\" src=\"{$api->state->icon->open}\" alt=\"{$message}\" title=\"{$message}\" />" : '';
|
||||
$content .= "<p class=\"text\">{$message}</p>";
|
||||
$content .= $api->state->icon->open ? "<img class=\"icon\" src=\"{$api->state->icon->open}\" alt=\"{$api->space} ist besetzt.\" title=\"{$api->space} ist besetzt.\" />" : '';
|
||||
$content .= "<p class=\"text\">{$api->space} " . $this->getLang('wiyh_open') . "</p>";
|
||||
} else {
|
||||
$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>";
|
||||
$content .= $api->state->icon->open ? "<img class=\"icon\" src=\"{$api->state->icon->closed}\" alt=\"{$api->space} ist geschlossen.\" title=\"{$api->space} ist geschlossen.\" />" : '';
|
||||
$content .= "<p class=\"text\">{$api->space} " . $this->getLang('wiyh_closed') . "</p>";
|
||||
}
|
||||
|
||||
$date = new DateTime();
|
||||
$date->setTimeStamp($api->state->lastchange);
|
||||
$content .= "<p class=\"text\">seit " . $date->format('d.m.Y H:i') . " Uhr</p>";
|
||||
$content .= "<p class=\"text\"> seit " . $date->format('d.m.Y H:i') . " Uhr</p>";
|
||||
|
||||
$content .= '<hr />';
|
||||
$content .= '</div>';
|
||||
|
|
Loading…
Reference in New Issue