From 0ef662e5ac02df5a0a8a62bb3942c6893f75090f Mon Sep 17 00:00:00 2001 From: Nikos Papagiannopoulos Date: Thu, 18 Feb 2021 06:39:31 +0100 Subject: [PATCH] Remove unnecessary files --- style.css~ | 44 ---------------------------- syntax.php~ | 83 ----------------------------------------------------- 2 files changed, 127 deletions(-) delete mode 100644 style.css~ delete mode 100644 syntax.php~ 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~ deleted file mode 100644 index 4d6eaf1..0000000 --- a/syntax.php~ +++ /dev/null @@ -1,83 +0,0 @@ - - */ - -// must be run within Dokuwiki -if (!defined('DOKU_INC')) die(); - -if (!defined('DOKU_LF')) define('DOKU_LF', "\n"); -if (!defined('DOKU_TAB')) define('DOKU_TAB', "\t"); -if (!defined('DOKU_PLUGIN')) define('DOKU_PLUGIN',DOKU_INC.'lib/plugins/'); - -require_once DOKU_PLUGIN.'syntax.php'; - -class syntax_plugin_whoisinyourhackspace extends DokuWiki_Syntax_Plugin { - /** - * Check if a given option has been given, and remove it from the initial string - * @param string $match The string match by the plugin - * @param string $pattern The pattern which activate the option - * @param $varAffected The variable which will memorise the option - * @param $valIfFound the value affected to the previous variable if the option is found - */ - private function _checkOption(&$match, $pattern, &$varAffected, $valIfFound){ - if ( preg_match($pattern, $match, $found) ){ - $varAffected = $valIfFound; - $match = str_replace($found[0], '', $match); - } - } // _checkOption - - public function getType() { - return 'substition'; - } - - public function getPType() { - return 'block'; - } - - public function getSort() { - return 0; - } - - - public function connectTo($mode) { - $this->Lexer->addSpecialPattern('\[wiyh\]',$mode,'plugin_whoisinyourhackspace'); - } - - public function render($mode, &$renderer, $data) { - global $conf; - - if($mode != 'xhtml') return false; - - $api_path = $this->getConf('api_path'); - - $file = file_get_contents($api_path); - - $api = json_decode($file); - - $content = ''; - $content .= '
'; - $content .= "

" . $this->getLang('wiyh_heading') . "

"; - - if ($api->state->open) { - $content .= "state->icon->open}\" alt=\"{$api->space} ist besetzt.\" title=\"{$api->space} ist besetzt.\" />"; - $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 .= '
'; - - $content .= sprintf('

'.$this->getLang('wiyh_stats').'

',strtolower($api->space)); - $content .= '
'; - - $renderer->doc .= $content; - return true; - } -} - -// vim:ts=4:sw=4:et: