xref: /plugin/mikioplugin/README.md (revision ab918e59f3ff5e654e88504ee875971c90813a43)
1<img src="https://raw.githubusercontent.com/nomadjimbob/nomadjimbob/master/wiki/mikioplugin/images/mikio_plugin_header.png">
2
3[![License: GPL-2](https://img.shields.io/github/license/nomadjimbob/mikioplugin?color=blue)](LICENSE)
4[![saythanks](https://img.shields.io/badge/say-thanks-ff69b4.svg)](https://saythanks.io/to/james.collins%40outlook.com.au)
5
6Mikio Plugin adds a heap of layout and Bootstrap 4 elements that can be used on your [DokuWiki](http://dokuwiki.org/) pages.
7
8This plugin can be used by itself, however is designed to complement the [Mikio DokuWiki template](http://dokuwiki.org/template:mikio).
9
10## Updating Styles
11
12You can update the colors used by the elements by editing the `/assets/variables.css` file. From version 2022-10-31 onwards, the theme supports darkmode within browsers.
13
14If you have the [Mikio DokuWiki template](http://dokuwiki.org/template:mikio) 2022-10-31 onwards installed, the `/assets/variables.css` will be ignored as the template adds the variables itself. These can be edited using
15**Template Style Settings** in your sites **Administration** page.
16
17## Setting Up
18
19Download the [latest release](https://github.com/nomadjimbob/mikioplugin/releases/latest) and place it in the\
20\
21:file_folder: dokuwiki\
22&nbsp;&nbsp;&nbsp;&nbsp;:file_folder: lib\
23&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:file_folder: plugins
24
25directory of your DokuWiki installation.
26
27Sometimes GitHub releases change the name of the mikioplugin directory, so make sure that the directory is `mikioplugin` else you may see errors in DokuWiki.
28
29## Disabling Tags
30
31If a Mikio Plugin tag is conflicting with another plugins tag, or you want to simply disable a tag, you can do this in the `disabled-tags.php` file.
32
33Simply change the tag you want to disable to `true` instead of `false`. Pages that have already been generated while the tag was enabled will need to be regenerated.
34
35## Releases
36
37-   **_2023-12-04_**
38
39    -   Multiple paginations on a single page is now supported.
40    -   Pagination will try it best in resolving malformed URLs with missing content.
41    -   Fixed parsing to ignore <> symbols in element options which used to break the element.
42    -   Added ability to create group radio items in a multiple quiz item by surrounding options in []. Requested by Dylan.
43    -   Renamed pagenation to pagination while keep backwards compadibility.
44    -   Fixed pagination when using nice urls, rewrites and slashes [#26](https://github.com/nomadjimbob/mikioplugin/issues/26). Thanks armandostyl.
45    -   Updated pagination to use its own variables inside variables.css.
46    -   Fixed up some border radius issues and dark mode themeing on pagination element.
47
48-   **_2023-11-19_**
49
50    -   Fix quiz results not shown correctly when markdown formatting applied.
51    -   Quiz placeholders can now be markdown formatted.
52    -   Quiz result elements now have classes that can be manually styled through css.
53    -   Fix button backgrounds being overridden by the DokuWiki theme when styled.
54
55-   **_2023-11-18_**
56
57    -   Better handling when a `quizitem` does not contain a `scores` or `answer` attribute.
58    -   Added `full` attribute to `quiz` to show the entire quiz.
59    -   Quiz questions, text and options support basic markdown to bold and italic points.
60    -   Quiz now supports [style](https://github.com/nomadjimbob/mikioplugin/wiki/Common-Attributes#styles) attribute for buttons.
61    -   Custom styles now automatically builds the `outline-` style.
62
63-   **_2023-11-17_**
64
65    -   Added scoring and multiple options to the `quiz` elements. Requested by Dylan.
66
67-   **_2023-10-16_**
68
69    -   Added support to justify individual components of the card. Requested by Dylan.
70
71-   **_2023-10-10_**
72
73    -   Fixed custom styles not being implemented correctly and added direct type support. Thanks Dylan
74    -   Heading element now supports `color` and `text-decoration` options. Requested by Dylan.
75
76-   **_2023-09-11_**
77
78    -   Fixed small tag not being inline [#22](https://github.com/nomadjimbob/mikioplugin/issues/22). Thanks Rayaqu
79    -   Added support to disable tags.
80
81-   **_2023-09-03_**
82
83    -   Fixed card height issues on smaller viewports.
84    -   Fixed columns not stacking on small viewports when using sizing. [#21](https://github.com/nomadjimbob/mikioplugin/issues/21). Thanks armandostyl
85
86-   **_2023-06-16_**
87
88    -   Fixed spacing issues with listgroup items with mixed styles. [#20](https://github.com/nomadjimbob/mikioplugin/issues/20). Thanks armandostyl
89
90-   **_2023-06-06_**
91
92    -   Added Nav item to create dropdown navigation items. [#18](https://github.com/nomadjimbob/mikioplugin/issues/18). Thanks armandostyl
93    -   Added support for elements in sidebars
94
95-   **_2023-05-20_**
96
97    -   AccordionItem, Alert, Blockquote, Card and CardBody now support containing 'protected' type which fixes some elements not rendering correctly (ie <&lt>code<&gt>)
98
99-   **_2023-05-19_**
100
101    -   Updated to include a polyfill for array_key_first if PHP < 7.3
102
103-   **_2022-10-31_**
104
105    -   Fixed 'link' type for Buttons
106    -   Updated CSS to use CSS Variables (supporting switchable themes and style editor within Mikio template). Thanks chrbinder.
107    -   variables.css no longer included if the mikio template is installed, active and version 2022-10-31 or greator
108
109-   **_2022-01-18_**
110
111    -   Fixed accordian not rendering tables inside itself [#15](https://github.com/nomadjimbob/mikioplugin/issues/15). Thanks Melphios
112
113-   **_2021-12-15_**
114
115    -   Added `autoclose` attribute to Accordions to close any other open accordion items other than the one clicked by the user. Requested by eFreshman
116
117-   **_2021-12-14_**
118
119    -   Fix Carousel not containing image by default [#14](https://github.com/nomadjimbob/mikioplugin/issues/14). Thanks eFreshman
120
121-   **_2021-12-13_**
122
123    -   Fix Struct Plugin Aggregation [#13](https://github.com/nomadjimbob/mikioplugin/issues/13). Thanks eFreshman
124
125-   **_2021-11-13_**
126
127    -   Carousel control colors can now be customized
128    -   Carousel now supports circle indicators
129    -   Dynamically build and fullscreen carousels now supported
130    -   SyntaxRender method now correctly converts tagName to methodNames
131
132-   **_2021-08-11_**
133
134    -   Replace Windows directory separator in CSS paths
135    -   Fixed path check in LESS engine on Windows
136    -   Recompiled CSS
137    -   Fixed PHP warnings
138
139-   **_2021-08-10_**
140
141    -   Button outline styling fix [#12](https://github.com/nomadjimbob/mikioplugin/issues/12)
142    -   Added small margin to left and right of buttons
143
144-   **_2021-07-13_**
145
146    -   Element class shortcuts (eg text-center) working again
147    -   LESS engine updated to match the Mikio theme
148    -   LESS fallback to CSS
149
150-   **_2021-04-23_**
151
152    -   Fixed Card element overflow issues. Cards will now be their own height when inside a row element. To force cards to all be the same height, wrap each card in a col element
153    -   Adding a card-footer element inside a card-body element will now work. This fixes inside card elements
154    -   Cards and Carousel images are now contained inside the element instead of covering the element
155    -   Added `cover` attributes to Card and Carousel for images to cover element instead of being contained
156    -   Height attribute bugfix for placeholders
157
158-   **_2021-04-19_**
159
160    -   Fixed images not always being contained within elements such as card headers [#9](https://github.com/nomadjimbob/mikioplugin/issues/9)
161
162-   **_2021-03-05_**
163
164    -   Added support for custom element types and styling [#6](https://github.com/nomadjimbob/mikioplugin/issues/6)
165
166-   **_2021-03-02_**
167    -   Fixed a dokuwiki rendering issue in card bodies [#7](https://github.com/nomadjimbob/mikioplugin/issues/7)
168    -   Fixed a text alignment not being applied in alerts [#8](https://github.com/nomadjimbob/mikioplugin/issues/8)
169
170## Links
171
172-   DokuWiki Plugin Page: (http://dokuwiki.org/plugin:mikioplugin)
173-   Download: (https://github.com/nomadjimbob/mikioplugin/releases/latest)
174-   Docs: (https://github.com/nomadjimbob/mikioplugin/wiki)
175-   Donate: (https://www.ko-fi.com/nomadjimbob)
176-   License: (https://raw.githubusercontent.com/nomadjimbob/mikioplugin/master/LICENSE)
177
178## Contributing
179
180Any contributions are appreciated. Please feel free to reach out to me at james.collins@outlook.com.au
181