diff --git a/README.md b/README.md index 5d9c9a9..231d307 100644 --- a/README.md +++ b/README.md @@ -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_** diff --git a/mikio.php b/mikio.php index ce50dc6..a042d7e 100644 --- a/mikio.php +++ b/mikio.php @@ -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 = ''; @@ -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 diff --git a/template.info.txt b/template.info.txt index 09b607a..04a5a82 100644 --- a/template.info.txt +++ b/template.info.txt @@ -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