Page MenuHomePhabricator

No OneTemporary

diff --git a/helper.php b/helper.php
--- a/helper.php
+++ b/helper.php
@@ -1,50 +1,46 @@
<?php
/**
- * Helper Class for the signpage plugin
- * This helper does the actual work.
- * Sign pages using a separate login and membership of a given group
- *
- * Configurable in DokuWiki's configuration
+ * Helper Class for the csstimeline plugin
*/
// must be run within Dokuwiki
if(!defined('DOKU_INC')) die();
class helper_plugin_csstimeline extends DokuWiki_Plugin {
- public $specialPattern = '<csstimeline>.*</csstimeline>';
+ public $specialPattern = '<csstimeline>.*?</csstimeline>';
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 '<entry>':
break;
case '</entry>':
$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

File Metadata

Mime Type
text/x-diff
Expires
Thu, Dec 5, 3:29 PM (18 h, 56 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
532756
Default Alt Text
(1 KB)

Event Timeline