diff --git a/lang/de/lang.php b/lang/de/lang.php index fa5cc20..bdc63b4 100644 --- a/lang/de/lang.php +++ b/lang/de/lang.php @@ -12,6 +12,7 @@ $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.'; +$lang['wiyh_since'] = 'seit'; diff --git a/lang/en/lang.php b/lang/en/lang.php index 7e72678..4f387aa 100644 --- a/lang/en/lang.php +++ b/lang/en/lang.php @@ -7,11 +7,12 @@ // menu entry for admin plugins $lang['wiyh_heading'] = 'State'; -$lang['wiyh_open'] = 'is open.'; -$lang['wiyh_closed'] = 'is closed.'; +$lang['wiyh_open'] = 'is open'; +$lang['wiyh_closed'] = 'is closed'; $lang['wiyh_stats'] = 'Stats'; $lang['wiyh_no_api_path'] = 'No API path was given.'; $lang['wiyh_fetch_error'] = 'Could not fetch API path.'; +$lang['wiyh_since'] = 'since'; //Setup VIM: ex: et ts=4 : diff --git a/style.css b/style.css index cd6b256..398abd5 100644 --- a/style.css +++ b/style.css @@ -1,22 +1,3 @@ -/*.ample { - display: block; - width: 200px; - height: 100px; - font-size: 24px; - font-weight: bold; - padding: 5px; -} - -.available { - background-color: green; - color: white; -} - -.not-available { - background-color: red; - color: white; -}*/ - div.hackerspace-room-state { border: 1px solid #cccccc; background-color: #ffffff; @@ -27,11 +8,6 @@ div.hackerspace-room-state h3 { } -div.leinelab-state img.icon { - display: inline; - width: 180px; -} - div.hackerspace-room-state .text { display: inline; margin-left: 0.3rem; @@ -40,4 +16,4 @@ div.hackerspace-room-state .text { div.hackerspace-room-state hr { margin-top: 0.3rem; margin-bottom: 0.3rem; -} \ No newline at end of file +} diff --git a/style.css~ b/style.css~ deleted file mode 100644 index dc9164c..0000000 --- a/style.css~ +++ /dev/null @@ -1,44 +0,0 @@ -/*.ample { - display: block; - width: 200px; - height: 100px; - font-size: 24px; - font-weight: bold; - padding: 5px; -} - -.available { - background-color: green; - color: white; -} - -.not-available { - background-color: red; - color: white; -}*/ - -div.hackerspace-room-state { - border: 1px solid #cccccc; - background-color: #ffffff; - padding: 0.5rem; -} - -div.hackerspace-room-state h3 { - -} - -div.hackerspace-room-state .icon { - display: inline; - width: 24px; - height: 24px; -} - -div.hackerspace-room-state .text { - display: inline; - margin-left: 0.3rem; -} - -div.hackerspace-room-state hr { - margin-top: 0.3rem; - margin-bottom: 0.3rem; -} \ No newline at end of file diff --git a/syntax.php b/syntax.php index 277060b..f553c45 100644 --- a/syntax.php +++ b/syntax.php @@ -76,18 +76,18 @@ class syntax_plugin_whoisinyourhackspace extends DokuWiki_Syntax_Plugin { $content .= "
{$message}
"; } else { - $message = "{$api->space} {$this->getLang('wiyh_closed')}"; + $message = "{$api->space} {$this->getLang('wiyh_closed')}"; $content .= $api->state->icon->closed ? "state->icon->closed}\" alt=\"{$message}\" title=\"{$message}\" />" : ''; $content .= "{$message}
"; } $date = new DateTime(); $date->setTimeStamp($api->state->lastchange); - $content .= "seit " . $date->format('d.m.Y H:i') . " Uhr
"; + $content .= "{$this->getLang('wiyh_since')} " . $date->format('d.m.Y H:i') . " Uhr
"; $content .= '{$api->space} " . $this->getLang('wiyh_open') . "
"; - } else { - $content .= "state->icon->closed}\" alt=\"{$api->space} ist geschlossen.\" title=\"{$api->space} ist geschlossen.\" />"; - $content .= "{$api->space} " . $this->getLang('wiyh_closed') . "
"; - } - - $content .= '