Skip to content

Commit

Permalink
more compatibility for style.css
Browse files Browse the repository at this point in the history
  • Loading branch information
Steffen Sagert committed Jul 13, 2022
1 parent 204cfb5 commit 08c5c74
Show file tree
Hide file tree
Showing 6 changed files with 226 additions and 224 deletions.
9 changes: 5 additions & 4 deletions action.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,11 @@ public function insert_button(Doku_Event $event, $param) {
}

private function buildSkeleton() {
$skeleton .= '<dwtimeline title="'.$this->getLang('tl-title').'" description="'.$this->getLang('tl-desc').'">\n';
$skeleton .= '<milestone title="'.$this->getLang('ms-title').'" description="'.$this->getLang('ms-desc').'" ';
$skeleton .= 'data="'.$this->getLang('ms-data').'">\n';
return $skeleton;
$skeleton = '';
$skeleton .= '<dwtimeline title="'.$this->getLang('tl-title').'" description="'.$this->getLang('tl-desc').'">\n';
$skeleton .= '<milestone title="'.$this->getLang('ms-title').'" description="'.$this->getLang('ms-desc').'" ';
$skeleton .= 'data="'.$this->getLang('ms-data').'">\n';
return $skeleton;
}


Expand Down
8 changes: 4 additions & 4 deletions helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ class helper_plugin_dwtimeline extends DokuWiki_Plugin {
*/
public static function getDirection($direction)
{
if($direction === 'right'){
$direction = 'left';
if($direction === 'tl-right'){
$direction = 'tl-left';
}
else {
$direction = 'right';
$direction = 'tl-right';
}
return $direction;
}
Expand Down Expand Up @@ -123,7 +123,7 @@ public static function checkValues($toCheck,$allowed,$standard) {
"SeaShell","Sienna","Silver","SkyBlue","SlateBlue","SlateGray","SlateGrey","Snow","SpringGreen","SteelBlue",
"Tan","Teal","Thistle","Tomato","Turquoise","Violet","Wheat","White","WhiteSmoke","Yellow","YellowGreen"];

if (in_array($color, $COLOR_NAMES)) {
if (in_array(strtolower($color), array_map('strtolower',$COLOR_NAMES))) {
return trim($color);
}

Expand Down
2 changes: 1 addition & 1 deletion plugin.info.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
base dwtimeline
author saggi
email saggi@gmx.de
date 2022-07-11
date 2022-07-13
name dwtimeline plugin
desc Provides a DokuWiki styled timeline
url http://www.dokuwiki.org/plugin:dwtimeline
Loading

0 comments on commit 08c5c74

Please sign in to comment.