Skip to content

Commit

Permalink
fix #52
Browse files Browse the repository at this point in the history
  • Loading branch information
nomadjimbob committed Jun 5, 2023
1 parent afd6bfb commit 3a44a74
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -237,8 +237,9 @@ If the plugin is installed, the **Template Styles Settings** page will be expand

## Releases

- **_NEXT_**
- **_2023-06-05_**

- Fixed bug with `~~hide-parts~~` no longer working. [#52](https://github.com/nomadjimbob/mikio/issues/52). Thanks nathanmcguire.
- Mikio Control Macros now support the format `-~SETTING~-` as well as the standard `~~SETTING~~`. This fixes an incompatibility with the [Comment Syntax support](https://www.dokuwiki.org/plugin:commentsyntax) extension.

- **_2023-05-19_**
Expand Down
4 changes: 2 additions & 2 deletions mikio.php
Original file line number Diff line number Diff line change
Expand Up @@ -1916,7 +1916,7 @@ public function parseContent(string $content)

/* Hide parts - ~~hide-parts [parts]~~ */
foreach ($html->find('p') as $elm) {
if (preg_match('/[~-]~hero-colors (.+?)~[~-]/ui', $elm->innertext, $matches) === 1) {
if (preg_match('/[~-]~hide-parts (.+?)~[~-]/ui', $elm->innertext, $matches) === 1) {
$parts = explode(' ', $matches[1]);
$script = '';

Expand All @@ -1930,7 +1930,7 @@ public function parseContent(string $content)
$this->footerScript['hide-parts'] = $script;
}

$elm->innertext = preg_replace('/[~-]~hero-parts (.+?)~[~-]/ui', '', $elm->innertext);
$elm->innertext = preg_replace('/[~-]~hide-parts (.+?)~[~-]/ui', '', $elm->innertext);
break;
}
}//end foreach
Expand Down
2 changes: 1 addition & 1 deletion template.info.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
base mikio
author James Collins
email james.collins@outlook.com.au
date 2023-05-19
date 2023-06-05
name Mikio theme
desc Mikio template based on Bootstrap 4 with hero element for Dokuwiki
url https://www.dokuwiki.org/template:mikio

0 comments on commit 3a44a74

Please sign in to comment.