diff --git a/helper.php b/helper.php --- a/helper.php +++ b/helper.php @@ -1,50 +1,46 @@ .*'; + public $specialPattern = '.*?'; public function handleMatch($match) { $match = substr($match, 13, -14); $lines = explode("\n",$match); $data = array(); $cnt = 0; $data['entries'] = array(); foreach($lines as $line) { $line = trim($line); if($line) { $lineSplit = explode(':', $line, 2); switch(trim($lineSplit[0])) { case '': break; case '': $cnt++; break; case 'description': $data['entries'][$cnt]['description'] = $this->render_text(trim($lineSplit[1])); break; default: $data['entries'][$cnt][$lineSplit[0]] = hsc(trim($lineSplit[1])); } } } return $data; } } diff --git a/plugin.info.txt b/plugin.info.txt --- a/plugin.info.txt +++ b/plugin.info.txt @@ -1,7 +1,7 @@ base csstimeline author Andreas Boehler email dev@aboehler.at -date 2015-03-11 +date 2017-01-06 name csstimeline plugin desc Create a CSS-only timeline; CSS is from http://nilswe.com/lab/css-timeline/ url http://www.aboehler.at